uuid
stringlengths
36
36
repo_name
stringlengths
5
133
relative_path
stringlengths
3
3.76k
content
stringlengths
282
4.03M
category
stringclasses
6 values
algo_rel_score
float32
0.9
1
quality_score
float32
3
8.13
source_meta
dict
d49b7a99-ea9f-4921-aace-f56f6cce0c2a
KristianWold/FYS4411
Project1/src/InitialStates/initialhardshell.cpp
#include "initialhardshell.hpp" #include "initialstate.hpp" #include "../system.hpp" #include "../particles.hpp" #include "../WaveFunctions/wavefunction.hpp" #include "../WaveFunctions/hardshell.hpp" #include <iostream> void InitialHardshell::normalSpred(double std) { int numPart = m_sys->getNumParticles(); in...
ALGO
0.960014
3.797864
{ "github_metadata": { "branch": "master", "commit_count": 75, "repo_created_at": "2020-01-23T20:08:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3710f2c83...
cd35429f-9606-4599-b217-7d3ed6464c8f
BackupTheBerlios/netpanzer-svn
tags/valgrind/netpanzer/src/NetPanzer/Classes/AI/Astar.hpp
/* Copyright (C) 1998 Pyrosoft Inc. (www.pyrosoftgames.com), <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progr...
ALGO
0.993754
3.305052
{ "github_metadata": { "branch": "master", "commit_count": 1447, "repo_created_at": "2015-08-16T13:47:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ce1b1a1...
e9207412-51d0-49b1-b87f-bfdc3ad5d3b6
caltechcs2/maze
maze/src/BreadthFirstSolver.cpp
/** * @file BreadthFirstSolver.cpp * @author <NAME> <<<EMAIL>>> * @version 2.0 * @date 2014-2015 * @copyright see License section * * @brief Functions for maze solver that implements breadth-first search. * * @section License * Copyright (c) 2014-2015 California Institute of Technology. * All rights reserved...
ALGO
0.989816
5.284784
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2016-01-24T22:32:55.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 3, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "b2d738341c...
ad983f8d-8036-4ead-84db-0b953e96f8a5
Aman-Sekhon/DSA
AhoCorasick.cpp
#include<iostream> #include<bits/stdc++.h> #include<algorithm> #include<vector> #include<queue> #include<cmath> #include<cstdio> #include<cstring> using namespace std; struct trie{ struct trie* next[26]; struct trie* fail; struct trie* outlink; bool end; trie(){ fail = NULL; outli...
ALGO
0.999964
3.95474
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-06-08T11:14:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1c5d57978a53...
ebd4d13f-a4a3-40b0-b291-67f3f5e8c631
michezio/CompetitiveCoding
Advent of Code/2022/2/solution.cpp
#include <iostream> #include <string> typedef unsigned int uint; #define ROCK_L 'A' #define PAPER_L 'B' #define SCISSOR_L 'C' #define ROCK_V 1 #define PAPER_V 2 #define SCISSOR_V 3 #define LOSS 0 #define DRAW 3 #define WIN 6 uint compute_score_1(const char opponent, const char you) ...
ALGO
0.999905
4.594064
{ "github_metadata": { "branch": "master", "commit_count": 76, "repo_created_at": "2025-01-15T00:02:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c61ed6925...
48491f14-16c0-4e6c-87ea-3e2c657f4001
ishandutta2007/codeforces-e
errichto/normal/468/D.cpp
#pragma GCC optimize ("Ofast") #include <bits/stdc++.h> using namespace std; #define sim template < class c #define ris return * this #define dor > debug & operator << #define eni(x) sim > typename \ enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) { sim > struct rge {c b, e; }; sim > rge<c> range(c i, c...
ALGO
0.999926
3.595556
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:34:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "66cebf917797...
c3d78eac-94f8-4d00-bed2-5b3374dc363b
Sion99/ProblemSolving
Baekjoon/2583.cpp
#include <iostream> #include <queue> #include <utility> #include <vector> #include <algorithm> using namespace std; bool visited[101][101]; int dx[] = {0, 0, -1, 1}; int dy[] = {1, -1, 0, 0}; vector<int> v; void bfs(int a, int b, int m, int n) { queue<pair<int, int>> Q; Q.push({a, b}); visited[a][b] = 1;...
ALGO
0.999924
3.368879
{ "github_metadata": { "branch": "main", "commit_count": 284, "repo_created_at": "2022-11-15T13:15:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7dad21cecc...
71758b57-7ff3-4394-9bc2-7abd8dbd1b13
suiyueliushang/leetcodes
leetcode_project/leetcode_project/37解数独.cpp
#include <iostream> #include <vector> using namespace std; class Solution { public: bool availRow[9][9]; bool availColumn[9][9]; bool availGrid[9][9]; vector<pair<int, int>> spaces; void solveSudoku(vector<vector<char>>& board) { memset(availRow, false, sizeof(availRow)); memset(ava...
ALGO
0.99942
6.404783
{ "github_metadata": { "branch": "master", "commit_count": 82, "repo_created_at": "2019-09-23T13:32:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "76243a104...
e609a16f-aa79-4b8c-b007-1d7be49ad1f4
ash1247/DocumentsWindows
CodeBlocks/Assignment/QuickSort.cpp
#include <bits/stdc++.h> int partition(int *A, int p, int r); void quick_sort(int *A, int p, int r); int main ( void ){ int i = 0, j = 0, key = 0, N; clock_t t; clock_t start, end; char ch, buffer[64]; double time = 0.0; FILE *fPointer; fPointer = fopen("Numbers Unsorted.txt", "w"); p...
ALGO
0.997602
4.454655
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2018-06-30T09:19:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "61b3ed3a51...
5a3b14cd-e764-4b69-8192-1056511c001a
LIBHALA/hala
hex/solvers/hala_solvers_core.hpp
#ifndef __HALA_SOLVERS_CORE_HPP #define __HALA_SOLVERS_CORE_HPP /* * Code Author: <NAME> * * Copyright (C) 2018 <NAME> * * This file is part of * Hardware Accelerated Linear Algebra (HALA) * */ #include "hala_wrapped_extensions.hpp" /*! * \internal * \file hala_solvers_core.hpp * \brief HALA solver core. ...
CONFIG
0.944899
6.67831
{ "github_metadata": { "branch": "develop", "commit_count": 75, "repo_created_at": "2020-02-21T15:49:29.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 2, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "b00e5d40d...
45d10ec6-80e7-4887-a498-e1fb3218054c
ashurii/CPlusPlusProjects
Scheduler/heap/priority_queue.h
//TYPEDEFS // value_Type: The data of the items in the priority queue from the Item parameter // for this version of the priority queue, the Item must have a "less than" // operator < defined, forming a strict weak ordering (see figure 3.12 on page 139). // size_type: The data type to keep track of how many items are ...
ALGO
0.999562
5.871699
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-04-14T19:04:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0673c09f87...
1773912f-5727-432b-8484-f985136c1126
dasamantaraoaditya/MissionRnD-C-MrndCTest1
spec/CircularListsMergeSpec.cpp
#include "stdafx.h"; #include <stdlib.h>; #include "./../src/CircularListsMerge.cpp"; using namespace System; using namespace System::Text; using namespace System::Collections::Generic; using namespace Microsoft::VisualStudio::TestTools::UnitTesting; namespace spec { [TestClass] public ref class CircularListsMergeS...
TEST
0.955269
5.298545
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2016-04-02T13:28:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d538b4fc0f...
47c24bfd-5fce-4755-8769-c00c20dc5590
Sonni/Who-s-Julia-
Benchmarking/stats/euler31/euler31.cpp
// // main.cpp // euler31 // // Created by Sonni on 23/05/16. // Copyright © 2016 <NAME>. All rights reserved. // #include <iostream> //Run ./euler31 200 // answer = 73682 long long calc(long long target) { long long result = 0; for (int i = target; i >= 0; i -= target) //2 Pounds for (int j...
ALGO
0.994392
4.305848
{ "github_metadata": { "branch": "master", "commit_count": 362, "repo_created_at": "2016-05-01T18:06:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "de275540...
8d5ee0b7-9f96-4f40-b15a-fe093c4ab4a7
ajalsingh/PFMS-A2020
scratch/a4_path_following/src/pure_pursuit.h
/** * @file purePursuit.h * @ingroup Control * @class PurePursuit * @brief Performs pure pursuit between two points and returns gamma (arc). * @author <NAME> * @version 1.0 * @date June 2020 */ #ifndef PUREPURSUIT_H #define PUREPURSUIT_H #include "geometry_msgs/PoseArray.h" //_____________________...
ALGO
0.998977
5.655744
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-06-26T03:27:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3e09ca4b1d...
3bcf4299-6708-4425-9cb9-7b8b5994c9cf
OpenDigitalTwin-Dev/FENGSim
toolkit/Geometry/vtk/Accelerators/Vtkm/vtkmClip.h
//============================================================================= // // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // ...
ALGO
0.946393
6.946571
{ "github_metadata": { "branch": "main", "commit_count": 1345, "repo_created_at": "2021-12-22T12:15:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 54, "forks": 15, "issues": 4, "pull_requests": 2 }, "file_meta": { "content_id": "f2d7633c...
61f23894-4ca1-4da7-8025-adbb4a08d2f8
qian99/acm
problem/数据结构/分块/CF 342E Xenia and Tree.cpp
#include <iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<map> #include<queue> #include<stack> #include<cmath> #include<vector> #define inf 0x3f3f3f3f #define Inf 0x3FFFFFFFFFFFFFFFLL #define eps 1e-9 #define pi acos(-1.0) using namespace std; typedef long long ll; const int m...
ALGO
0.999886
3.969789
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-01-23T14:37:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3417c8ce05...
305dce72-31f0-4b3e-8398-2166589be1f6
Xarma123/cp-practice
10452_-_Marcus.cpp
#include <bits/stdc++.h> #define lol long long using namespace std; int main() { std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); lol t; cin >> t; set<char> x; string q = "IEHOVA"; x.insert('#'); for (auto e : q) x.insert(e); lol n, m; while (t--) ...
ALGO
0.999993
3.107766
{ "github_metadata": { "branch": "master", "commit_count": 176, "repo_created_at": "2022-09-18T23:21:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50904ac3...
74758cbf-bc62-4f52-bba5-8e6415f90ef3
taktakgyun/-
01week/j.cpp
// T<=100 0=<N<30, k<=20 ==> 경우의 수 // 이름 종류, 같은 종류는 하나만, 모든 조합을 구하라. 알몸만 아니면 됨 // 종류별로 개수를 센다. // 해당 종류의 조합을 구한다. 안입는 것도 포함해서 // (개수 + 1)*(개수 +1) .... -1 / N=0개 인것 처리 # include<bits/stdc++.h> using namespace std; int T, N; string ret, t1, t2; int main(){ // input cin >> T; // case while(T--){ // input ci...
ALGO
0.999709
4.314778
{ "github_metadata": { "branch": "main", "commit_count": 60, "repo_created_at": "2024-04-28T13:23:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "f3dcdb82da2...
ba769068-9ecf-43ce-8647-05aed3f960f8
Sanket-Mathur/GeeksforGeeks-Practice
Fraction Trouble.cpp
// { Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution { public: vector<int> numAndDen(int n, int d) { int nCurr = 10000, dCurr = 10000; int nBest = 10000, dBest = 10000; ...
ALGO
0.999805
6.001784
{ "github_metadata": { "branch": "master", "commit_count": 452, "repo_created_at": "2021-10-20T13:31:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "439c43b8...
538af01e-3f3b-4aa4-b465-31a7b8040025
coderkun12/Data-Structures
DQ.cpp
#include <iostream> #define MAX 10 using namespace std; class DQ { int ar[MAX]; int rear, front; public: DQ() { front = 0; rear = 0; } int addfro(int x); int delrear(); int delfro(); int addrear(int l); bool isEmpty(); bool isFull(); void displayQ(); } f;...
ALGO
0.994161
3.775783
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2023-01-27T05:35:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d9a1448adcfa...
0f09ddc9-7274-484a-80f2-dfe904599c7b
dh00n/Algorithm
code/boj10844.cpp
#include <string> #include <vector> #include <iostream> using namespace std; int N; int dp[101][10]; int main() { cin >> N; for (int i = 1; i <= 9; ++i) { dp[1][i] = 1; } for (int i = 2; i <= N; ++i) { for (int j = 0; j <= 9; ++j) { if (j == 0) { dp[i][j] ...
ALGO
0.999909
4.182167
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2020-12-23T09:36:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "92444d982f6...
fa8af009-a2b3-4d08-9c02-0d9232855c41
avidbots/flatland
flatland_plugins/include/thirdparty/tweeny/tween.tcc
/* This file is part of the Tweeny library. Copyright (c) 2016-2017 <NAME> Copyright (c) 2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
TOOL
0.913522
5.368688
{ "github_metadata": { "branch": "master", "commit_count": 796, "repo_created_at": "2017-08-15T16:22:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 118, "forks": 66, "issues": 13, "pull_requests": 3 }, "file_meta": { "content_id": "d26f0...
8abecff4-1007-4e79-962a-6b35ac5eaacf
SriramV739/CP
USACO/Contest/Silver/2020January/3.cpp
#include <algorithm> #include <fstream> #include <iostream> #include <vector> #include <map> #include <set> #include <queue> #include <cmath> #define all(x) (x).begin(), (x).end() #define vec(n) vector<ll> arr(n); typedef long long ll; using namespace std; const ll inf=15; ll n,m; vector<ll> arr; vector<vector<ll>> edg...
ALGO
0.999925
3.833985
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2022-09-08T01:47:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d2ab64f0e...
ca7a4dca-e85f-4217-ba2d-643ac0c750e7
rochford/auto-stamp
letterdetect/raydetect.cpp
/* *g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/local/lib/ -g -o binary squares.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_stitching -llept -ltesseract */ #in...
ALGO
0.99475
5.253458
{ "github_metadata": { "branch": "master", "commit_count": 86, "repo_created_at": "2015-07-19T16:38:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ac7ce571e...
825a853b-25df-4d57-98c5-fef1378842cf
n1t9/cpp-data-structures-algorithms
quick_sort.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) void quickSort(vector<int> &a, int left, int right) { if (right - left <= 1) return; int pivot_index = rand() % a.size(); int pivot = a[pivot_index]; swap(a[...
ALGO
0.999937
5.095137
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2021-07-02T02:31:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3569ec6c4ce...
acaf1db4-21c5-40f5-b59e-72c2a7185ad7
Sekakou/OIsrc
math/linear_algebra/3390matrix_pow.cpp
#include <bits/stdc++.h> #define int long long using namespace std; constexpr int N = 109, M = 1e9 + 7; int n, k, a[N][N], b[N][N]; void mul(int a[][N], int b[][N]) { int c[N][N]{}; for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) (c[i][...
ALGO
0.999939
4.882778
{ "github_metadata": { "branch": "master", "commit_count": 146, "repo_created_at": "2023-01-17T01:23:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a0e13b52...
2b0e3b52-052d-458a-9306-2ec543009ac8
zukun/rcc
vxl/vxl-1.13.0/contrib/mul/clsfy/clsfy_simple_adaboost.h
// This is mul/clsfy/clsfy_simple_adaboost.h #ifndef clsfy_simple_adaboost_h_ #define clsfy_simple_adaboost_h_ //: // \file // \brief Classifier using adaboost on combinations of simple 1D classifiers // \author <NAME> #include <clsfy/clsfy_classifier_base.h> #include <clsfy/clsfy_classifier_1d.h> #include <vnl/vnl_ve...
ALGO
0.909975
6.771699
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2013-02-21T15:10:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14, "forks": 16, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "61db7ed...
8f376930-97de-4f70-be47-79dd61bd121a
ishandutta2007/codeforces-e
e869120/normal/522/D.cpp
#include <limits> #include <vector> #include <algorithm> #include <iostream> #include <vector> #include <map> using namespace std; #pragma warning(disable: 4996) template<typename Type> class RMQ { private: int size_; std::vector<Type> dat; public: RMQ() : size_(0), dat(std::vector<Type>()) {}; RMQ(int size__) { ...
ALGO
0.99993
4.034281
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:34:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "185c1ba24efd...
5a4bec7e-ee38-4a11-9801-664935c7337d
yihuaijiereal/cpp
std/accum.cc
/** * fill and accumulate */ #include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <iterator> #include <string> #include <fstream> #include <functional> using namespace std; using namespace std::placeholders; ostream &print(ostream &os, const string &s, char c) { return os << s << ...
ALGO
0.98909
3.411735
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2020-03-27T16:39:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "005ed01cd...
063bbde8-3f8b-4dac-a6a5-5e81d47a54c9
ishandutta2007/codeforces-y
ytkn/normal/1536/B.cpp
#include <iostream> #include <algorithm> #include <iomanip> #include <vector> #include <queue> #include <set> #include <map> #include <tuple> #include <cmath> #include <numeric> #include <functional> #include <cassert> #define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << e...
ALGO
0.9997
3.834366
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:40:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c820ee2aa83c...
ad19fc01-a5d8-46c5-b4bc-bac447cd82ac
pranaliahirrao/DSA
DnC/ratMaze.cpp
#include <iostream> #include <vector> using namespace std; // Function that will handle all the below mentioned posibilities : // path closed [ 0 ] // out of boud [ cannot moved to up, down, left , right ] // check is Pos is already visited [otherwise can cause infinte loop] bool isSafe(int srcx, int srcy, int newx, i...
ALGO
0.99997
4.620752
{ "github_metadata": { "branch": "main", "commit_count": 32, "repo_created_at": "2023-09-09T13:23:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5903bd33dc8...
eea51946-0c71-422f-8ae0-bffee8abed91
DOCGroup/ACE_TAO
ACE/ace/ACE_crc_ccitt.cpp
#include "ace/ACE.h" namespace { /*****************************************************************/ /* */ /* CRC LOOKUP TABLE */ /* ================ */ /* T...
TOOL
0.981781
6.439909
{ "github_metadata": { "branch": "master", "commit_count": 91520, "repo_created_at": "2014-12-04T19:15:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 737, "forks": 386, "issues": 123, "pull_requests": 35 }, "file_meta": { "content_id": "...
60cbf06a-6362-4266-b8ce-a186b8d91c88
cookie-sid/LeetCode
1254-number-of-closed-islands/1254-number-of-closed-islands.cpp
class Solution { public: void helper(vector<vector<int>> &grid, int x, int y, int n, int m, vector<vector<bool>> &taken, int counter) { if(x < 0 or x >= n or y < 0 or y >= m) { return; } if(grid[x][y] == 1 or taken[x][y]) return; ...
ALGO
0.999926
5.900738
{ "github_metadata": { "branch": "main", "commit_count": 2213, "repo_created_at": "2021-12-25T18:49:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b98d5dc73...
996e46fb-3e4b-41d8-8df2-2e9b893ace11
NolanHo/HUST-CSE-Crypto
密码课程设计/6.模平方/expmod.cpp
#include <stdio.h> #include <openssl/bn.h> void expmod(BIGNUM *res, BIGNUM *m, BIGNUM *e, const BIGNUM *mod, BN_CTX *ctx); void expmod(BIGNUM *res, BIGNUM *m, BIGNUM *e, const BIGNUM *mod, BN_CTX *ctx) { BN_MONT_CTX *mont_ctx = BN_MONT_CTX_new(); BIGNUM *temp = BN_new(); BIGNUM *exp = BN_new(); // 初始化...
ALGO
0.999957
5.150157
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2023-06-29T03:19:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 19, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0854a91be...
119b108c-918e-4c01-a058-e39996f58a21
nileshshirkemet/DACSept2022Batch
Foundations/Methodologies/Polymorphism/generictest1.cpp
#include <iostream> #include <string> #include <list> #include <vector> #include <set> using namespace std; int main(void) { list<double> a; //generic double linked-list collection a.push_back(35.2); a.push_back(53.3); a.push_back(74.4); a.push_back(42.5); a.push_front(29.1); cout << "All values in the list" <...
TOOL
0.949704
4.486619
{ "github_metadata": { "branch": "main", "commit_count": 163, "repo_created_at": "2022-09-26T10:16:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 39, "forks": 21, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "36842cd1...
ca12aa25-7a0e-480c-9a97-0c5ef1552240
bekard/Stroustrup-ppp
Chapter 11/Exercise 7.cpp
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <cctype> #include <iomanip> #include <vector> //------------------------------------------------------------------------- // other functions bool is_punct(const char& c) { switch (c) { case '.': case ';': case '!': case '?': case ...
TOOL
0.967368
3.436687
{ "github_metadata": { "branch": "master", "commit_count": 109, "repo_created_at": "2018-09-08T09:50:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6c9554ec...
568fd272-f330-4408-a0c2-6d6979c751da
praveen4698/competitiveProgrammingWithCpp
dynamicProgramming/balancedarray.cpp
#include<bits/stdc++.h> using namespace std; #define PI 3.14159265 #define mod 1000000007 #define pb push_back static const int INF = 0x3f3f3f3f; static const long long INFL = 0x3f3f3f3f3f3f3f3fLL; const int lim = 100; vector<long long int> primes; bool F[1000001]; map<long long int,long long int> M; ...
ALGO
0.999996
4.352324
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2019-06-22T07:25:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d1665172d3...
91303b2a-e30e-4776-8d83-384356aa9a49
Rohit2301/Coding
linkedlist/merge/merge_sort.cpp
#include <bits/stdc++.h> using namespace std; class Node { public: int data; Node *next; Node() { data = 0; next = NULL; }; Node(int val) { data = val; next = NULL; }; }; void print(Node *head) { while (head != NULL) { cout << head->dat...
ALGO
0.999993
5.093289
{ "github_metadata": { "branch": "main", "commit_count": 40, "repo_created_at": "2022-01-17T20:25:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e6a7ff743e4...
d7389925-349c-4368-b6d4-5827f7c53417
MostafaAE/LeetCode
0210-course-schedule-ii/0210-course-schedule-ii.cpp
class Solution { public: /* * Approach: * Topological sort (Kahn's algorithm). * * Complexity: * Time Complexity : O(E+V) * Space Complexity : O(V) where E is "prerequisites.length" and V is "numCourses" */ vector<int> findOrder(int numCourses, vector<vector<int>>& prerequisites) ...
ALGO
0.999986
6.542916
{ "github_metadata": { "branch": "master", "commit_count": 3923, "repo_created_at": "2022-09-06T16:24:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d5c7bb8...
77eb41cc-6d8c-464e-aaf5-7dbc351e21ef
buptmiao/leetcode-oj
algorithm/cpp/072-Edit-Distance.cpp
/* Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitted on a word: Insert a character Delete a character Replace a character Example 1: Input: word1 = "horse", word2 = "ros" Output: 3 Explanation: horse -> rorse (rep...
ALGO
0.999992
5.664201
{ "github_metadata": { "branch": "master", "commit_count": 70, "repo_created_at": "2015-03-31T12:10:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "843d3f0c1...
5415ee6e-54c4-4dc7-a179-cf156ddcb188
manu-chroma/cp
codeforces/practice/614B.cpp
#include <bits/stdc++.h> using namespace std; typedef unsigned long long int li; int check_beautiful_extract (string temp) { bool one = 0; int zeros=0; // cout << temp << endl; for (int i = 0; i < temp.length(); ++i) { if(temp[i] == '1') { if(one == 0) one = 1; else return -1; } else if(tem...
ALGO
0.999936
4.072241
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2015-10-10T16:28:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0d302536d...
77b120cf-6e97-462e-993b-5786d6d7aee3
FaDaQ/Code-with-Learning-C-Process
Код в процессе изучения C++/Matrix.h
#pragma once #include <iostream> #include <vector> #define _USE_MATH_DEFINES #include <math.h> #include "myFunc.h" using namespace std; using myDoodles::Range; using myDoodles::randint; using myDoodles::multStr; //Пространство имён для работы с матрицами namespace matrix { class Matrix { public: //Ко...
TOOL
0.97723
4.216286
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2022-11-03T18:16:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "601bd2aa9...
4d688d80-a9ae-472b-a282-2fd94a5b12b2
AbhishekHacks/DSA-Solutions
Bit_Manipulation/LeetCode_477.cpp
/*The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given an integer array nums, return the sum of Hamming distances between all the pairs of the integers in nums. */ //Time Complexity -- O(32*N) class Solution { public: int totalHammingDistance(...
ALGO
0.99998
5.751571
{ "github_metadata": { "branch": "main", "commit_count": 621, "repo_created_at": "2025-02-10T06:38:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4204dc4dc0...
a5b45497-699c-408f-b398-c9a6ad76465b
lballabio/QuantLib
ql/experimental/math/latentmodel.hpp
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2008 <NAME> Copyright (C) 2014 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can r...
ALGO
0.975891
6.690028
{ "github_metadata": { "branch": "master", "commit_count": 17543, "repo_created_at": "2015-12-17T16:29:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6151, "forks": 1964, "issues": 51, "pull_requests": 11 }, "file_meta": { "content_id":...
a8499252-db42-4a4d-b541-239984df3184
Baxkiller/LeetCode_ED
725.分隔链表.cpp
/* * @lc app=leetcode.cn id=725 lang=cpp * * [725] 分隔链表 */ /* vector<int> Count; // 以head为开头,分配count个节点 返回下一个开头 ListNode* split(ListNode* head,int count) { if(count==0 || head==nullptr) return nullptr; ListNode* nxt=head->next; count--; while(count--) { ...
ALGO
0.999731
5.954158
{ "github_metadata": { "branch": "main", "commit_count": 56, "repo_created_at": "2022-03-21T01:38:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aea28838f1f...
44977210-d2a2-4f51-9b66-ed48c1102fd3
szmurlor/fiver
src/ufc-2.0.5/doc/manual/code/stiffness_syfi/fe_Lagrange_1_2D.cpp
// // This code complies with UFC version 1.0, and is generated with SyFi version 0.4.0. // // http://www.fenics.org/syfi/ // http://www.fenics.org/ufc/ // #include <stdexcept> #include <math.h> #include <ufc.h> #include <pycc/Functions/Ptv.h> #include <pycc/Functions/Ptv_tools.h> #include <pycc/Functions/Dof_Ptv.h> ...
ALGO
0.994533
6.431396
{ "github_metadata": { "branch": "master", "commit_count": 47, "repo_created_at": "2015-04-22T07:33:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fcea00510...
350203a1-c079-45eb-b081-3b16204cea29
Mrzhang-W/Book-Chapter10_2
main.cpp
#include<iostream> #include<string> #include<ctime> using namespace std; string commonChars(const string& s1, const string& s2) { // 用来测试的代码 // cout << s1 << endl; // cout << s2 << endl; string commons; for (int i = 0; i < s1.length(); i++) { if (commons.length() > 0 && commons.find(s1[i]) != string::npos) { //...
ALGO
0.995518
4.129275
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2020-11-17T14:54:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bb156f254458...
8e3b9b3b-d19b-4a6e-9710-78d2a65554fb
simbody/simbody
examples/BricardMechanism/ExampleBricardMechanism.cpp
/* -------------------------------------------------------------------------- * * Simbody(tm) Example: Bricard Mechanism * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
ALGO
0.965007
5.569708
{ "github_metadata": { "branch": "master", "commit_count": 5026, "repo_created_at": "2013-08-16T00:21:53.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2427, "forks": 483, "issues": 136, "pull_requests": 21 }, "file_meta": { "content_id": "...
0dcafb53-ff37-44fc-b508-2ecfabe2edd2
Soyn/CLRS_Exercise
Dynamic_Programming/Longest Common Sequence/LCS.cpp
/******************************** * @Author: Soyn * @Brief:The longest common sequence * @CreatedTime:24/1/16. ********************************/ #include <iostream> #include <memory> #include <string> // // @Brief: longest common sequence class LCS{ public: LCS() = default; LCS(const std :: string sequence_x, ...
ALGO
0.998779
4.959186
{ "github_metadata": { "branch": "master", "commit_count": 99, "repo_created_at": "2015-07-26T04:14:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "902a1643b...
617697d2-d13b-4d2e-a037-ae33466adefc
Prathmesh410/DSA-450
Hash/MergeLinkedList.cpp
// { Driver Code Starts // #include <bits/stdc++.h> using namespace std; struct Node { int data; Node *next; Node(int val) { data=val; next=NULL; } }; Node* inputList(int size) { Node *head, *tail; int val; cin>>val; head = tail = new Node(val); while...
ALGO
0.999917
4.672501
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2022-01-18T01:36:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9bb5af6c526...
d4f512d4-bfd0-472f-8cae-6aab0b2eeeb3
axmtn/linked-list
linked-list.cpp
#include <iostream> #include <iomanip> #include <fstream> #include <string> #include "ArgumentManager.h" using namespace std; class Book { private: int id; string title; string author; Book *next; public: Book(int i, string name, string au) { id = i; title = name; author =...
TOOL
0.999077
5.052436
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-07-26T04:45:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ca8ae92eaa...
31b7c8e0-861b-43cf-a070-08234dd4e785
ingenierialinuxpereira/developments
C++/C++/LISTAS2.CPP
#include <stdio.h> #include <conio.h> #include <alloc.h> #include <iostream.h> #include <string.h> typedef struct notas { char cedula[20]; float n1; float n2; float n3; } ; typedef struct lista { notas info; struct lista *sig, *ant; } *aplista; int adicionar(); notas buscar(aplista cabeza); aplista crearlista(); aplist...
TOOL
0.944932
3.997663
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2021-03-26T18:05:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "228a03fef1c9...
204b0351-e6e2-43da-bc92-c1f809175921
nurFatyma720/aicpTasks
task_3/main.cpp
#include <iostream> #include <string> using namespace std; // Class representing a Student Node in the stack class Student { public: string name; int marks; Student* next; // Constructor Student(string n, int m) : name(n), marks(m), next(nullptr) {} }; // Stack class using linked list class Stack...
ALGO
0.998432
6.545678
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2024-12-21T09:46:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9f57781d2bc3...
59f41ef2-9d86-4911-82ef-2224e5fe1225
4141amitkumar/DSA_CODES
Queue/6Design_Deque_from_DLL.cpp
#include<iostream> using namespace std; class Node{ //DLL Node public: int val; Node* next; Node* prev; Node(int val){ this->val=val; this->next=NULL; this->prev =NULL; } }; class Deque{ public: Node* head; Node* tail; int size; Deque(){ head=tail=NULL; size=0; } void push_bac...
ALGO
0.999433
4.452692
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2025-04-05T01:49:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6df54ffc7d7...
c997a424-347e-4c54-9c59-91d720382725
Damorgal/Numerical-Methods
Tarea-2_Paralelizacion/Paralelizacion desde archivo/suma_matrices.cpp
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> double **createMatrix(int nr, int nc); void freeMatrix(double **mat); void inicializacion(double **A, int n); void suma(double **A, double **B, int n, double **C); void tiempoTranscurrido(struct timeval t1, struct timeval t2); int main(in...
ALGO
0.954339
4.454508
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-11-27T21:47:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "28b3a8544877...
2523e15d-304d-403f-9f5c-617aec22ef3e
bqi343/cp-notebook
Contests/USACO Solutions/2013-14/Dec 2013/13 Dec G2.cpp
// #include<iostream> #include<fstream> #include<set> #include<map> #include<unordered_map> #include<cmath> #include<cstring> #include<string> #include<bitset> #include<algorithm> #include<vector> using namespace std; //using namespace __gnu_pbds; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ...
ALGO
0.999877
3.326581
{ "github_metadata": { "branch": "master", "commit_count": 1350, "repo_created_at": "2017-07-11T03:52:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2642, "forks": 429, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "dc...
90efd718-5f8f-49c0-8bba-b795f56ef54d
codingSJ/BOJ
1697.cpp
// base setting #include <iostream> #include <queue> using namespace std; using ll = long long; int N, K; int cnt[100001] = {0}; bool visited[100001] = {false}; queue<int> q; void bfs() { while (!q.empty()) { int u = q.front(); visited[u] = true; q.pop(); if (u == K) ...
ALGO
0.999984
4.373828
{ "github_metadata": { "branch": "main", "commit_count": 57, "repo_created_at": "2021-02-16T20:39:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e3d62cc9a89...
4d8df88b-a950-4b33-9bb3-e2c655e6e2bb
Yestercafe/leetcode-solutions
1092-shortest-common-supersequence/solution_dp.cc
class Solution { public: string shortestCommonSupersequence(string s, string t) { int n = s.length(), m = t.length(); vector f(n + 1, vector(m + 1, 0)); for (int i = 1; i <= n; ++i) { f[i][0] = i; } for (int j = 1; j <= m; ++j) { f[0][j] = j; }...
ALGO
0.999995
6.226346
{ "github_metadata": { "branch": "master", "commit_count": 708, "repo_created_at": "2021-03-03T07:18:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c0cbcd14...
2c39b388-c42e-4ad0-9882-b5c167e9d3ac
jdreo/descarwin
cpt-yahsp/src/propagations.cpp
/* * CPT - a Constraint Programming Temporal planner * * File : propagations.c * * Copyright (C) 2005-2011 <NAME> <<EMAIL>> */ #include "cpt.h" #include "options.h" #include "structs.h" #include "problem.h" #include "propagations.h" #include "scheduling.h" #include "plan.h" #include "trace_planner.h" #ifdef RE...
ALGO
0.997142
5.220033
{ "github_metadata": { "branch": "master", "commit_count": 968, "repo_created_at": "2013-11-05T14:45:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 5, "issues": 2, "pull_requests": 1 }, "file_meta": { "content_id": "5e3e1efa...
78a5fc4d-e39e-4c9a-acb9-ce4efcc4dbec
IHR57/Competitive-Programming
CodeForces/69B.cpp
#include <bits/stdc++.h> #define MAX 105 using namespace std; struct data { int l, r, t, d, idx; }; bool compare(data A, data B) { if(A.t == B.t) return A.idx < B.idx; return A.t < B.t; } int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); data a[MAX]; int n, m, visited[MAX...
ALGO
0.99974
3.818223
{ "github_metadata": { "branch": "master", "commit_count": 80, "repo_created_at": "2018-12-28T07:37:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "41e233d32...
3f99a677-0f78-4cb0-a871-a057bf01a116
Biswa-28/Estimation-with-Gamma-frailty
numerical_integration.cpp
// [[Rcpp::depends(RcppEigen)]] // [[Rcpp::depends(RcppNumerical)]] #include <math.h> #include <vector> #include <iostream> #include <RcppNumerical.h> using namespace Numer; class JointSubDist: public MFunc { public: JointSubDist(double k_1, double k_2, std::vector<double> mu_1, std::vector<double> mu_2,std:...
ALGO
0.999058
5.571695
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2025-01-30T18:26:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5c64716333a...
0f7a6436-0c4d-4b52-a3a5-e7586fb17267
IM-RAHUL-RAJ/ebox-solutions
queue/i-practc/Queue - Linked List Implementation.cpp
#include <stdio.h> #include <stdlib.h> struct node { int data ; struct node * link ; } ; void addcirq(struct node**,struct node**,int); int delcirq (struct node**,struct node**); void cirq_display ( struct node * ) ; void printMenu(); int main() { struct node *front = NULL, *rear = NULL ; int data,ch, data1; d...
ALGO
0.999114
3.805726
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2021-01-18T17:08:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4a6a9fdfa...
d1355485-e269-48a1-ba65-fb31168c8d7b
khyun-kim/SW-expert-academy-study-storage
kh030728/B10828/B10828.cpp
#include <iostream> using namespace std; class node { public: node *prev = NULL; int data = 0; }; class stack { node *top = NULL; int size = 0; public: void push(int elem) { size++; if(top == NULL) { top = (node*)malloc(sizeof(node)); top->...
ALGO
0.997446
4.210081
{ "github_metadata": { "branch": "master", "commit_count": 116, "repo_created_at": "2019-03-25T08:02:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e9e14cda...
456a1d0a-e6eb-4c39-a393-2d9889223fa0
snehagupta20/design-and-analysis-of-algorithm
DAA project/ques2/bucketsort.cpp
//THIS CODE IS WRITEN BY <NAME> //2021UCA1859 //DAA PROJECT #include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { //number of entries to be made in an array int n; //inputting n from user cout<<"Enter the number of entries:"; cin >>n; float arr[n]; cout<<...
ALGO
0.999662
4.072085
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-12-28T15:25:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d4a875064539...
56d49ce4-358b-4249-b0b0-e5d9736db5b6
Disha167/-30DaysLeetcodeChallenge
33. Search in Rotated Sorted Array.cpp
//🎯DAY 16 PROBLEM 2 //The idea is to apply binary search for two parts of the array seperately, after determining the pivot point. //Just remember the case when the pivot point is the last element i.e. eg. 1 2 3 4 5 so we have to appply binary search on whole array seperately.. as arr[i]>arr[i+1] will never be true. ...
ALGO
0.999991
5.913946
{ "github_metadata": { "branch": "main", "commit_count": 166, "repo_created_at": "2020-10-22T19:45:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1cb6358c95...
fa91fec9-e800-42c6-850a-75c7c82975f0
MatanelAbayof/6-Colors
oop2_ex4/PlayerAISuper.cpp
#include "PlayerAISuper.h" PlayerAISuper::PlayerAISuper() { } sf::Color PlayerAISuper::selectColor() { if (!isReadyToPlay()) throw std::logic_error("Cannot select color"); // count colors occurrences of new adjacents std::unordered_map <int, int> colorCounter; for (size_t i = 0; i < ColorPanel::COLORS.size(); ...
ALGO
0.909892
4.61101
{ "github_metadata": { "branch": "master", "commit_count": 157, "repo_created_at": "2020-08-25T09:27:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "83d87f98...
d1a68797-174a-4186-b7e3-2616b365921a
uphargaur/DSA-Questions
minimum_multiplication.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution { public: int minimumMultiplications(vector<int>& arr, int start, int end) { //minimum queue bana leta hu vector <int...
ALGO
0.999853
5.410254
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-12-31T06:48:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d9890f91d...
52722535-c177-49b3-b25c-046067cd4bce
Cai-Guang/TianNiYiKou-2024-Training-Records
ICPC/Hangzhou/cmpB/data.cpp
/* _/ _/ _/ _/ _/ _/ _/_/_/_/_/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/_/ _/_/ _/_/_/_/_/ _/ _/ _/ ...
ALGO
0.997414
4.062802
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2024-10-31T04:36:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2b9d73ddf87...
5cd095a8-b852-4a5a-80d3-ce786e45c170
rohitrangan/SQLiter
src/btree/btree.cpp
#define MAX 5 #include <iostream> using namespace std; class node; //To handle forward reference struct pair_t { node *next; int key; }; class node { public: int noofkeys; pair_t data[MAX]; node *father; node *first; node(); int leafnode(); void insertinanode(pa...
ALGO
0.999833
3.308966
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2014-04-04T11:57:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "23c856954...
2a559348-b011-4891-9d25-0633a9c3c534
puppypod/algorithm-cpp
20210805구간합구하기_BU/구간합구하기_BottomUp.cpp
#include <iostream> #include <vector> using namespace std; int s = 1; vector<long long> nums; vector<long long> trees; // Bottom-Up void initBU() { for (int i = 0; i < nums.size(); i++) { trees[s + i] = nums[i]; } for (int i = s - 1; i >= 1; i--) { trees[i] = trees[i * 2] + trees[i * 2 + 1]; } } void updat...
ALGO
0.999673
4.744904
{ "github_metadata": { "branch": "master", "commit_count": 228, "repo_created_at": "2021-01-02T12:08:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b91ca8dd...
118936bf-8f96-4ad9-9914-0272113b148d
hit9/code-snippets
shortest-path/bidirectional-astar/main.cc
// 双向 A star #include <cstring> #include <iostream> #include <queue> #include <vector> // m x m 网格中的 A* 寻路, 带边权 // 节点标号编码规则: i*m + j using namespace std; const int N = 1e5 + 1; const int inf = 0x3f3f3f3f; using P = pair<int, int>; // (代价/边权, 节点号) vector<vector<P>> edges; // edges[x] => {{w, y}} 边权, 邻接点 // 一个平...
ALGO
0.999979
4.336662
{ "github_metadata": { "branch": "master", "commit_count": 818, "repo_created_at": "2021-03-23T04:06:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 36, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6a5abf4...
19a4533d-6970-4fc0-8a99-6ab9fbdbf5e4
ishandutta2007/codeforces-a
alan233/normal/1539/E.cpp
// orz nb problem! #include <cstdio> #include <iostream> #include <algorithm> #include <cmath> #include <cstring> #include <vector> #include <queue> #include <string> #include <set> #include <map> #include <ctime> #include <cstdlib> using namespace std; typedef long long ll; const int inf = (1 << 30) - 1; const ll l...
ALGO
0.999955
3.006721
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "130901eb3c8c...
5b0eaf26-b699-49d4-90af-0f444da7fe72
CSUwangj/LeetCode
1337.the-k-weakest-rows-in-a-matrix.cpp
/* * @lc app=leetcode id=1337 lang=cpp * * [1337] The K Weakest Rows in a Matrix */ // @lc code=start auto speedup = [](){ cin.tie(nullptr); cout.tie(nullptr); ios::sync_with_stdio(false); return 0; }(); class Solution { public: vector<int> kWeakestRows(vector<vector<int>>& mat, int k) { int rows = m...
ALGO
0.999923
6.607782
{ "github_metadata": { "branch": "master", "commit_count": 77, "repo_created_at": "2020-10-10T01:43:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bdc6454f4...
40c03a19-1693-43f2-800d-fe8ea3d4315c
sammy51305/CompetitiveProgramming
Contest/Codeforces/Global Round 7/C. Permutation Partitions.cpp
#include<bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long n; long long k; long long data; vector<pair<long long,long long>> v; cin >> n >> k; for(long long i = 1; i <= n; i++){ cin >> data; v.push_back(m...
ALGO
0.999884
4.058287
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-04-02T17:38:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "26fd666e8e...
62ea93db-ce5d-4c23-ae8a-911e63e19139
belous-dp/ct-discrete-mathematics
semester1/lab3-combinatorics/8.cpp
#include <bits/stdc++.h> using namespace std; #define mp make_pair #define all(x) x.begin(), x.end() #define multi_test 0 using ll = long long; using ld = long double; using pii = pair<int, int>; using pli = pair<ll, int>; using pll = pair<ll, ll>; constexpr int MAXN = 3e5 + 7; constexpr ll MOD = 1e9 + 7; constexpr...
ALGO
0.999977
4.483119
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-02-22T20:10:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6be681afe7d5...
3014eb65-c85b-4e98-892a-d6476bad13e4
shrish789/SDE-Problems
Palindrome Linked List.cpp
/* Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example 2: Input: 1->2->2->1 Output: true Follow up: Could you do it in O(n) time and O(1) space? */ // FIRST APPROACH: Brute force, offcourse // SECOND APPROACH: Find length class Solution { public: bool isP...
ALGO
0.999802
5.950985
{ "github_metadata": { "branch": "master", "commit_count": 210, "repo_created_at": "2020-08-01T16:36:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6b1045b9...
a00571fb-d75d-4b16-b1b3-71473770a52a
andwang1/aurora-representation-learning
airhockey/src/stat/stat_similarity.hpp
// // Created by <NAME> // #ifndef SFERES2_STAT_TRAJ_SIMIL_HPP #define SFERES2_STAT_TRAJ_SIMIL_HPP #include <sferes/stat/stat.hpp> #include <numeric> namespace sferes { namespace stat { SFERES_STAT(Similarity, Stat) { public: typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen...
ALGO
0.949454
6.057149
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-09-02T17:18:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "41316edcea...
1980bbc0-3eb2-4414-aebd-318d1732d34c
ag-sar/cv1617-60623
Aula4/src/CornerDetect.cpp
#include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; int thresh = 100; //threshold level int const maxThresh = 255; Mat frame, final; void cornerDetect(int, void*) { int blockSize = 2; int apertureSize = 3; double k = 0.04; Mat finalScaled; //Harris algorythm for corner...
ALGO
0.992254
6.399412
{ "github_metadata": { "branch": "master", "commit_count": 208, "repo_created_at": "2016-09-21T09:55:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b0e100b2...
b10c55a2-dfb9-4247-8c74-60be5b882b5b
mkp0/CP
CodeForce/B - Nice Matrix.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll t; cin >> t; while (t--) { ll m, n; ll ans = 0; cin >> m >> n; ll mat[m][n]; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { ...
ALGO
0.999963
3.842004
{ "github_metadata": { "branch": "master", "commit_count": 198, "repo_created_at": "2020-06-19T19:32:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc4fd3e6...
603c17e9-412a-4217-90e6-723f7c6b3c9f
L-R-S03/Programming-II-Lab1
main.cpp
//----------------------------------------------------------------------------------- //Author: <NAME> //Date: January 24th 2022 //Course: Programming II, Spring 2022 //Project: Homework 1 //----------------------------------------------------------------------------------- #include <iostream> #include <ioman...
TOOL
0.916823
4.764739
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-05-17T02:35:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1e5ff85296...
34a6048a-1340-4aea-aa8d-e99455b69601
davidanastasov/Programski
Nizi/Domasna2/6-interval.cpp
// 6. Да се напише програма во која се внесуваат n броеви. // Да се определи колку од внесените броеви припаѓаат на интервалот [10,50]. // Пресметување број на елементите на низата да се резлизира со функција. #include <iostream> using namespace std; void popolniNiza(int niza[], int n) { for (int i = 0; i < n; i...
ALGO
0.994465
4.177421
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2020-10-20T15:00:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "502501798...
13ab30a3-d604-4049-b58b-59a66958c21f
Aashish774-star/45Day_DSA_Challenge
Q65.cpp
// Write a C++ program to determine if it's possible to split students into two clubs with distinct themes. #include <iostream> #include <unordered_map> #include <vector> using namespace std; string canSplitClubs(int n, int k, const vector<int>& themes) { unordered_map<int, int> freq; // Count how many stude...
ALGO
0.999877
6.279588
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-07-12T12:01:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e72611bf7083...
99bb9979-654d-45b3-9789-8d6c2992e450
memehead/Algorithm-LintCode
src/main/code/c/LintCode_0077_longestCommonSubsequence.cpp
#include<iostream> #include<vector> using namespace std; // https://www.lintcode.com/problem/77 int longestCommonSubsequence(string& a, string& b) { if (a.empty() || b.empty()) { return 0; } int N = a.size(); int M = b.size(); vector<vector<int>> dp(N, vector<int>(M, 0)); dp[0][0] = a.at(0) == b.at(0) ? 1 ...
ALGO
0.998933
5.160337
{ "github_metadata": { "branch": "main", "commit_count": 94, "repo_created_at": "2022-12-12T08:29:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7fcb95ab99d...
b5b0e6fd-c926-4559-a13a-88e8f980aeca
blizzaaard/lc2015
add_two_numbers.cpp
// #2 Add Two Numbers // // You are given two linked lists representing two non-negative numbers. The // digits are stored in reverse order and each of their nodes contain a single // digit. Add the two numbers and return it as a linked list. // // Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) // Output: 7 -> 0 -> 8 #include ...
ALGO
0.999801
6.241822
{ "github_metadata": { "branch": "master", "commit_count": 40, "repo_created_at": "2015-04-06T03:07:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cbde2d750...
70a111a6-234a-4d17-9f11-0adf36ac3963
kangsunwoo827/algorithm_ps_cpp
5419.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int tree[80000*4]; void update(int node, int start, int end, int idx, int diff){ if (idx<start || end < idx) return; tree[node] += diff; if (start==end) return; int mid = (start+end)/2; update(node*2,start,mid,idx,di...
ALGO
0.999946
4.140538
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-03-05T00:58:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "537273ed8feb...
90ec178f-9325-49c9-8388-26ee6db12a51
livinamuk/Hell2025
Hell2025/Hell2025/vendor/openmesh/include/OpenMesh/Tools/Decimater/ModHausdorffT.hh
/* ========================================================================= * * * * OpenMesh * * Copyright (c) 2001-2025, RWTH-Aachen University * * ...
ALGO
0.999105
6.272397
{ "github_metadata": { "branch": "main", "commit_count": 234, "repo_created_at": "2023-09-03T12:40:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1970, "forks": 89, "issues": 3, "pull_requests": 5 }, "file_meta": { "content_id": "8e668f...
6427f261-89cd-4ba0-8673-6a7f3f584760
AndrewPash/c-projects
algorithms&data structure/affine cipher attack.cpp
#include <iostream> #include <string> #include <windows.h> #include <fstream> #include <cmath> #include <vector> #include <algorithm> std::string alph = "абвгдежзийклмнопрстуфхцчшщьыэюя"; int kv = pow(alph.length(), 2); std::string textd; struct pair { double n; std::string s; pair() { n = 0; ...
ALGO
0.999975
3.49509
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-02-06T14:41:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "74dba1401144...
6c5a20f6-bdde-40c8-a70a-8bbbc8cc35db
Nago27/Algorithm
Programmers/탐색/game_map.cpp
#include <vector> #include <queue> #include <algorithm> using namespace std; int dx[4] = {-1, 1, 0, 0}; int dy[4] = {0, 0, -1, 1}; bool visited[101][101] = { false }; int solution(vector<vector<int> > maps) { int answer = -1; int N = maps.size(); int M = maps[0].size(); int m_x = 0, m_y = 0; que...
ALGO
0.999886
3.96401
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2025-02-02T14:54:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bd23e0a3358...
db47cab6-6b7a-4a0a-9b56-c4d8b766e371
appiniakhil/Leetcode_solutions
solutions/0001-Two Sum.cpp
class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { //Naive Approach //Time Complexity : O(n^2) // vector<int> ans; // int n = nums.size(); // for(int i =0;i<n;i++) // { // for(int j =i+1;j<n;j++) // { // ...
ALGO
0.999938
6.15312
{ "github_metadata": { "branch": "main", "commit_count": 1087, "repo_created_at": "2023-05-20T12:58:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d519642d...
21f9e650-d005-4571-9508-7d2512f2c411
gazebosim/gazebo-classic
deps/opende/OPCODE/OPC_MeshInterface.h
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* * OPCODE - Optimized Collision Detection * Copyright (C) 2001 <NAME> * Homepage: http://www.codercorner.com/Opcode...
TOOL
0.900921
6.501832
{ "github_metadata": { "branch": "gazebo11", "commit_count": 32589, "repo_created_at": "2020-04-19T04:26:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1271, "forks": 503, "issues": 1466, "pull_requests": 11 }, "file_meta": { "content_id...
c56184dd-8b23-4e3f-9077-946db7e7e45d
sekiya9311/Programming-Contest
codeforces/CFR#410/B.cpp
#include <iostream> #include <string> #include <queue> #include <stack> #include <algorithm> #include <list> #include <vector> #include <complex> #include <utility> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <climits> #include <bitset> #include <ctime> #include <map> #include <uno...
ALGO
0.999896
3.45399
{ "github_metadata": { "branch": "master", "commit_count": 469, "repo_created_at": "2016-06-19T09:44:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c30bf4ed...
d4630a75-a14a-4ff7-a331-e25c044462cd
smmesbahulislam/Algorithm-lab
Assignment/2018331096_CSE238_LAB5/prims.cpp
//Prim's algo in cpp #include<bits/stdc++.h> using namespace std; #define INF 9999999 #define V 7 int G[V][V]={ {0, 7, 0, 5, 0, 0, 0}, {7, 0, 8, 9, 7, 0, 0}, {0, 8, 0, 0, 5, 0, 0}, {5, 9, 0, 0, 15, 6, 0}, {0, 7, 5, 15, 0, 8, 9}, {0, 0, 0, 6, 8, 0, 11}, {0, 0, 0, 0, 9, 11, 0} }; int ma...
ALGO
0.999963
4.428433
{ "github_metadata": { "branch": "main", "commit_count": 57, "repo_created_at": "2022-05-13T19:31:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d9acc27b890...
e65d5118-1cae-4c5f-a152-f883d629580b
shrivastava12/C-programming
c++program/vector_modifires.cpp
// Modifiers in vector #include<iostream> #include<vector> using namespace std; int main() { vector<int> v; v.assign(5,10); cout<<"The vector elements are:"; for(int i=0;i<v.size();i++) cout<<v[i]<<" "; //Insert 15 elements to the last position v.push_back(15); int n = v.size(); ...
ALGO
0.902732
4.151247
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-03-28T08:53:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9e1297c8a4...
3131c6ee-46a3-423e-a84e-da9fe46389b4
lessandro/nbis
misc/nistmeshlab/vcglib/vcg/Eigen/src/QR/SelfAdjointEigenSolver.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 <NAME> <<EMAIL>> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either //...
ALGO
0.999752
6.399887
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2011-09-21T11:13:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 80, "forks": 81, "issues": 0, "pull_requests": 3 }, "file_meta": { "content_id": "68d69b2f...
8aadca72-b013-4f91-bf50-5aa01e3ee774
nawabSRJ/DSA_CPP
Hashing/problem1_basics.cpp
// hashing technique implemented using an array #include<bits/stdc++.h> using namespace std; int main() { int n; cout << "Enter the size of array : "<<endl; cin>>n; int arr[n]; // take input for array elements cout <<"Enter elements of the array : "<<endl; for(int i = 0 ; i < n; i++){ ...
ALGO
0.999552
4.224825
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2023-10-06T10:34:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "75d15e4027b...
bb922c3a-1a93-4605-83b0-65d464d83e9f
xoravi/Assignments-and-Lab-Work
Algorithms & Operating System Lab/SJF.cpp
#include<iostream> using namespace std; struct process { int pid; int at; int bt; float pbt = 1; int tat; int wt; }; void preSJF(process p[], int n) { cout<<"\n-> Premptive Shortest Job First: \n\n Gantt's Chart: \n"; int tbt[n]; for (int i=0; i< n; i++) tbt[i]=p[i].bt; int prcssing=n,min=INT_MAX; in...
ALGO
0.999936
4.28343
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2018-10-06T18:38:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b8548c3c8...
5092281e-4298-41ff-823c-359385154fba
ctpelok77/kstar
src/search/merge_and_shrink/merge_scoring_function_goal_relevance.cc
#include "merge_scoring_function_goal_relevance.h" #include "factored_transition_system.h" #include "transition_system.h" #include "utils.h" #include "../options/option_parser.h" #include "../options/plugin.h" using namespace std; namespace merge_and_shrink { vector<double> MergeScoringFunctionGoalRelevance::comput...
TOOL
0.934255
6.963923
{ "github_metadata": { "branch": "master", "commit_count": 10539, "repo_created_at": "2020-02-07T01:44:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 10, "forks": 7, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "ca686...
1c91f0ae-541b-449b-9325-2ff5b78cd7d5
passagemath/upstream-LiDIA
src/ec_order/eco_gfp/ffx/ff2_appl.cc
//============================================================================================== // // This file is part of LiDIA --- a library for computational number theory // // Copyright (c) 1994--2001 the LiDIA Group. All rights reserved. // // See http://www.informatik.tu-darmstadt.de/TI/LiDIA/ // //-----------...
ALGO
0.946687
4.06676
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2014-10-04T22:46:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 30, "forks": 9, "issues": 7, "pull_requests": 0 }, "file_meta": { "content_id": "1495ac8d3...
aedf2328-9e70-4dc9-b122-5ee101c5b7ff
raincross7/code-similarity
codes/train_code/problem380/problem380_211.cpp
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) #define pb push_back #define all(v) (v).begin(),(v).end() #define fi first #define se second #define sz(x) ((int)(x).size()) using ll=long long; typedef pair<int,int> pii; typedef pair<ll,ll> pll; #define MOD 1000000007 const ll INF...
ALGO
0.999978
3.16508
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8acf851241d8...
0ce1f769-af9f-4ca9-8d8d-7d9eba4f2dbc
xudon9/nota-de-algo
leetcode/2685.count-the-number-of-complete-components/solution.cpp
#include "../../common.hpp" // https://leetcode.com/problems/count-the-number-of-complete-components/ struct Solution { struct Node { int parent; int depth; int n_node; int n_edge; }; using R = vector<Node>; static void debug_r(const R& r) { int i{}; for (const auto &n : r) { printf("%d: parent=%...
ALGO
0.999466
6.128368
{ "github_metadata": { "branch": "main", "commit_count": 89, "repo_created_at": "2023-05-07T06:34:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3a8aae3afcf...