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
392948b5-4006-4d13-9330-3feba78ac75b
key-moon/compro
aoj/1232/5238614.cpp
// detail: https://onlinejudge.u-aizu.ac.jp/status/users/keymoon/submissions/1/1232/judge/5238614/C++17 #include<bits/stdc++.h> using ll = long long; #define var auto const char newl = '\n'; using namespace std; template<typename T1, typename T2> inline void chmin(T1& a, T2 b) { if (a > b) a = b; } template<typename ...
ALGO
0.999985
3.9145
{ "github_metadata": { "branch": "master", "commit_count": 4488, "repo_created_at": "2020-11-08T08:45:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "09add45...
65a48450-0299-4306-842d-cc87f9115caa
Arickaji/DSA-Learning
reverseArray.cpp
/* Task is to reverse array without using second array for to solve this problem we are using 2 pointers method to reverse the array. */ #include<iostream> using namespace std; void reverseArray(int arr[] , int size){ int start = 0; int end = size - 1; while(start<end){ int temp = arr[s...
ALGO
0.999989
4.930169
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2025-02-18T11:02:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b5e055ccdf9...
3bda47a5-81de-48c9-a6c2-549c22e2f002
ishandutta2007/codeforces-f
fairy_tale/normal/1684/A.cpp
#include<bits/stdc++.h> #define fi first #define se second #define LSON t << 1, l, mid #define RSON t<< 1 | 1, mid + 1, r #ifdef FEIFEI #define Debug printf #else #define Debug(...) #define endl '\n' #endif using namespace std; typedef long long LL; typedef pair<int, int> P; const int maxn = 2e5 + 5; const int mod = ...
ALGO
0.999366
4.945914
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:43:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "671a0154e681...
d55e0d66-3f68-4ace-9f41-cf653f1976ca
cakwok/Autonomous-Driving
4. Scan Matching Localization/backup/3. Markov Localization/38. Coding the Full Filter/main.cpp
#include <algorithm> #include <iostream> #include <vector> #include "helpers.h" using std::vector; using std::cout; using std::endl; vector<float> initialize_priors(int map_size, vector<float> landmark_positions, float position_stdev); float motion_model(float pseudo_position, float...
ALGO
0.999833
6.638186
{ "github_metadata": { "branch": "main", "commit_count": 276, "repo_created_at": "2023-02-06T04:54:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 10, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "095f2a102...
f8a03de2-ccb1-435d-868a-dff23700783d
shen98/codeforces
1033c.cpp
#include <iostream> #include <vector> #include <algorithm> #include <cstring> using namespace std; //typedef pair<int, int> pii; const int N = 1e5 + 5; int n; int dp[N], a[N], p[N]; //vector<pii> v(N); int main() { cin >> n; for(int i = 1; i <= n; ++i) { cin >> a[i]; p[a[i]] = i; } for...
ALGO
0.999943
3.118313
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2020-05-30T17:03: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": "29e075c88b...
e51909bc-1af1-48eb-9f06-a03a2600ee9b
metaflow/contests
uva/chapter_4/10765.cc
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstdlib> #include <c...
ALGO
0.999821
4.022259
{ "github_metadata": { "branch": "master", "commit_count": 415, "repo_created_at": "2014-05-12T04:59:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1c3d183a...
dccf1968-20f1-432f-90fc-dfa4f6aeaa55
LakshayBaijal/DSAP_Assignments_Lakshay
Data Structures and Algorithms Practice Codes/Sorting/MergeSort.cpp
void merge(vector <int> &arr, int low, int mid, int high) { vector <int> a; int left = low; int right = mid + 1; while(left <= mid && right <= high ) { if(arr[left]<=arr[right]) { a.push_back(arr[left]); left++; } else if(arr[left]>arr[right])...
ALGO
0.999997
6.13928
{ "github_metadata": { "branch": "main", "commit_count": 104, "repo_created_at": "2024-09-08T20:44:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "507ce7bf15...
8e8b1b1b-654b-4123-aac4-ede2b9a44554
Danila51/contests_2020_1
контесты/контест 8/c.cpp
#include<iostream> #include<queue> using namespace std; struct node { int key_value; int h; node* left; node* right; }; class btree{ public: node* root; btree(){ root = NULL; } ~btree() { destroy_tree(root); } void insert(int key){ if(root!=NULL) { insert(key, root); } else { roo...
ALGO
0.999942
3.80122
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2020-11-14T10:21:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c40172a31a...
054c132a-6878-4f12-8314-5ddf5cd86d4c
Yousef-Sayed-Younis/cpp-problem-solving
U_Some_Sums.cpp
#include <bits/stdc++.h> using namespace std; #define endl '\n' typedef long long ll; #define ctoi(x) x - 48 #define even(x) (not (x&1)) #define itoc(x) char(x + 'a') #define stringArr(n) char s[n] #define sz(v) ((int) ((v).size())) #define all(v) ((v).begin()), ((v).end()) #define clr(v, d) memset(v, d, sizeof(v))...
ALGO
0.999279
3.921945
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2022-11-15T10:32: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": "764a3c39030...
08c9acd5-a40e-46d5-a1c0-67ec7e34707e
anuragsah00/algorithms-practice
sorting/quickSort.cpp
/* Merge Sort Runtime: O( n log (n) ) average and worst case. Memory: Depends. Merge sort divides the array in half, sorts each of those halves, and then merges them back together. Each of those halves has the same sorting algorithm applied to it. Eventually, you are merging just two single-...
ALGO
0.999988
6.314984
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2018-08-16T02:56: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": "dce271dd84...
e941818b-eed4-4921-968b-9696d8420319
whai362/AcmCode
datum/muti2015/标程(3)/标程/1006.cpp
#include <cstdio> #include <cstring> #include <algorithm> #include <assert.h> using namespace std; typedef long long ll; const int N = 100000+5; const int Mod = 258280327; int pri[N], mu[N], pnum; bool vis[N]; int fac[N], ff[N], pow2[N]; void mobius(int n) { mu[1] = 1; for(int i = 2;i <= n; i++) { if(...
ALGO
0.999968
3.37606
{ "github_metadata": { "branch": "master", "commit_count": 101, "repo_created_at": "2015-03-23T08:28:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5b2700ad...
e37cb8a2-4fe2-4d15-915d-5bf51da20770
kwonsunbin/SW-Certi-PRO
분산처리.cpp
#include <iostream> #include <vector> #include <math.h> using namespace std; int T; int a; int b; //3 9 7 1 3 9 7 1 // 4 6 4 6 4 void solve(int a, int b){ int crnt = a%10; int target = crnt % 10; int cycle = 1; if (target == 0){ printf("10\n"); return; } if (b == 1){ ...
ALGO
0.999573
4.003328
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-01-14T01:16: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": "502adc742ee5...
37448f44-684d-4a9c-936d-b609c30e885a
chokobole/tachyon
tachyon/math/polynomials/univariate/naive_batch_fft.h
// Copyright (c) 2022 The Plonky3 Authors // Use of this source code is governed by a MIT/Apache-2.0 style license that // can be found in the LICENSE-MIT.plonky3 and the LICENCE-APACHE.plonky3 // file. #ifndef TACHYON_MATH_POLYNOMIALS_UNIVARIATE_NAIVE_BATCH_FFT_H_ #define TACHYON_MATH_POLYNOMIALS_UNIVARIATE_NAIVE_BAT...
ALGO
0.97722
7.248501
{ "github_metadata": { "branch": "main", "commit_count": 2977, "repo_created_at": "2023-07-27T07:34: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": "e2c81c268...
f15f9667-88fa-45da-aceb-20d3900c0b11
kassonlab/gmxapi
src/gromacs/linearalgebra/gmx_lapack/slatrd.cpp
#include <cctype> #include "../gmx_blas.h" #include "../gmx_lapack.h" #include "lapack_limits.h" void F77_FUNC(slatrd,SLATRD)(const char * uplo, int * n, int * nb, float * a, int * lda, float * e, float * tau, float * w, int * ldw) { int i,iw; i...
ALGO
0.999778
4.285577
{ "github_metadata": { "branch": "master", "commit_count": 19315, "repo_created_at": "2017-05-25T14:05:14.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 53, "forks": 13, "issues": 93, "pull_requests": 2 }, "file_meta": { "content_id": "1969...
9166dc48-eda8-466a-8009-77d55f0b8020
AasthaMehtaTech/DSA_Team12_Uplift_Project
Loops_Patterns_Print/InputOutput/Anmol Kaur/day 9/string_to_integer_atoi.cpp
//Implement atoi which converts a string to an integer. class Solution { public: int myAtoi(string str) { stringstream ss(str); int ans = 0; ss>>ans; return ans; } }; /*Example 1: Input: "42" Output: 42 Example 2: Input: " -42" Output: -42 Explanation: The first non-whitespa...
ALGO
0.998647
4.486885
{ "github_metadata": { "branch": "master", "commit_count": 1240, "repo_created_at": "2020-06-06T17:26:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 22, "forks": 16, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d553b...
a5357cf2-6fb3-42af-b409-7bc921a058bd
LorenFiorini/Competitive-Programming
codeForces/120/(1).cpp
#include <bits/stdc++.h> using namespace std; #define INF (int)1e9 #define MOD 1000000007 #define PI 3.1415926535897932384626433832795 // typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vint; typedef vector<ll> vll; typedef vector<string> vstr; typedef vector<pii> vpii; typedef vector<vint> vvi; t...
ALGO
0.999965
3.80787
{ "github_metadata": { "branch": "main", "commit_count": 123, "repo_created_at": "2021-08-02T14:07:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "19278da93f...
de19f3de-1447-4da3-9e5d-5c358053f414
sealddr/MyAtCoder
ABC13x/ABC130/d.cpp
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); ++i) #define all(x) (x).begin(), (x).end() #define dbg(x) cerr << #x << ": " << x << endl int main() { ll n, k; cin >> n >> k; vector<ll> a(n); rep(i,...
ALGO
0.999904
3.927768
{ "github_metadata": { "branch": "master", "commit_count": 109, "repo_created_at": "2020-02-09T00:56: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": "d6441c95...
d905865b-369d-467b-9760-56975329d806
farukshin/e-olymp
6000-6999/6130/6130.cpp
//https://www.e-olymp.com/ru/problems/6130 #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; bool is_power_of_2(ll n) { return (n != 0) && (n & (n - 1)) == 0; } void solve() { // cout.setf(std::ios::fixed); // cout.precision(2); deque<int> d; string s; ...
ALGO
0.99296
4.394515
{ "github_metadata": { "branch": "master", "commit_count": 293, "repo_created_at": "2020-05-09T06:07:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "54eee992...
66985550-6710-4c95-a9ea-4087d1a25acb
ishandutta2007/codeforces-n
nehnait/normal/1280/B.cpp
//Author:xht37 #include <bits/stdc++.h> #define ui unsigned int #define ll long long #define ul unsigned ll #define ld long double #define pi pair< int, int > #define fi first #define se second #define mp make_pair #define ls (p << 1) #define rs (ls | 1) #define md ((t[p].l + t[p].r) >> 1) #define pq priority_queue...
ALGO
0.999664
3.980848
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:35:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b48b3a2b34c0...
1c0ce673-6c2d-4d35-b41e-3e44f84194a9
shieldnet/BOJ_shieldnet
1708_monotone.cpp
#include <iostream> #include <utility> #include <vector> #include <algorithm> #include <cstdio> #define x first #define y second using namespace std; typedef long long ll; typedef pair<int,int> pii; pii operator-(pii a, pii b){ return {a.x-b.x, a.y-b.y}; } ll cross(pii a, pii b){ return b.y*1LL*a.x - b.x*1LL*a.y; }...
ALGO
0.999117
3.652451
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2017-10-08T13:01: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": "d5c38243a...
65fa2aec-916d-4e2e-824f-be4a11e9d2bf
nguyenhoang4875/CompetitiveProgramming
aglo_libs/graph/bellman-ford.cpp
#include <bits/stdc++.h> #define int long long #define pb push_back using namespace std; /** * Bellman-Ford Algorithm * The Bellman–Ford algorithm finds shortest paths from a starting node to all * nodes of the graph. The algorithm can process all kinds of graphs, provided * that the graph does not contain a cycle...
ALGO
0.999885
4.965653
{ "github_metadata": { "branch": "main", "commit_count": 328, "repo_created_at": "2023-02-28T01:38:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4e38424d75...
ff8758db-b989-4587-951c-cf4be4385d84
PealMazumder/Online-Judges
New folder/Problem 6/number.cpp
#include<bits/stdc++.h> #define sz(c) (int)c.size() using namespace std; bool check(char ch) { if (ch==' ' || ch=='\n' || ch=='\0' || ch=='+' || ch=='-' || ch=='*' || ch=='/' || ch=='=') return 1; if (ch=='>' || ch=='<' || ch==',' || ch==';' || ch=='|' || ch=='&' || ch=='!' || ch=='^' || c...
ALGO
0.997955
3.291091
{ "github_metadata": { "branch": "master", "commit_count": 230, "repo_created_at": "2020-03-30T06:53: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": "f7b7b02e...
6db5f3ea-b179-43de-a628-ae41b656ba32
iTrooz/AndroidPattern
attempt7/cpp/attempt7.cpp
#include <iostream> #include <vector> #include <cmath> #include <set> const int SIZE = 4; const int MIN_LEN = 4; const int MAX_LEN = 7; bool is_close_int(double n) { n = std::fmod(std::abs(n), 1); double eps = 0.0001; return n < eps || (1.0 - n) < eps; } int to_number_0(const std::pair<int, int>& p) { ...
ALGO
0.999648
4.9151
{ "github_metadata": { "branch": "main", "commit_count": 96, "repo_created_at": "2024-02-11T22:58:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ad3fea1909e...
711a9d7a-066f-47f7-a74b-e7a6acb48d8c
mekadalibrahem/ProblemSolving
codeforces/cpp/C/Flower_City_Fence/sol_01.cpp
/* C. Flower City Fence time limit per test 2 seconds memory limit per test 256 megabytes Anya lives in the Flower City. By order of the city mayor, she has to build a fence for herself. The fence consists of n planks, each with a height of ai meters. According to the order, the heights of the planks must not increas...
ALGO
0.999974
4.70558
{ "github_metadata": { "branch": "master", "commit_count": 79, "repo_created_at": "2022-04-22T18:14: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": "41d971e5e...
41be641b-839b-4a3d-9b49-80b04d4c983c
GE210111034/daa
algorithms/longestString.cpp
#include <bits/stdc++.h> using namespace std; typedef vector<int> ROW; typedef vector<ROW> COL; int longestCommonSubsequence(string str1, string str2, string& sequence) { int m = str1.length(); int n = str2.length(); COL dp(m + 1, ROW(n + 1, 0)); for (int i = 1; i <= m; i++) { for (int j = 1...
ALGO
0.999986
5.243326
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-05-22T07:32: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": "4aaa4391886d...
578fc23c-3130-4e6c-823e-5a658c4b87ba
jin09/code_ing-for-fun
data-structures/linked-list/delete_duplicates.cpp
//Eliminate duplicates from a sorted linked list #include<bits/stdc++.h> using namespace std; class node{ public: int data; node* next; node(int data){ this->data = data; next = NULL; } }; node* takeInputInsertAtTail(){ node* head=NULL; node* tail = NULL; int data ; ...
ALGO
0.999967
5.226852
{ "github_metadata": { "branch": "master", "commit_count": 194, "repo_created_at": "2016-06-15T03:11: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": "927dbda1...
e5bfaeb2-5766-470d-a2a4-d15ed40abb05
lunatic-7/Cp
Luv/course/Graphs and Trees/0-1bfs.cpp
// Question link: codechef.com/problems/REVERSE #include <bits/stdc++.h> using namespace std; #define ll long long #define PB push_back #define POB pop_back #define F first #define S second #define wasif() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); const int M = 1e9+7; const int N = 1e5+10; const int INF...
ALGO
0.999946
4.006755
{ "github_metadata": { "branch": "main", "commit_count": 199, "repo_created_at": "2022-07-19T16:03:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "98f6a7dc8f...
5f1c9a60-5d29-4ba1-b15d-fff6d6a98fa6
BhutdaNilesh/SdeSheetChallenge
Queue/implementQueue.cpp
class Queue { int *arr; int frontt; int rear; int size; int cnt; public: Queue() { // Implement the Constructor cnt=0; size = 100001; arr = new int[size]; frontt=0; rear=0; } /*----------------- Public Functions of Queue -----------------*...
ALGO
0.999463
5.061033
{ "github_metadata": { "branch": "main", "commit_count": 215, "repo_created_at": "2022-06-04T16:21:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6db04eb015...
5465ea35-f3ee-4d16-ad9b-a9c44eb600ea
harvey-wei/leetcode_interview
71_pick_index/demo.cc
#include <vector> #include <random> #include <iostream> using namespace std; class Solution { public: vector<long int> presum; long int total; Solution(vector<int>& w) { /* presum.reserve(w.size()); */ /* https://stackoverflow.com/questions/7397768/choice-between-vectorresize-and-vectorreserve */ presum...
ALGO
0.999687
5.049075
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2022-10-04T07:50: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": "ed8c14cf3e7...
18d39b5c-f59d-4908-a6f7-f6c755204673
parteek10/AlgosInCplusPlus
Sorting/BinarySearch.cpp
#include <iostream> #include <vector> using namespace std; //using bubble sort void sort(vector<int> &arr) { int flag = 0, i, j, n; n = arr.size(); for (i = 0; i < n - 1; i++) { flag = 0; for (j = 0; j < n - i; j++) { if (arr[j] > arr[j + 1]) { ...
ALGO
0.999986
5.212656
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-12-20T06:31:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8206732d6e...
cfe3beba-6cdd-4395-b16e-ce08ee4bf85f
netrasagarmal/SPPU-SE-DSA-OOP
3.MATRIX.cpp
#include<iostream> using namespace std; class matrix { private: int a1[3][3]; int b1[3][3]; int add1[3][3]; int sub[3][3]; int mul[3][3]; int trans1[3][3]; int trans2[3][3]; int i,j,k; public: void enter() { cout<<"\nEnter matrix 1\n"; for(i=0;i<3;i++) { for(j=0;j<3;j++) { cout<<end...
ALGO
0.998413
3.540586
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-02-28T16:29:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6ed9b5675d...
84639ff2-513b-492c-81d7-5243e293d71a
LeKSuS-04/Competitive-Programming
Codeforces/problems/bugged-system.cpp
/* <NAME> */ // Date: 2023-03-15 20:17:37 // Run time: 702 ms // Memory: 11948 KB // Verdict: AC #include <bits/stdc++.h> using namespace std; typedef long long ll; void solve() { int n, m; cin >> n >> m; vector<ll> x(n); for (auto&& xi : x) cin >> xi; vector<ll> indegree(n, 0), outdegree(n, 0);...
ALGO
0.999809
4.790152
{ "github_metadata": { "branch": "master", "commit_count": 91, "repo_created_at": "2021-10-13T17:29:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50e7c5e68...
bb27750b-be53-44f6-b9e7-0478bc8fc77a
Livinfly/AlgorithmPromble_Code
AtCoder/2023/abc286/a.cpp
#pragma GCC optimize(2) #include <bits/stdc++.h> #define fi first #define se second #define mkp(x, y) make_pair((x), (y)) #define all(x) (x).begin(), (x).end() using namespace std; typedef long long LL; typedef pair<int, int> PII; void solve() { int n, p, q, r, s; cin >> n >> p >> q >> r >> s; p --, q ...
ALGO
0.999841
3.27381
{ "github_metadata": { "branch": "main", "commit_count": 25, "repo_created_at": "2022-08-24T10:17:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "483be0a0f0e...
cbfdd625-b419-4438-877a-3d80284e6f59
k-ghiasi/Data-Structures-Course
programming-exercises/FiveWayPartition_Cpp/test/testTemplate.cpp
#include "../src/FiveWayPartition.h" #include <iostream> #include <time.h> #include "I.h" using namespace std; int main() { int n = 10; I pivot1, pivot2; int q1 = 0, q2 = 0, q3 = 0, q4 = 0; I *A; FiveWayPartition<I>* fwp = new FiveWayPartition<I>(); A = new I[n]; srand(time(NULL)); pivot1 = I(rand() % 8);...
ALGO
0.991528
4.025158
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2021-11-08T15:18: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": "ae78736d875...
f188dded-8821-421e-a51e-445afc6ed2b6
RahulScripted/Geeks-For-Geeks
Beginner's DSA Sheet/WaveArray.cpp
// Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array(In Place). In other words, arrange the elements into a sequence such that arr[1] >= arr[2] <= arr[3] >= arr[4] <= arr[5]..... If there are multiple solutions, find the lexicographically smallest one. #include<bits/stdc++.h> us...
ALGO
0.999998
5.550737
{ "github_metadata": { "branch": "main", "commit_count": 199, "repo_created_at": "2024-09-18T02:07:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bcf2d4a655...
ac7ea023-d5ff-47ae-be61-d5cd80f72098
mysql/mysql-server
extra/boost/boost_1_85_0/boost/geometry/strategies/closest_points/spherical.hpp
// Boost.Geometry // Copyright (c) 2021, Oracle and/or its affiliates. // Contributed and/or modified by <NAME>, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_STRATEGIES_CLOSEST_POINTS_SPHERICAL_HPP #define BOOST_GEOME...
ALGO
0.973798
7.481599
{ "github_metadata": { "branch": "trunk", "commit_count": 186679, "repo_created_at": "2014-09-26T09:31:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11540, "forks": 4072, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "...
d144e439-2058-4ee9-bd61-8ff4e1b86c0d
kazi-nayeem/Programming-Problems-Solutions
csacademy/round-82/E/E/main.cpp
// // main.cpp // E // // Created by <NAME> on 20/6/18. // Copyright © 2018 <NAME>. All rights reserved. // //#include <bits/stdc++.h> #include<cstdio> #include<cstring> #include<cctype> #include<cmath> #include<cstdlib> #include<iostream> #include<string> #include<algorithm> #include<vector> #include<stack> #in...
ALGO
0.999855
3.600465
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2020-07-13T19:00:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "44c0ea267...
d02bd622-1770-4acf-ab28-9e754ca92ff9
Satwik290896/COMS4160_CGI
5--meshes--textures--and-bvhs/olio/src/core/geometry/bvh_trimesh_face.h
// ====================================================================== // Olio: Simple renderer // Copyright (C) 2022 by <NAME> // // Author: <NAME>, 2022 // ====================================================================== //! \file trimesh.h //! \brief TriMesh class //! \author <NAME>, 2022 #...
TOOL
0.973523
7.136169
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-07-04T23:54:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "a77cf82b46b4...
a812d12e-09f8-4822-899b-0a06c053e5fb
absharul/pr-codes
fds/insertsort.cpp
#include <iostream> using namespace std; void display(int arr[], int size) { int i; for (i=0; i < size; i++) cout<< arr[i]<<"\t"; cout<<"\n"; } int main() { int array[] = {5, 3, 1, 9, 8, 2, 4,7}; int size = sizeof(array)/sizeof(array[0]); cout<<"Before Insertion sort: \n"; ...
ALGO
0.999982
4.965034
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2021-09-04T08:40:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "959002dcc...
0161fc09-44db-4866-9c59-aa8109a456f9
timmerov/technomancy
voting/src/fixed.cc
/* Copyright (C) 2012-2020 <NAME>. All rights reserved. */ /** reverse rank order voting. of the data sets... 1. minneapolis_ward_3 is interesting because the majority vote is split between two candidates: steve & tim... allowing minority candidate: ginger to win first past the post. 2. minneapolis_ward_4 same as 1...
ALGO
0.999934
4.89372
{ "github_metadata": { "branch": "master", "commit_count": 345, "repo_created_at": "2016-10-11T23:58:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5671d187...
9c84d448-d24e-4347-8304-21776eed747d
seyeon22222/Self_study
baekjoon_cpp/2473.cpp
#include <iostream> #include <algorithm> #include <vector> using namespace std; #define MAX 2147483647 long n; long arr[5002]; long comp = MAX; long res, res1, res2; void check(void) { for (long i = 1; i <= n - 2; ++i) { long start = i + 1; long end = n; while (start < end) { ...
ALGO
0.999987
4.098285
{ "github_metadata": { "branch": "main", "commit_count": 65, "repo_created_at": "2023-03-13T08:26: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": "140fea92afd...
66ca7d43-af1b-441b-b436-06855b5d0cf5
cow-coding/School-Project
Computer Science/Problem Solving/Week 02/Week2_A.cpp
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <queue> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int T; cin >> T; while (T--) { int N, M; vector<string> prof_list; ...
ALGO
0.999927
3.745827
{ "github_metadata": { "branch": "master", "commit_count": 108, "repo_created_at": "2020-03-17T05:32: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": "38b7541f...
78f2ec5d-200e-430f-ac36-9836d8fd1b47
OloieriAlexandru/University
Numerical Calculus/Homework 6/main.cpp
#include <iostream> #include <fstream> #include <iomanip> #include <graphics.h> #include "ExpressionParser.h" #include "InterpolationSolver.h" // https://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-g-mingw #include <sstream> namespace patch { template < typename T > std::string to...
ALGO
0.992998
4.736198
{ "github_metadata": { "branch": "master", "commit_count": 30, "repo_created_at": "2019-05-29T18:54:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 6 }, "file_meta": { "content_id": "e6d95ee4e...
b01ee029-1dc5-4237-a1ea-69088eed2cf6
Astro-shubh/Clustering
KD_tree.cpp
#include <vector> #include <iostream> #include <chrono> #include <bits/stdc++.h> #include <math.h> struct tree_node{ tree_node *left; tree_node *right; int data_index; }; using namespace std; struct tree_node* make_node(vector<int> data, vector<double> X_locations, vector<double> Y_locations, int depth){ struct...
ALGO
0.999965
4.526371
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-08-20T14:02:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "439a2704d001...
11fed1bc-43f9-48d3-8e0b-531ba5c0d9ce
Shikhar03Stark/Code-Dump
Leetcode/LIS.cpp
#include <bits/stdc++.h> using namespace std; int solve(vector<int>& arr, int n, vector<int>& memo){ if(memo[n] != -1){ return memo[n]; } int l_max = 0; for(int i = n-1; i>=0; i--){ int ans = solve(arr, i, memo); if(arr[i] < arr[n]){ if(l_max < ans){ ...
ALGO
0.999982
4.723765
{ "github_metadata": { "branch": "master", "commit_count": 73, "repo_created_at": "2022-01-08T13:20: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": "ecbbc025c...
e7c74692-b99d-4e1b-a948-ecbd513b1ae5
nageshwar-mehta/DSA-in-C-
cycle_detection_directed.cpp
#include <bits/stdc++.h> using namespace std; void addEdge(vector<vector<int>>& adj, int u, int v) { adj[u].push_back(v); } void printGraph(vector<vector<int>>& adj, int vertex) { for (int i = 0; i < vertex; i++) { cout << i; for (auto x : adj[i]) { cout << " -> " << x; } ...
ALGO
0.999868
5.355831
{ "github_metadata": { "branch": "first-file", "commit_count": 23, "repo_created_at": "2025-01-05T12:00:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7f6d1...
c8b43876-c55c-438a-ba55-8d90b102ec05
omkar-kashid/GFG_solutions
Easy/Find the element that appears once in sorted array/find-the-element-that-appears-once-in-sorted-array.cpp
//{ Driver Code Starts // Driver code #include<bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: int findOnce(int arr[], int n) { //code here. int i=1, j = n-2; if(arr[0]!=arr[1] || n==1) return arr[0]; if(arr[n-1]!=arr[n-2]) return arr[n-1]; ...
ALGO
0.999339
5.28349
{ "github_metadata": { "branch": "main", "commit_count": 415, "repo_created_at": "2023-03-26T11: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": "c58a482b18...
80d56925-c062-4239-8555-75d6127e4e68
FordTang/ICS53_PrinciplesSystemDesign
Project2/Project2/Source.cpp
//============================================================================ // Name : Source.cpp // Author : <NAME>, <NAME>, <NAME> // Version : // Copyright : Your copyright notice // Description : Second Project Lab //============================================================================ #...
ALGO
0.997406
4.104004
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2015-07-23T01:50:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fb51ae0cb3...
96c0e4cc-c3c5-40b6-8fc5-cd8edb359a4c
Camithilwen/Code-Cloning-Analysis
src/llm-scripts/testing/Project_CodeNet_experimentation_dataset/data/p03140/s061849044.cpp
#include <bits/stdc++.h> #define For(i, a, b) for(int (i)=(int)(a); (i)<(int)(b); ++(i)) #define rFor(i, a, b) for(int (i)=(int)(a)-1; (i)>=(int)(b); --(i)) #define rep(i, n) For((i), 0, (n)) #define rrep(i, n) rFor((i), (n), 0) #define fi first #define se second using namespace std; typedef long long lint; typedef uns...
ALGO
0.999703
4.116397
{ "github_metadata": { "branch": "main", "commit_count": 243, "repo_created_at": "2025-06-06T16:57:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "551dd08ed3...
1430ba62-d09b-4cd8-b830-0250c50a46a2
zzingongLog/study_algorithms
2667.cpp
#include <iostream> #include <queue> #include <algorithm> #include <cstdio> using namespace std; int dx[] = {0, 0, -1, 1}; int dy[] = {-1, 1, 0, 0}; int a[25][25]; int d[25][25]; int ans[25*25]; int n; void bfs (int x, int y, int cnt) { queue<pair<int, int>> q; q.push(make_pair(x, y)); d[x][y] = cnt; w...
ALGO
0.999957
3.505044
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2022-02-04T11:52:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8f72a24c8...
43a5c338-5479-4927-a956-aaacae0ff184
JiHyeongLee0207/Solo_Baekjoon
10866.cpp
#include<iostream> #include<deque> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); deque<int> d; int n; cin >> n; while (n--) { string tmp; cin >> tmp; if (tmp == "push_front") { int x; cin >> x; d.push_front(x);...
ALGO
0.998446
4.42497
{ "github_metadata": { "branch": "main", "commit_count": 108, "repo_created_at": "2022-10-07T08:43: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": "25cdb0faea...
4c67fb12-fa42-44e2-bb13-934f27abe6e9
king-yyf/cpcode
atcoder/abc238/g.cpp
/** * Created by 5cm/s on 2023/08/28 15:43:03. * 诸天神佛,佑我上分! **/ #include <bits/stdc++.h> using namespace std; #define itr(it) begin(it), end(it) typedef long long ll; typedef long double ld; typedef pair<int, int> PII; #define endl '\n' #define YES() void(cout << "Yes\n") #define NO() void(cout << "No\n") templat...
ALGO
0.999686
4.922421
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-11-26T03:35: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": "23b656b98328...
d5b24c97-bc27-4517-993b-bd86a07284e3
nodakai/exp
cell/yst0.cpp
#include <stdio.h> #include <string.h> #include <spu_intrinsics.h> #define DECL(N) vec_float4 o_ ## N ; #define LOAD_EXP(N) o_ ## N = spu_madd(spu_splats(2.f), spu_mul(in[ N ], in[ N ]), spu_splats(1.f)) #define STORE(N) out[ N ] = o_ ## N ; #define UNROLL(X) \ X(0); X(1); X(2); X(3); \ X(4); X(5); X...
ALGO
0.992466
3.686873
{ "github_metadata": { "branch": "master", "commit_count": 240, "repo_created_at": "2009-06-03T00:22:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "71e81ee9...
5cbd9506-134b-4343-a372-e7ada7d27e6e
Gahyki/TicTacToe
IntroTask/IntroTask/IntroTask/Source.cpp
#include "Source.h" #include <iostream> using namespace std; Board::Board(): board({"1", "2", "3", "4", "5", "6", "7", "8", "9"}){ } void Board::addo(int o){ this->board[o - 1] = "O"; } void Board::addx(int x) { this->board[x - 1] = "X"; } string Board::check() { int counter = 0; for (int i = 0; i < this->board...
ALGO
0.966348
4.217305
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-02-07T03:43:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "74f89d44e84e...
f614cda2-c4ec-4a05-ad0a-182374f819a4
1750252467/CppLearning
LeetCode/Day22/701.二叉搜索树中的插入操作.cpp
/* * @lc app=leetcode.cn id=701 lang=cpp * @lcpr version=21901 * * [701] 二叉搜索树中的插入操作 */ using namespace std; #include <algorithm> #include <array> #include <bitset> #include <climits> #include <deque> #include <functional> #include <iostream> #include <list> #include <queue> #include <stack> #include <tuple> #incl...
ALGO
0.999994
6.653917
{ "github_metadata": { "branch": "main", "commit_count": 65, "repo_created_at": "2023-03-13T09:10:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "3d750fc1a0d...
2f95d632-b9de-43d5-9cce-d780ccdc1538
Phisten/playground
leetcode/402.remove-k-digits.cpp
/* * @lc app=leetcode id=402 lang=cpp * * [402] Remove K Digits */ // @lc code=start class Solution { public: string removeKdigits(string num, int k) { int n = num.length(); if (k == n) return "0"; string ans; ans.push_back(num[0]); int need = n - k - 1...
ALGO
0.999985
6.544324
{ "github_metadata": { "branch": "main", "commit_count": 574, "repo_created_at": "2022-11-30T05:03: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": "8418ee93a2...
a2789f89-c04c-49ab-b0df-d45a831b6dc0
DaniilSinitsyn/distortion_averaging
src/optimization/include/optimization/Fundamental10Helper.hpp
/****************************************************************************** * Distortion Averaging * * 2024 <NAME> *******************************************************************************/ #ifndef FUNDAMENTAL10HELPER_HPP #define FUNDAMENTAL10HELPER_HPP #include <Eigen/Eigen> #include <cmath> #include "...
ALGO
0.940491
6.294611
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-10-16T14:34:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ff6c27822c0...
547b8109-e9df-4c5a-aee0-4d256eb98ce9
Sourabh-Semalty/DataStructure
basic_cpp_concepts/template_cpp.cpp
#include <iostream> using namespace std; // The use of the template is if we need to provide the value in float , int , other primitive data type so, we don't need to create other function of if else // ! Note it will help you do better and clean programming template <class T> class Airthmetic { private: T a; // ...
TOOL
0.91284
4.459861
{ "github_metadata": { "branch": "main", "commit_count": 59, "repo_created_at": "2021-12-09T14:52: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": "d8048107fa0...
addc7459-6f13-4bdb-841a-633def9435cd
ebuchholz17/advent-of-code-2020
6/main.cpp
#include "advent.h" struct person_answers { bool answers[26]; }; struct group_answers { person_answers personAnswers[10]; int numPeopleInGroup; }; #define LIST_TYPE group_answers #include "list.h" int main (int argc, char **argv) { memory_arena memory = {}; memory.capacity = 1 * 1024 * 1024; ...
ALGO
0.998346
3.909027
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2020-12-08T17:18:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "85ce77bdba...
89da0e9c-4113-47bb-b79d-b0e2908e7473
icaven/gaalet
include/cpp0x/pga3_exponential.h
#ifndef __GAALET_PGA3_EXPONENTIAL_H #define __GAALET_PGA3_EXPONENTIAL_H #pragma once #include <cmath> #include <utility> #include "geometric_product.h" #include "grade_check.h" #include "grade.h" #include "pga3.h" #include "pga3_utility.h" // // Specialized version of the exponential function for the PGA algebra; ...
ALGO
0.94028
6.324223
{ "github_metadata": { "branch": "develop", "commit_count": 195, "repo_created_at": "2023-12-13T16:30:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fa21b02...
12fd9126-5e33-43fd-9a67-db3d71148463
putnampp/clotho
src/clotho/utility/popcount_constants.cpp
// Copyright 2015 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
CONFIG
0.90823
3.874772
{ "github_metadata": { "branch": "master", "commit_count": 986, "repo_created_at": "2014-09-17T14:54:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "df6e681c...
7e7cffe5-6f61-445f-a165-48f527f89a6f
karlchina2008/LeetCode
567. Permutation in String.cpp
/* Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutations is the substring of the second string. Example 1: Input:s1 = "ab" s2 = "eidbaooo" Output:True Explanation: s2 contains one permutation of s1 ("ba"). Example 2: In...
ALGO
0.999969
6.136209
{ "github_metadata": { "branch": "master", "commit_count": 148, "repo_created_at": "2016-09-04T17:40:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8fcfe6a6...
b5b86e03-aa98-40b5-85a3-924fee7bb287
anmolnehru/MGLM
src/armadillo_static/legr_core.cpp
//============================================================================ // Name : legr_core.cpp // Author : <NAME> // : <NAME> // Version : 0.1 // Date : 07.16.2014 // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //=============================...
TOOL
0.9322
3.646615
{ "github_metadata": { "branch": "main", "commit_count": 63, "repo_created_at": "2025-03-06T03:05: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": "0441c1af2e3...
f49658d4-c2bf-4b4a-b664-980cc67c96a9
BenjaminHalko/Twilight-Tempo-CPP
src/star_generator.cpp
#include "star_generator.h" #include "global.h" #include "helper.h" #include <cmath> std::vector<std::shared_ptr<Star>> StarGenerator::backStars; std::vector<std::shared_ptr<Star>> StarGenerator::frontStars; void StarGenerator::init() { for (int i = 0; i < 120; i++) { std::shared_ptr<Star> s = std::make_shared<Sta...
TOOL
0.91725
4.763995
{ "github_metadata": { "branch": "main", "commit_count": 62, "repo_created_at": "2024-03-07T06:06: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": "d745810a266...
c306fd23-e706-4a0d-abac-faec0d999cb2
tdas0/lib
contests/sbc/subregional/2020/l.cpp
#include <bits/stdc++.h> using namespace std; #define F first #define S second #define rep(i, a, b) for(int i = a; i < (b); ++i) #define per(i, a, b) for(int i = b-1; i>=a ; i--) #define trav(a, x) for(auto& a : x) #define allin(a , x) for(auto a : x) #define all(x) begin(x), end(x) #define sz(x) (int)(x).size() typede...
ALGO
0.999891
3.54856
{ "github_metadata": { "branch": "master", "commit_count": 744, "repo_created_at": "2020-01-11T14:55:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 24, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ad2a2a0...
904e9ef8-b6ca-49aa-92e9-408ce1af9fe9
zqrtalent/Algorithms
HackerrankProblem/FindTheRunningMedian.cpp
#include <iostream> #include <vector> #include <cstdio> #include <string> #include <string.h> #include <map> #include <unordered_map> using namespace std; #include "global.h" void FindTheRunnigMedian(istream& input, istream& exactOutput) { int n; input >> n; vector<int> a(n); for(int a_i = 0;a_i < n;a_...
ALGO
0.999728
3.595771
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-11-22T22:26:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d42126e7d8...
60ce2027-dd71-456c-8b9b-d4baaff455e0
SimulationEverywhere/CDPP_ExtendedStates-codename-Santi
src/cd++/misc/math/realfunc.cpp
/******************************************************************* * * DESCRIPTION: Real Functions * * AUTHOR: <NAME> * * EMAIL: mailto://<EMAIL> * * DATE: 2/3/1999 (v2) * *******************************************************************/ /** include files **/ #include <cstdlib> #include "realfunc.h" #include...
ALGO
0.995637
4.595565
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2018-09-26T18:29:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4, "forks": 6, "issues": 3, "pull_requests": 3 }, "file_meta": { "content_id": "f0ce2bf1fc...
f2de3788-ee6b-4405-8948-9f354e9ec971
dodo5575/scripts
JeffComerScripts/BrownTown.H
/////////////////////////////////////////////////////////////////////// // Brownian dynamics base class // Author: <NAME> <<EMAIL>> #ifndef BROWNTOWN_H #define BROWNTOWN_H #include "Grid.H" class BrownTown { public: BrownTown(double kT0, double dt0, const Grid& g) : kT(kT0), dt(dt0), reflectX(1), reflectY(1), refl...
ALGO
0.99643
6.628371
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2016-01-29T02:26: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": "ab8655fe9...
3ae70e1e-79f6-4b59-b48b-abc80a98d51a
blender/blender
extern/gflags/src/gflags/gflags.h
// Copyright (c) 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditi...
TOOL
0.975856
7.183635
{ "github_metadata": { "branch": "main", "commit_count": 152123, "repo_created_at": "2019-10-09T12:47:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 15670, "forks": 2395, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f...
1135f16a-aaae-4e9a-a557-b6a75b320c1c
nucleargezi/BJTU-OS-Lab
lab3/sol/sol3/test3.cpp
// Code by MeIoN ( without The Photo of MeIoN #ifdef MeIoN #include "../../../MeIoN_Lib/Z_H/MeIoN_debug.hpp" #include "../../../MeIoN_Lib/Z_H/MeIoN_sth_for_os.hpp" #else #include <bits/stdc++.h> #include <pthread.h> #include <sys/shm.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h> #include <sys/wa...
TOOL
0.997861
5.005999
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2024-11-20T16:28:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6130809df...
34121285-e8b1-4a36-9e9a-816d6d676dc3
Leah-Grace/NYUWinter23
CourseWork/wk09/ld2814_hw9_q2.cpp
#include <iostream> #include <string> using namespace std; const int COUNT_LETTERS = 26; void compareAnagrams(bool &isAnagram, string str1, string str2); void charCount(bool &isAnagram, string str1, string str2); void populateArray(string string, int * arr); //must pass array by reference. int main(){ bool is...
ALGO
0.999651
4.866598
{ "github_metadata": { "branch": "master", "commit_count": 55, "repo_created_at": "2023-01-27T06:49:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec9adef66...
863e62d9-1f8a-48e6-9872-3ae7fc182fc6
Shivsharma779/Leetcode_solutions
202. Happy Number/piyush_solution.cpp
class Solution { public: int sq_sum_digit(int n) { int dig,sum=0; while(n) { dig = n%10; sum += (dig*dig); n/=10; } return sum; } ////////////////////////////////////////////////////////////////////////// //https://leetcode....
ALGO
0.999987
5.426191
{ "github_metadata": { "branch": "master", "commit_count": 364, "repo_created_at": "2021-06-16T10:44:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6a330859...
b73ec123-a69d-4135-9ddb-48ac6fb14796
Mayuri13/Graph_Problems
1976-number-of-ways-to-arrive-at-destination/1976-number-of-ways-to-arrive-at-destination.cpp
class Solution { public: int mod = 1e9+7; int countPaths(int n, vector<vector<int>>& roads) { vector<pair<long long,long long>>adj[n]; //forming the adjacency matrix for(auto it: roads) { adj[it[0]].push_back({it[1],it[2]}); adj[it[1]].push_back({it[0],it[...
ALGO
0.999977
5.339761
{ "github_metadata": { "branch": "main", "commit_count": 60, "repo_created_at": "2023-06-24T12:28: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": "22c4bb8c65b...
d01f0870-bb49-4588-bd06-9770a53fd591
NCAR/lrose-core
codebase/libs/radar/src/include/radar/BeamHeight.hh
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR (c) 1990 - 2016 // ** University Corporation for Atmospheric Research (UCAR) // ** National Center for Atmospheric Research (NCAR) // ** Bo...
TOOL
0.992247
6.851026
{ "github_metadata": { "branch": "master", "commit_count": 7406, "repo_created_at": "2016-02-09T23:36:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 99, "forks": 51, "issues": 16, "pull_requests": 3 }, "file_meta": { "content_id": "d7a75...
c59b0c2a-af42-4313-b826-eafe11206d8e
vedisoftcpp/UrlEjector
main.cpp
#include <stdio.h> #include <iostream> #include <map> #include <vector> #include <string> #include <algorithm> #pragma comment(lib, "Ws2_32.lib") #define HAVE_REMOTE 1 #include <pcap.h> /* 4 bytes IP address */ typedef struct ip_address{ u_char byte1; u_char byte2; u_char byte3; u_char byte4; }ip_addr...
TOOL
0.920045
3.130005
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2014-12-12T12:58: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": "789f726e28...
d04275b3-2630-49cf-9dae-a1129b405eef
duanyzhi/cudac
matmul/main.cc
#include "fun.h" #include <iostream> #include <vector> #include <cstdlib> #include <string> #include <chrono> using namespace std::chrono; void printMatrix(std::string info, int row, int col, float* ele) { std::cout << info << " Matrix (row, col) " << row << ", " << col << "\n"; for (int r = 0; r < row; ++r) { ...
ALGO
0.995449
5.25395
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2023-10-24T01:29: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": "628de7d34...
5363fe4d-8ed0-4e81-8246-b86b47b79d8a
TraiNguyenVan/cpp-2.0
testbro/DP/fairldp.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long const int MOD = 123456789; void generateSubsetSums(const vector<ll>& arr, vector<ll>& subsetSums, ll sumLimit) { int n = arr.size(); for (int i = 0; i < (1 << n); ++i) { ll sum = 0; for (int j = 0; j < n; ++j) { if (...
ALGO
0.999885
5.336523
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-04-27T13:28: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": "74f32ffab8d8...
e6f890d5-dd48-4a37-81e8-d38f78b8202c
jooa7878/Algorithm
BOJ/단계별로 풀어보기/최소 신장 트리/1774 우주신과의 교감.cpp
#include <iostream> #include <cstring> #include <string> #include <queue> #include <vector> #include <algorithm> #include <cmath> using namespace std; #define endl '\n' #define ll long long int N, M, from, to; vector<pair<int, int>> vec; vector<pair<double, pair<int,int>>> dist;; double answer; int parents[1001]; ...
ALGO
0.999951
4.297518
{ "github_metadata": { "branch": "main", "commit_count": 498, "repo_created_at": "2021-03-08T09:03:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8d5ffdfcf7...
5da0ea8e-93df-4fcf-8cae-37f11bf807dc
nikkov/wavgen
window.cpp
#include <wx/wx.h> #include <wx/defs.h> #include <math.h> #include "fft_wrapper.h" #ifndef M_PI #define M_PI 3.1415926535897932384626433832795 #endif float I0Bessel (const float x) { float ax, y; if (( ax = fabs( x)) < 3.75f) { y = x / 3.75f; y *= y; return ((float)(1.0f + y * ( 3.5156229 ...
ALGO
0.925711
4.997854
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2017-12-12T06:04:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "24b9144409...
482f7952-47d1-4e02-8e53-13a5b247bab3
shanvach/FLASH_Pool_Boiling
source/Grid/GridMain/paramesh/paramesh4/Paramesh4dev/PM4_package/bittree/bittree_core.cxx
#include "bittree_bitarray.hxx" #include "bittree_mortontree.hxx" #include "bittree_ref.hxx" #include "mpi.h" using namespace BitTree; typedef unsigned W; namespace { // private globals struct TheTree_ { virtual unsigned block_count() = 0; virtual void morton(int *lev, int *ijk, int *mort) = 0; virtua...
ALGO
0.996514
5.409842
{ "github_metadata": { "branch": "main", "commit_count": 1155, "repo_created_at": "2024-09-16T04:09:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c90dfc510...
a17843ee-30d6-4e26-8acc-cfbec94d84ab
RiteshRajMoond/Leetcode
25-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* reverseKGro...
ALGO
0.99999
6.241999
{ "github_metadata": { "branch": "main", "commit_count": 1112, "repo_created_at": "2024-09-04T12:26: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": "dd931f82f...
7783a08d-a4a6-4798-93aa-8e9e50189a9f
navom7/DS-Algo
C++/UdemyGraph/FloodFill/BiggestIsland.cpp
/* Coloring of island */ #include<iostream> #include<vector> using namespace std; int dx[] = {0,0,1,-1}; int dy[] = {-1,1,0,0}; int R; int C; int colourCount[100] = {0}; void floodFill(vector<vector<int>>& area, int x, int y, vector<vector<bool>>& visited, int colour) { area[x][y] = colour; colourCount[c...
ALGO
0.999819
4.302703
{ "github_metadata": { "branch": "main", "commit_count": 254, "repo_created_at": "2021-07-28T09:31: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": "ade5892395...
a5b689dd-7e9c-4f7b-9acb-5268941ccbe7
hanchang97/Algorithm-PS
백준/구현/10757.cpp
#include <stdio.h> #include <iostream> #include <vector> #include <string> using namespace std; vector<int> firstV; vector<int> secondV; string firstStr; string secondStr; int main() { cin >> firstStr; cin >> secondStr; /*cout << firstStr << "\n"; cout << secondStr;*/ // 입력한 두 문자열 길이 int firstStrlen = firs...
ALGO
0.999992
3.866397
{ "github_metadata": { "branch": "main", "commit_count": 222, "repo_created_at": "2021-08-19T12:27:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c699bb4f77...
277e1bf3-1c67-4327-b2fd-9df9918a4c22
brstu/MMIPU-2022
trunk/as005908/task_01/src/Source.cpp
#include<iostream> #include<cmath> using namespace std; void one(double y, double u) { const double a = 1, b = 1; for (int i = 0; i < 10; i++) { cout << y << endl; y = a * y + b * u; } cout << y; } void two(double y0, double u0) { const double a = 1, b = 0.0001,c=1,d=0.01; double y1; cout << y0 << endl; co...
ALGO
0.997069
3.541879
{ "github_metadata": { "branch": "main", "commit_count": 126, "repo_created_at": "2022-09-06T05:35:30.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 37, "issues": 0, "pull_requests": 51 }, "file_meta": { "content_id": "39c5ece99...
ab2f4f1f-c70f-41a4-89fc-69ad8c8e2930
Reayz/programming-and-data-structure
Programming and Data Structure/0Rajib vai/Geometry/Point_in_Polygon(1).cpp
#include<bits/stdc++.h> using namespace std; #define EPS 1e-12 const int N = 100005; typedef long long ll; struct pt { double x,y; }; pt orig; pt point[N]; int InsidePolygon(int n){ int counter = 0; double xinters; pt p1,p2; for(int i=0;i<n;i++){ p1 = point[i]; p2 = point[i+1];...
ALGO
0.99977
4.533276
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2018-07-01T09:57:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8549a5cd46...
b021ebae-fdaa-4227-9506-c8babcf1eb8a
JakubBurczyk/TrafficAnalyzer
src/app/include/kalmanEstimator.hpp
#pragma once #include <opencv2/opencv.hpp> #include <opencv2/video/tracking.hpp> #include "iou.hpp" namespace Traffic{ struct Measurement{ float x = -1; float y = -1; float v_x = 0; float v_y = 0; float velocity(){ return std::sqrt(v_x * v_x + v_y * v_y); } }; struct KalmanOptions{...
ALGO
0.966693
6.789768
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2023-07-11T20:38:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "10642785554...
4e06a3fb-3044-4f9c-8c75-52d95e97c0c7
equaringer/Leetcode
Easy/Word Pattern.cpp
class Solution { public: bool wordPattern(string pattern, string str) { vector<string> temp, v; v.assign(26, ""); int i = 0; while(i < str.size()) { string s = ""; while(str[i] != ' ' && i < str.size()) { s += str[i]; i++; ...
ALGO
0.999729
6.038933
{ "github_metadata": { "branch": "master", "commit_count": 85, "repo_created_at": "2015-12-24T20:59:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3516ceba2...
66e9eceb-9655-41b6-9565-c2f0c3e9299c
marioyc/Online-Judge-Solutions
TJU/1078 - Alien Security.cpp
#include <cstdio> #include <vector> #include <queue> #include <cstring> using namespace std; vector< vector<int> > G; int V,ET; bool *p; bool canReachWithout(int x){ if(x==0) return false; memset(p,false,sizeof(bool)*V); queue<int> Q; Q.push(0); int aux; *p = true; while(!Q...
ALGO
0.999975
4.119411
{ "github_metadata": { "branch": "master", "commit_count": 364, "repo_created_at": "2010-09-24T16:07:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 603, "forks": 359, "issues": 1, "pull_requests": 9 }, "file_meta": { "content_id": "997f...
63379189-15a5-4a73-97c4-aded9f712e06
bmzhong/dev
algorithm_lab/1/2.cpp
#include <iostream> using namespace std; class priority_queue { private: int cnt = 0; int a[1000]; public: int maxinum(); bool empty(); void down(int k); void up(int k); int extract_max(); void increase_key(int k, int new_value); void insert(int value); }; bool priority_queue::empty() { return cnt == 0; } in...
ALGO
0.99998
3.532439
{ "github_metadata": { "branch": "master", "commit_count": 279, "repo_created_at": "2019-10-20T02:34:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2beb069e...
80357077-defc-4ad3-8d6e-bc307914da4c
matthewd915/1024game
Board.cpp
/* Author: <NAME> Course: CSCI-135 Instructor: <NAME> Assignment: Project 3 Task A */ #include "Board.hpp" #include <iostream> #include <iomanip> #include <vector> using namespace std; Board::Board() : Board(3, 3) {} Board::Board(int m) : Board(m, m) {} Board::Board(int m, int n) { max = 0; target = 1024...
ALGO
0.976555
3.772863
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-06-21T19:47: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": "1472f2ef4b30...
37f5118e-4e17-49f2-916a-21c8fa20679c
tensorflow/tensorflow
third_party/xla/xla/service/hlo_phi_graph.h
/* Copyright 2020 The OpenXLA Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
TOOL
0.919906
7.552771
{ "github_metadata": { "branch": "master", "commit_count": 182413, "repo_created_at": "2015-11-07T01:19:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 190773, "forks": 74758, "issues": 873, "pull_requests": 553 }, "file_meta": { "content...
e74fbc72-bbe8-4023-814d-cb81db3939e2
nader-grt/Problemsolvingwithcpp
level07/index09.cpp
#include <iostream> #include <cmath> #include <string> #include <limits> #include <cstdlib> #include <ctime> #include <iomanip> #include <vector> #include <fstream> #include <filesystem> #include "../../coursecpp/level05/LibraryOrPackage/MyLib.h" using namespace std ; short IsleapYear(short Year) { ...
TOOL
0.994426
3.879876
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2025-03-22T20:58:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "693fee57801...
384944c9-d401-41a2-9da5-773ad55a202e
Nag28endra/LeetCodeSolutions
76-minimum-window-substring/minimum-window-substring.cpp
class Solution { public: string minWindow(string s, string t) { int l=0,r=0; int minLen = INT_MAX; int count=0, startIdx = -1; int sSize = s.size(), tSize = t.size(); unordered_map<char,int> mpp; // pre insert t characters into the hash map for(int i =0; i<tSi...
ALGO
0.999965
6.766596
{ "github_metadata": { "branch": "main", "commit_count": 312, "repo_created_at": "2024-06-04T09:18:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4d18bd55d4...
aa74fb6f-89ac-4fcf-887d-f2197bce0c82
2Gily/Algorithm-Self-Learned
Baekjoon/삼성 SW 역량 테스트 기출 문제/21608-상어 초등학교.cpp
// Date : 2021-09-14 // BOJ : 21608 // Title : 상어 초등학교 // Genre : 빡구현 #include <vector> #include <iostream> #include <string> #include <algorithm> #include <queue> #define endl "\n" #define MAX 21 using namespace std; typedef struct INFO { int y = 0; int x = 0; int like_cnt = 0; int blank_cnt = 0; }INFO; struc...
ALGO
0.999362
4.248478
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2021-07-29T15:42:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eea323c35...
2b9ed1da-560e-4d44-9f40-1125adec0916
Huste6/Thuat_toan_ung_dung
buoi_1/tim_duong_di_ngan_nhat_thoat_khoi_me_cung.cpp
#include<bits/stdc++.h> using namespace std; int dx[] = {-1, 0, 0, 1}; int dy[] = {0, -1, 1, 0}; int a[1000][1000]; int n, m, r, c; int d[1000][1000]; bool ok = false; void bfs(int i, int j) { queue<pair<int,int>> q; q.push({i, j}); a[i][j] = 1; d[i][j] = 0; while (!q.empty()) { pair<int,...
ALGO
0.999732
3.823481
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2024-03-14T14:59: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": "76ecc8fc6...
b32fe4ca-417d-4c70-9a94-dac1d7cf77cf
iamsourav37/C_plus_plus_program_practice
intemediate/question_7.cpp
// C++ Program to Find HCF of two numbers // HCF :- Heighest Common Factor // 20 , 30 hcf is 10 // Factors of 20 : 1 2 4 5 10 20 // Factors of 30 : 1 2 3 5 6 10 15 30 // Common factors are : 1 , 2, 5, 10 // HCF is 10 // 5 ,6 // 1 5 // 1 2 3 6 // 20 , 15 // Factors of 20 : 1 2 4 5 10 20 // Factors of 15 : 1 ...
ALGO
0.997034
4.694634
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2020-12-20T03:38:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2270461a663...
f957d4ef-f2a9-4f9f-bd1c-942c1c065fac
Shubhanshuarya/CipherSchools_Assignment
Assignment 6/Inorder_Sucessor_in_List.cpp
#include<iostream> using namespace std; class Node { public: int data; Node* left; Node* right; Node* parent; }; Node* minValue(Node* node){ Node* current = node; while (current->left != NULL) { current = current->left; } return current; } Node* inOrderS...
ALGO
0.999983
3.413154
{ "github_metadata": { "branch": "main", "commit_count": 91, "repo_created_at": "2021-02-13T11:19: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": "d59e0d5c166...
d7c4f549-3835-4a55-8e09-be79acd9c86d
BekzhanKassenov/olymp
codeforces.com/Contests/329 div 2/A/A.cpp
/**************************************** ** Solution by <NAME> ** ****************************************/ #include <bits/stdc++.h> using namespace std; #define F first #define S second #define MP make_pair #define all(x) (x).begin(), (x).end() typedef long long ll; typedef unsigned long long ull; typedef ...
ALGO
0.99995
3.490705
{ "github_metadata": { "branch": "master", "commit_count": 426, "repo_created_at": "2015-07-29T15:25:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b8783707...
0008b6b0-59d2-4df8-ad85-8585fe886923
equals-zero/codeDump
krypt_prod_win.cpp
#include <iostream> #include <string> using namespace std; bool CharCheck (string Eingabe) { // Prueft eingabe auf unerwuenschte Zeichen for (int i = 0; i < Eingabe.length(); ++i) { if((int)Eingabe[i]>122 || (int)Eingabe[i]<97) { return false; } } return true; } string Verschluesseln (string Passwd, st...
ALGO
0.999278
4.636735
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2017-02-08T13:24:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "330a543009...
b0e9d90c-94df-435a-8f36-22029e4ec14d
AmanSingh1201/Striver-s-SDE-Sheet
ARRAY-2/Repeating and Missing No.cpp
#include <bits/stdc++.h> using ll = long long int ; pair<int,int> missingAndRepeating(vector<int> &arr, int n) { ll N = n ; ll totalSum = (N * (N + 1) ) / 2 ; ll currSum = 0 ; ll totalSqSum = (N * (N + 1) * (2 * N + 1) ) / 6 ; ll currSqSum = 0 ; for(int i = 0 ; i < n ; i++) { ll val = arr[i] ; currSum +=...
ALGO
0.999338
4.430594
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-08-03T11:40:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c4a9aedf0b90...