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
c78a7848-c9bb-4c93-9b9a-a0ab35200dde
kh0ii/cp-files
codeforces/1669/F.cpp
/** * author: kh0i * created: 21.04.2022 21:59:12 **/ #include "bits/stdc++.h" using namespace std; #ifdef LOCAL #include "debug.h" #else #define debug(...) #endif using ll = long long; void solve(){ int n; cin >> n; vector<ll> a(n + 3, 0), p(n + 3, 0); for(int i = 1; i <= n; ++i){ cin >> a...
ALGO
0.999539
4.407191
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2022-01-27T06:37:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "971975ca7...
9f7dcbc5-5332-4cd4-adc8-5c30c2ab347f
PollockCR/School
CS302-Data-Structures/PA09-L11/PriorityQueue.cpp
/** * @file PriorityQueue.cpp * @author CatherinePollock * @date 11/5/14 * * This is the implementation file for the PriorityQueue.h file. */ #include <stdexcept> #include <iostream> #include "PriorityQueue.h" using namespace std; //-------------------------------------------------------------------- /** * ...
ALGO
0.970811
5.868477
{ "github_metadata": { "branch": "master", "commit_count": 71, "repo_created_at": "2014-11-27T02:37: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": "f86a6d130...
efafc1f8-0383-46ac-86a7-66e80b5662b1
a8hi-patil/Data-Structures-and-Algorithms-with-CPP
19 Linked List/003 Palindromic Linked List.cpp
#include <iostream> #include <cstdlib> using namespace std; class Node { public: int data; Node *next; Node(int value) { this->data = value; this->next = NULL; } }; Node *insertAtHead(int value, Node *head, Node *tail) { if (head == NULL && tail == NULL) { Node *newN...
ALGO
0.999925
5.522517
{ "github_metadata": { "branch": "main", "commit_count": 43, "repo_created_at": "2024-07-01T07:15: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": "6639bab8fc2...
52e3d7a5-9809-4657-adb1-734656a295e9
DreamOfFootPrints/interview-algorithm
Sort2/radixSort.h
#include<iostream> using namespace std; int GetMaxRadix(int* A, int n) { int radix = 1; int max = 10; for (int i = 0; i < n; i++) { while (A[i] >= max) { radix++; max *= 10; } } return radix; } int* radixSort(int* A, int n) { if (A == NULL || n == 0) return A; int maxRadix = GetMaxRadix(A, n); i...
ALGO
0.999919
4.054347
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2016-08-11T07:14: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": "7f762dee3...
831a42a8-423b-42f4-92a5-177618140c39
BiseraNaumovska/CPP-Projects
p04_03/main.cpp
#include <iostream> using namespace std; #include "create.h" void create(void); //prototip CreateAndDestroy first( 1 ); // globalen objekt int main() { cout << " (globalniot e kreiran pred main)" << endl; CreateAndDestroy second( 2 ); // lokalen objekt cout << " (lokalen avtomatski vo main)"...
TOOL
0.912365
3.51611
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2024-10-28T10:44: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": "02fd15211ee...
cf96934b-2d65-425f-8cb4-d2557353c00e
git-kush/DSA-CP-Algo
linked list/dll.cpp
#include <bits/stdc++.h> using namespace std; class Node{ public: int data; Node* next; Node* back; public: Node( int data1, Node* next1=nullptr, Node* back1=nullptr){ data = data1; next = next1; back = back1; } }; Node* reverseDLL(Node* head) { Node* temp = head; ...
ALGO
0.999897
5.270175
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2024-03-03T20:38: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": "14f17276e32...
54cd1828-4abb-4314-abca-db3add40685d
neerajsandal/Data-Structures-of-Cpp
Linked List/3. Circular/2.INSERTION OF ALL TYPES.cpp
#include<iostream> using namespace std; struct node{ int data; struct node *next; }; node *head=NULL; void create() { int num; cout<<"Enter the size "; cin>>num; while(num!=0) { node *temp=new node; cin>>temp->data; temp->next=temp; if(head==NULL) head=temp; else{ node *temp1=head; while(tem...
ALGO
0.999233
4.892785
{ "github_metadata": { "branch": "main", "commit_count": 68, "repo_created_at": "2022-06-17T04:12: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": "5b7e463d8aa...
0b7d735b-7a7e-46f4-8e99-bffb45b93883
ressay/USACO-chapter-1
milk.cpp
/* ID: bourahl1 PROG: milk LANG: C++ */ #include <iostream> #include <fstream> #include <string> #include "map" using namespace std; int main11() { ifstream fin ; ifstream dict; fin.open("milk.in"); ofstream fout("milk.out"); if(fin.is_open()) { int N,M; fin >> N >> M; ...
ALGO
0.999951
3.554905
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2018-07-06T00:50:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e744c1b19c...
1e66a31f-1fe6-42ac-a6b4-d50d8f397d86
catwomp1/cpp_primer
Chapter Exercises/Chapter8/8.7/tempovermod.cpp
// tempovermod.cpp -- template overloading modified #include <iostream> // template function prototypes template <typename T> // template A void ShowArray(T arr[], int n); template <typename T> // template B void ShowArray(T * arr[], int n); template <typename T> void SumArray(T arr[], int n); // sum array of ints t...
ALGO
0.980002
5.802601
{ "github_metadata": { "branch": "master", "commit_count": 53, "repo_created_at": "2015-11-18T05:28:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "8c91ee3b4...
ffde7c24-abf5-4c9c-8d3b-7bf0e7e3de47
MichalMroz21/Competitive-Programming
Leetcode/21.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: void putNextAndShift...
ALGO
0.99996
5.746269
{ "github_metadata": { "branch": "main", "commit_count": 172, "repo_created_at": "2023-10-07T11:01: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": "b62b104250...
c815838a-482a-41fc-b353-ab3533b539b6
joparino/algorithms
Karatsuba/karatsuba.cpp
#include <string> #include <cmath> int karatsuba(long rhs, long lhs) { if (rhs < 20 && lhs < 20) { return rhs * lhs; } size_t size = std::max(std::to_string(rhs).length(), std::to_string(lhs).length()); int n = static_cast<int>(std::ceil(size / 2.0)); long p = static_cast<long>(std::pow(10, n)); long a ...
ALGO
0.999622
5.021343
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2022-10-07T13:08: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": "f0c52705aa...
93edf0cc-c7e0-404c-83be-e19420d23cee
changhyeonnam/Problem_Solving
boj/2239.cpp
// //#include <iostream> //#include <cstring> //#include <string> //#include <algorithm> //#include <vector> //#include <queue> //#include <stack> //#include <map> //#include <set> //#include <cmath> //#define endl '\n' //#define INF 1e9 //#define LINF 9223372036854775807 //using namespace std; // //typedef long long l...
ALGO
0.999875
4.771656
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2021-12-25T07:11: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": "9612946cb...
f43c63aa-fe93-41fd-8157-4842c5008891
FCIamira/frist_100-Problem_solving
Data_Type&Condaition/testt/main.cpp
#include <iostream> using namespace std; int main() { long long L, R,sum = 0; cin >> L >> R; if (L > R) { swap(L, R); } for (int num = L; num <= R; ++num) { if (num % 2 != 0) { sum += num; } } cout<< sum ; return 0; } #include <iostream> using ...
ALGO
0.999949
4.571032
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-12-02T13:29:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8082dfb95057...
7b2af8d4-e705-476c-9177-4cbac85227c6
nahyeon-an/algorithm
leetcode/36ValidSudoku.cpp
#include <iostream> #include <vector> #include <string> using namespace std; bool isValidSudoku(vector<vector<char>> &mat); int main() { vector<vector<char>> board = { {'5', '3', '.', '.', '7', '.', '.', '.', '.'}, {'6', '.', '.', '1', '9', '5', '.', '.', '.'}, {'.', '9', '8', '.', '.', '.', '.',...
ALGO
0.997727
6.334058
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2021-01-05T10:04:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8e05883da6...
040b0631-5f02-412e-8a4b-3a317b3b0544
ishandutta2007/codeforces-b
bohdanpastuschak/normal/1229/C.cpp
#include <bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int, int> PII; typedef vector<int> VI; #define MP make_pair #define PB push_back #define X first #define Y second #define FOR(i, a, b) for(int i = (a); i < (b); ++i) #define RFOR(i, b, a) for(int i = (b) - 1; i >= (a); --i) #define IT...
ALGO
0.999918
3.821402
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-04-11T01:05:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "82c8cf435343...
a8b4d070-d0e3-469d-95b9-4f035c60aa54
nandin-borjigin/LeetCode
328.OddEvenLinkedList.cpp
#include <gtest/gtest.h> #include "header.h" SOLUTION_BEGIN(328) ListNode* oddEvenList(ListNode *head) { if (nullptr == head) return nullptr; auto evenHead = head->next; auto odd = head; auto even = evenHead; while (even != nullptr) { ...
TEST
0.980871
6.260209
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2017-08-01T20:05: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": "ea8cdae4bc...
003e4b9f-b35d-4350-84ce-9a042d87d460
Agent-Gautam/CrackYourInternship
Array/wordSearch.cpp
class Solution { public: bool exist(vector<vector<char>>& board, string& word) { bool ans = false; for(int j = 0; j < board.size(); j++) { for(int k = 0; k < board[0].size(); k++) { if(board[j][k] == word[0]) { ans = ans || helper(board, word, j , k, 0...
ALGO
0.999657
6.243128
{ "github_metadata": { "branch": "main", "commit_count": 48, "repo_created_at": "2024-07-15T08:51: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": "9cb371bad46...
b5bbf332-029d-44ac-a801-68731511ce2e
Heartkage/LeetCodePractice
C++/Independent/Q368_LargestDivisibleSubset.cpp
#include<iostream> #include<vector> using namespace std; // 1 2 3 4 5 6 7 8 12 // 1 1 0 0 0 0 0 0 0 0 // 2 1 2 0 0 0 0 0 0 0 // 3 1 2 2 // 4 1 2 2 3 // 5 1 2 2 3 2 // 6 1 2 2 3 2 3 // 7 1 2 2 3 2 3 2 // 8 1 2 2 3 2 3 2 4 // 12 1 2 2 3 2 3 2 4 4 class Solution { public: vector<int> largestDivisibleSub...
ALGO
0.999902
4.661654
{ "github_metadata": { "branch": "master", "commit_count": 274, "repo_created_at": "2020-12-31T09:01: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": "4cf396b9...
ae1d4a11-c55b-4cca-b2d9-ae5c8fa32b7d
Discorre/SORTJABLOCA
FileName.cpp
#include <stdio.h> // Подключение стандартной библиотеки ввода-вывода #include <stdlib.h> // Подключение стандартной библиотеки #include <limits.h> // Подключение библиотеки для определения максимального значения целочисленного типа // Функция слияния двух подмассивов void merge(int arr[], int l, int m, int r) { i...
ALGO
0.999998
5.275945
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-02-29T05:44: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": "8166728aa2...
beda9eac-df12-48a9-afbc-b8badad3183b
vsklad/cgen
bal/bal/binarytreeindex.hpp
// // Boolean Algebra Library (BAL) // https://cgen.sophisticatedways.net // Copyright © 2018-2020 <NAME>. All rights reserved. // Published under terms of MIT license. // #ifndef binarytreeindex_hpp #define binarytreeindex_hpp #include "containerindex.hpp" namespace bal { // "bti" refers to binary tree ind...
TOOL
0.98579
6.650263
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2018-07-03T20:46:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 25, "forks": 6, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "d2e2fcdd...
b56f2ba2-a936-4b64-a31b-5ed7668e8d9f
RobotJustina/Juskeshino
catkin_ws/src/hri/human_follower/src/human_follower_node.cpp
#include <iostream> #include "ros/ros.h" #include "std_msgs/Bool.h" #include "std_msgs/Empty.h" #include "std_msgs/Float32MultiArray.h" #include "geometry_msgs/Twist.h" #include "geometry_msgs/PointStamped.h" #include "std_msgs/Float32.h" #include "tf/transform_listener.h" #include "tf_conversions/tf_eigen.h" ros::No...
ALGO
0.950993
3.993375
{ "github_metadata": { "branch": "master", "commit_count": 991, "repo_created_at": "2023-01-11T00:22:33.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 6, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2889f63e8...
822259cb-9b3e-4945-9553-5efb94d53b25
TuiskuTynkkynen/DSAcpp
DataStructuresAndAlgorithms/linkedlist.cpp
#include <iostream> #include "linkedlist.h" #include <memory> //SINGLY LINKED LIST struct SinglyLinkedList::Node { int value{}; Node* next{}; }; SinglyLinkedList::~SinglyLinkedList() { if (head != nullptr) { FreeList(); } } void SinglyLinkedList::PrependNode(int val) { Node* node = new Node; n...
TOOL
0.973867
4.922917
{ "github_metadata": { "branch": "master", "commit_count": 84, "repo_created_at": "2023-11-06T18:31: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": "d41f1c194...
9d31dd6e-a37d-4a7e-b6c2-a72a5e127b8d
uvuv-643/Computational_Mathematics
vm_lab6/methods/AdamsMethod.cpp
// // Created by K49-R355-M11 on 20.05.2023. // #include "AdamsMethod.h" AdamsMethod::AdamsMethod(double x_0, double x_n, double y_0, double h, double eps) { this->x_0 = x_0; this->x_n = x_n; this->y_0 = y_0; this->h = h; this->eps = eps; } vector<double> AdamsMethod::simple_iteration(CDifferenti...
ALGO
0.999986
5.190258
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2023-02-10T18:03:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "452b3e4d0...
430a661c-363e-413c-8bf4-9570c575c1e6
mann2108/Data-Structures
Segment Tree/SegmentTree-1.cpp
/// @author man2108 /// SEGMENT TREE IMPLEMENTATION /** sum of all elements in given range query */ #include<bits/stdc++.h> using namespace std; typedef long long int ll; const ll MAXN=1e5+5; ll n,t[(ll)4*MAXN]; void build(ll a[],ll v,ll tl,ll tr){ if(tl==tr)t[v]=a[tl]; else{ ll tm = (tl+tr)/2; ...
ALGO
0.999397
4.497859
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2020-01-07T18:59:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b26bf8066f...
07d0e575-5eb4-43b5-8254-101710863cd5
tg1kim/Week06
ArrIndex3.cpp
#include <stdio.h> #define N1 9 #define N2 8 #define N3 7 #define N4 6 #define DIM 4 #pragma warning (disable: 4326 4996 6031) void main() { int B[N1][N2][N3][N4]; int arNdx[DIM], arSize[DIM] = {N1, N2, N3, N4}; for (int i = 0; i < arSize[0]; i++) for (int j = 0; j < arSize[1]; j++) for (int k = 0; k < arSiz...
ALGO
0.972509
3.15143
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-03-30T05:44: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": "94ba82d22401...
375588a1-4fb6-43d1-89d9-f73d95ee0041
parentoni/CP
usaco/gold/knapsack/dividingcoins/dividingcoins.cpp
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define print(x) for (auto el: x) cout << el << " "; cout << '\n' #define f first #define s second using ll = long long; using llb = long double; using vl = vector<ll>; using pll = pair<ll,ll>; // functions void setIO(string s) {freo...
ALGO
0.999955
4.131575
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-07-02T15: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": "6af224bbd733...
4953f147-af24-49ce-bd6e-e88f6646c800
puzzlemusa/ProblemSolving
ProblemSolving/src/LeetCode/ConstructBinarySearchTreefromPreorderTraversal.cpp
/* ID: puzzlemusa PROG: LANG: C++ */ #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> ...
ALGO
0.99994
4.620691
{ "github_metadata": { "branch": "master", "commit_count": 246, "repo_created_at": "2017-06-18T09:22: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": "c7c6dfe1...
17a75a34-3319-42bd-b778-da9d0a6c67dd
JoelGunawan/competitive-programming
contests/pelatnas-toki/toki-2022/pelatnas-1/pjj-minggu-1/e.cpp
#include <bits/stdc++.h> #define ll long long #define pb push_back #define pf push_front #define lb lower_bound #define ub upper_bound #define endl "\n" #pragma GCC optimize("Ofast") #define global_size 1001 using namespace std; short max(short a, short b, short c, short d) { return max(a, max(b, max(c, d))); } sho...
ALGO
0.999884
4.361542
{ "github_metadata": { "branch": "main", "commit_count": 665, "repo_created_at": "2021-06-06T04:24: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": "c81af60b0e...
f6ee6068-6b29-4e83-8bc4-274cc2ff2710
jianglin-code/AutoVP
android-system/extras/simpleperf/RecordFilter.cpp
/* * Copyright (C) 2021 The Android Open Source Project * * 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 app...
TOOL
0.931083
7.419896
{ "github_metadata": { "branch": "main", "commit_count": 25, "repo_created_at": "2024-01-21T04:23:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c600043b933...
8a5f60cc-c0e1-4fb5-88cb-7fb8f2c299cc
yyhclimacool/CPP-Primer-Answers
src/Chapter10/exercise_10_13.cc
#include <algorithm> #include <vector> #include <iostream> using namespace std; bool isShorter(const string &lhs, const string &rhs) { return lhs.size() < rhs.size(); } bool check5(const string &s) { return s.size() < 5; } void elimDups(vector<string> &words) { for_each(words.cbegin(), words.cend(), [] ...
ALGO
0.999428
5.355251
{ "github_metadata": { "branch": "master", "commit_count": 288, "repo_created_at": "2016-02-19T14:59: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": "8904b828...
f4fdd4be-1597-402a-94c7-df54916f4657
dmille56/treesit-jump
language-tests/example.cpp
#include <iostream> #include <vector> #include <map> #include <algorithm> #include <memory> // Function Declaration int add(int a, int b); // Lambda Function auto multiply = [](int a, int b) -> int { return a * b; }; // Class Declaration class Person { public: std::string name; int age; Person(std::strin...
ALGO
0.992788
6.181038
{ "github_metadata": { "branch": "main", "commit_count": 67, "repo_created_at": "2024-02-24T05:36:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 42, "forks": 5, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "2f341d29e0...
25a44ab9-e87e-479b-9801-f5163340181d
Kami-code/AU335-CV-labs
lab2/rectify.cpp
// // Created by baochen on 11/30/20. // #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/opencv.hpp> #include <vector> using namespace cv; using namespace std; void hello2() { Mat imgL = imread("/home/baochen/Pictures/le...
ALGO
0.956804
4.894516
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2021-05-07T01:15:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "97a4f3da69b1...
b0df4d8c-a3d6-4be6-8d0d-7d64b34ce07d
hiranoo/atcoder
contests/OTHER_CONTESTS/typical90/005.cpp
#include <vector> #include <algorithm> #include <math.h> #include <stdio.h> #include <string> #include <sstream> #include <bitset> #include <stack> #include <queue> #include <bits/stdc++.h> #include <atcoder/segtree> #include <atcoder/modint> #include <time.h> #define rep(i, s, t) for(int i = (s); i <= (t); i++) #defin...
ALGO
0.999626
3.542744
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2021-05-23T09:03: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": "bedd1273c3...
51c3f60e-d2a2-40cf-a8b9-90ad0a64e21c
nenuon/CompetitiveProgramming
Atcoder/ABC017/C_2.cpp
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #include <cmath> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #include <stdlib.h> #include <stdio.h> #include <bitset> #include <random> #include <time.h> using namespace std; #define FOR...
ALGO
0.99986
4.079054
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2017-11-28T08:06: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": "1b808d314...
3bbeeada-8069-40e1-ae93-2432bbeb0d3b
r05922107/TCG2017
TCG_final/tcg_2017_final_project_171221/r05922107/HashTable.cpp
#include "HashTable.h" using namespace std; HashTable::HashTable(){ //initialize for(int i=0; i<TABLE_SIZE; i++){ hashTable[i] = Entry(); } for(int i=0; i<15; i++){ for(int j=0; j<32; j++){ hashKey[i][j] = (bitset<1024>(rand()) << 96) ^ (bitset<1024>(rand()) << 64) ^ (bits...
ALGO
0.99372
4.404677
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2017-10-16T07:27: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": "1a5a782fc...
91de4d72-83d4-4c6a-8581-9956baf0aeef
aashiqui2/C-Plus-Plus-Programming-Resources
10.Looping/7DoWhileLoop.cpp
#include <iostream> using namespace std; int main() { // Print I love C++ 10 times /* cout << "I love C++" << endl; cout << "I love C++" << endl; cout << "I love C++" << endl; cout << "I love C++" << endl; cout << "I love C++" << endl; cout << "I love C++" << endl; cout << "I love C...
TOOL
0.90124
3.888895
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2025-03-07T11:27: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": "5538b4d09...
2567f78f-da00-4e75-9164-61c3285bfcf0
kangaroo-0000/systolic-array-hls
systolic_array.cpp
#include "systolic_array.h" void systolic_array( hls::stream<MBItem> &inputStream, hls::stream<MBItem> &outputStream, hls::stream<float> &aStream, hls::stream<float> &bStream, bool accumulateMode, int totalCycles ) { #pragma HLS INTERFACE axis port=inputStream #pragma HLS INTERFACE axis ...
ALGO
0.942249
4.64795
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2025-02-05T21:59:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c2edc8e97e60...
bc1cf4de-ba30-4e66-8ed8-25f0fb8c9108
leedavid/NewGG
I_GGX64/2/2对1/1车1炮对1车.cpp
#ifndef END_my_m_MT_R_1CHE1PAO_B_1CHE #define END_my_m_MT_R_1CHE1PAO_B_1CHE #include "../../chess.h" #include "../../preGen.h" #include "../../endgame/mat.h" #include "1车1炮对1车.cpp" #include "../../white.h" #else #include "../../black.h" #endif //我方一车一炮, 对方一车 void my_m_MT_R_1CHE1PAO_B_1CHE(typePOS &POSITION, EvalIn...
ALGO
0.92152
3.982297
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2020-05-10T11:57:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 46, "forks": 38, "issues": 5, "pull_requests": 0 }, "file_meta": { "content_id": "9f17bd8...
61b47308-1e28-4b39-92be-70e7cc6d9cec
C1ouDreamW/Cpp_Study
VScode/2065C1.cpp
#include <bits/stdc++.h> using namespace std; #define int long long void solve() { int n, m, b; cin >> n >> m; vector<int> a(n); for (int i = 0; i < n; i++) cin >> a[i]; cin >> b; if (n == 1) { cout << "YES" << endl; return; } int temp = min(a[0], b - a[0]); for (int i = 1; i < n; i++) {...
ALGO
0.999927
3.885608
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2025-01-11T14:16: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": "6a87e447686...
d35f6a3c-8132-4dd9-b183-3fa1563196d2
arman-novikov/OnTran
OnTran/funcs.cpp
#include "funcs.h" using namespace std; unsigned short int crc16(char *odno_slovo,int dlina_slova) // в качестве аргументов использую указатель на слово и длину этого слова { char *temp = odno_slovo; unsigned short int crc; //это будет результатом данной функции crc = 0xFFFF; //== 1111111111111111 в двои...
TOOL
0.978156
3.580371
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2017-08-06T09:08:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5cc1bc78ee...
c5debfc5-812d-4b3b-b793-1617b56ff8c9
kamyu104/LeetCode-Solutions
C++/next-greater-numerically-balanced-number.cpp
// Time: O(logc) = O(1) // Space: O(c) = O(1) class Solution { public: int nextBeautifulNumber(int n) { // precomputed by generating all balanced's permutations in solution2 static const vector<int> candidates = { 1, 22, 122, 212, 221, 333 , 1333, 3133, 3313,...
ALGO
0.999911
5.480629
{ "github_metadata": { "branch": "master", "commit_count": 19395, "repo_created_at": "2018-10-11T17:38:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4939, "forks": 1616, "issues": 1, "pull_requests": 55 }, "file_meta": { "content_id": ...
a7f9a9c8-517b-45ab-bbec-155dd4abeff1
My-ETF-Materials-Collection/Tehnike-programiranja
Laboratorijske vježbe/LAB 01/TP LV1 Z4 - tip broja.cpp
// TP 2021/2022: LV 1, Zadatak 4 #include <iomanip> #include <iostream> using namespace std; int main() { double n; for (;;) { cout << "Unesite prirodan broj ili 0 za kraj: "; cin >> n; if (cin && n==0) { cout << "Dovidjenja!"; return 0; }else if (n < 0 || !cin || n!=int(n)) { cout <...
ALGO
0.998067
3.881276
{ "github_metadata": { "branch": "main", "commit_count": 71, "repo_created_at": "2022-09-23T19:27:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8cb6cbe6aac2...
f7472441-2eb2-419c-bc98-535159915072
alexvelea/competitive
infoarena/tri2/tri2.cpp
#include <cassert> #include <cstdio> #include <cmath> #include <algorithm> #include <iostream> #include <vector> using namespace std; #define max_n 1010 #define FORIT( it, v ) for ( typeof((v).begin()) it=(v).begin(); it!= (v).end(); ++it ) vector<int> Normal; int i,j,n,m,a,b,c; int Down[ max_n ][ max_n ]; int AI...
ALGO
0.999949
3.867387
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2015-02-28T21:56:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f044739f...
157ffe76-a6bc-4b9e-b13c-58a8729c96c3
HasmikAvagyan/Graph
include/graph.h
#pragma once #include <iostream> #include <unordered_map> #include <unordered_set> #include <vector> #include <queue> #include <algorithm> #include <climits> #include "Edge.h" #include "DisjointSet.h" template <typename T = int, typename L = int> class Graph { std::unordered_map<T, Node<T>> allNodes; std::unordered_...
ALGO
0.999752
5.620365
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-06-15T22:15: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": "63a93721f97d...
df6f2e88-e6c9-4cc9-8c54-da131f2f10e8
alkayesrifat/Practice-Codes
Phitron Course Codes/2024/December-Problem-2024/December-Problem-2024-main/17-12-2024/insertatanyposition.cpp
#include <bits/stdc++.h> using namespace std; class Node { public: int value; Node *next; Node(int value) { this->value = value; this->next = NULL; } }; void print_linked_list(Node *head) { Node *temp = head; while (temp != NULL) { cout << temp->value << " "; ...
ALGO
0.999684
4.648973
{ "github_metadata": { "branch": "master", "commit_count": 139, "repo_created_at": "2025-01-19T04:31:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "54d5fb5e...
96065704-9739-4372-ad4d-dd8c27c3b969
lickelon/Baekjoon
백준/Platinum/20052. 괄호 문자열 ?/괄호 문자열 ?.cc
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define INF 0x7FFFFFFF using namespace std; using ll = long long; using ld = long double; using pii = pair<int,int>; using pll = pair<ll, ll>; template<typename T> class segTree { private: ll n; T id; T(*merge)(T, T); vector<T> tree; pu...
ALGO
0.99985
4.264131
{ "github_metadata": { "branch": "main", "commit_count": 470, "repo_created_at": "2024-06-29T11:26: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": "ea00fb086b...
8400f211-8559-4bdc-81a6-dfc4d3562413
PhDP/alchemy2
src/liftedinfer/liftedblockedgibbs/includes/gibbsprocesshandler.h
#ifndef GIBBS_PROCESS_HANDLER_H #define GIBBS_PROCESS_HANDLER_H #include <sys/types.h> #ifndef _MSC_VER #include <unistd.h> #include <cstdio> #endif #include "clustercreator.h" #include "lbgsampler.h" #include "lvrmln.h" #include "lvparams.h" using namespace std; class GibbsProcessHandler { public: GibbsProcessHan...
ALGO
0.969181
6.056411
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2013-02-26T00:52:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 28, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "243c9745...
8623ab9f-dcd2-402c-82fd-41b8ffb5794d
changchen331/LeetCode
3373.cpp
#include <array> #include <vector> #include <iostream> using namespace std; class Solution { private: pair<vector<vector<int>>, array<int, 2>> count(vector<vector<int>> &edges) { vector<vector<int>> g(edges.size() + 1); for (auto &&edge : edges) { int x = edge[0], y = edge[1...
ALGO
0.999825
5.850278
{ "github_metadata": { "branch": "main", "commit_count": 100, "repo_created_at": "2025-03-25T16:05: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": "8b7d78e248...
ec2debfe-64ae-4956-b12a-2d57375f951b
cjee246/CodePractice
AdventOfCode/2021_day3/aoc_2021_03a.cpp
/* * Author: <NAME> * Email: <EMAIL> * * Date: 2022-03-12 */ /******************************************************************************/ /* HEADER FILES */ /******************************************************************************/ #include <iostream> #include <fstream> #include "../Libraries/aocFile.h"...
ALGO
0.999955
5.61394
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2022-03-12T02:34: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": "80e1aa3f34...
6e3dd354-60ae-4baf-9ad4-ea9931860fad
PepeTheBuilder74/DSA
CSES/Tree/3_Tree_Diameter.cpp
#include <bits/stdc++.h> using namespace std; // find the maximum depth node of a tree // then find the maximum depth node of the tree from that node int main() { int n; cin>>n; vector<int> adj[n + 1]; for(int i = 0; i < n - 1; i++) { int u, v; cin>>u>>v; adj[u].push_back(v); ...
ALGO
0.995957
4.101402
{ "github_metadata": { "branch": "main", "commit_count": 148, "repo_created_at": "2022-07-08T07:28:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "87e27f1cc6...
e1abdfba-2224-4f0b-b488-2b34526f421c
pseong/ProgramSolving
Codeforces/Codeforces Round #853 (Div. 2)/B.cpp
#include <bits/stdc++.h> #define all(c) (c).begin(),(c).end() #define srt(c) sort(all(c)) #define srtrev(c) sort(all(c)); reverse(all(c)) using namespace std; using ll=long long; using i128 = __int128_t; using pi=pair<int, int>; using pll=pair<ll, ll>; using ti=tuple<int, int, int>; using tll=tuple<ll, ll, ll>; templat...
ALGO
0.999933
3.926082
{ "github_metadata": { "branch": "main", "commit_count": 2105, "repo_created_at": "2021-01-25T02:47: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": "968233425...
68714b0c-efa2-4b48-9113-c05e4ad27cae
tk42635/Video-Stabilization
main.cpp
#include <opencv2/opencv.hpp> #include <iostream> #include <cmath> #include <string> #include <time.h> #include <stablization.h> #include <omp.h> #include <condition_variable> #include <unistd.h> using namespace std; using namespace cv; long double Metric(Mat frame1, Mat frame2); bool Judge(vector<double> &tmp); con...
ALGO
0.995555
5.127137
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-05-30T08:05:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8b2e3fcaf8...
45768de6-427c-4665-883c-34178364583d
shenmintao/GreenScreenCut
AlphaMatting/AlphaMatting.h
#pragma once #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <cmath> #include <vector> #include <opencv2/core/cuda.hpp> using namespace std; struct labelPoint { int x; int y; int label; }; struct Tuple { cv::Scalar f; cv::Scalar b; double sigmaf; double ...
ALGO
0.998743
4.530304
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-06-14T02:08:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5449717458...
cebc894c-7047-4073-a409-d1800a41888f
tomoakiii/atcoder2
Archive/abc387/d2.cpp
#include <atcoder/all> #include <bits/stdc++.h> using namespace std; using namespace atcoder; #define rep(i,n) for (ll i = 0; i < (n); ++i) template<typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); } template<typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true...
ALGO
0.999912
3.429037
{ "github_metadata": { "branch": "main", "commit_count": 252, "repo_created_at": "2024-02-05T06:43: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": "49b2c8f292...
b2789af9-b70a-41e3-ae26-6125c50d9421
Girl-Code-It/Beginner-CPP-Submissions
Urvashi/milestone-14(strings)/Hackerearth strings/easy/decode.cpp
// question: convert the encrypted string into original one ; #include <iostream> #include <string.h> using namespace std; int main() { int t; cin >> t; while (t--) { int i, l, j, m, n; char s[100000]; cin >> s; l = strlen(s); if (l % 2 == 0) { //if lengt...
ALGO
0.99994
3.594259
{ "github_metadata": { "branch": "master", "commit_count": 557, "repo_created_at": "2020-05-14T05:39:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 32, "forks": 83, "issues": 2, "pull_requests": 7 }, "file_meta": { "content_id": "6d19105...
665bd1e5-0465-4059-88b1-9b720c1ad807
MuhtasimTanmoy/playground
practice/direction.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define ff first #define ss second #define mp make_pair #define pb push_back const int N = 2e5 + 11; int mat[N][N]; void solve() { string s; cin>>s; int cur_x = N/2; int cur_y = N/2; int point = 0; for (int i...
ALGO
0.999917
3.97708
{ "github_metadata": { "branch": "main", "commit_count": 3861, "repo_created_at": "2019-09-04T07:43:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 23, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "513de906...
b01c652f-56ff-4683-a425-303996a96e8c
LicorneMagique/Cours_L3
Programmation_Concurrente/TP5/sched.cpp
// compiler avec g++ -std=c++11 -g -Wall sched.cpp -pthread -o sched.ex // #define _GNU_SOURCE #include <pthread.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <sched.h> #include <unistd.h> #include <mutex> #include <thread> #include <vector> #include <ss...
TOOL
0.985911
4.680248
{ "github_metadata": { "branch": "master", "commit_count": 138, "repo_created_at": "2019-09-08T20:38:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 5, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "875e3ea5...
bec595e8-344c-4b5d-9248-a952677f2959
SmartDong1/SmartDongLib
sdstructure/linearlist/SkipList.h
// // Created by Administrator on 2020/12/22. // 跳表:在有序链表的基础上再加上索引链表。效率同平衡二叉树,链表头数据不放任何数据 // #ifndef SMARTDONGLIB_SKIPLIST_H #define SMARTDONGLIB_SKIPLIST_H #include <boost/shared_ptr.hpp> #include "linkList.cpp" #include <math.h> #include <vector> namespace SmartDongLib { template<class ElemType> class SkipL...
ALGO
0.998507
4.257513
{ "github_metadata": { "branch": "master", "commit_count": 59, "repo_created_at": "2020-09-01T16:31: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": "a56d1a61e...
b1a84e97-b267-4874-9874-e37d31253161
daganharrington/school-stuff
algs/bhat.cpp
/* a wee little stub to compute bhattacharyya coefficient using eigen measures 'overlap' between two random samples, generally two multivariate gaussians here CXXFLAGS = -I/usr/include/eigen3 -lm dagan */ #include <iostream> #include <cmath> #include <Eigen/Dense> double Bhat (Eigen::MatrixXd A_mean, Eigen::MatrixXd...
ALGO
0.998832
5.488654
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2013-10-22T00:16: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": "9ad01f772...
0a62f911-0020-41b9-b791-3eb7dc9a5811
Apriorhythm/IntroductionToAlgorithm
C02/MergeSort.cpp
#include <iostream> using namespace std; void Merge(int A[], int start, int mid, int end) { /* Calculate the length of elements */ /* * 注意: * length1包含mid元素 * length2不包含mid元素 */ int length1 = mid - start + 1; int length2 = end - mid; int *T1 = new int[length1]; int *T2 = new int[length2]; /* Copy al...
ALGO
0.999915
5.060604
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2018-03-29T01:10: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": "1321397ab...
a766f0b6-778b-4642-8a4d-eb5f3d805dea
RicoJia/dream_cartographer
rgbd_slam_rico/include/rgbd_slam_rico_exercises/orb_exercise.hpp
#pragma once #include "simple_robotics_cpp_utils/cv_utils.hpp" #include "simple_robotics_cpp_utils/math_utils.hpp" #include <algorithm> #include <array> #include <bitset> #include <opencv2/features2d.hpp> namespace RgbdSlamRicoExercises { // //x1,y1,x2,y2 const std::array<int, 256 * 4> ORB_pattern{ 8, -3, 9, ...
CONFIG
0.991533
4.003615
{ "github_metadata": { "branch": "main", "commit_count": 113, "repo_created_at": "2024-03-17T18:04: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": "989fcaf34d...
d44610ef-4ee7-4ec2-9e03-8d19043635f0
gregorykaminsky/visual_crystal
source/Plane.h
#include "Vec3d.h" double round(double x, int number); double round_to_digits(double value, int digits); vector<string> tokenizer(string line, string separator); Vec3d ArbitraryRotate(Vec3d point, double theta, Vec3d axis); #define SSTR( x ) static_cast< std::ostringstream & >( ( std::ostringstream() << std::dec << ...
ALGO
0.969337
3.104763
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2018-01-19T01:05: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": "f9f4b4506...
02ecd86d-9382-4dcf-bf96-de8342615387
uyoove/ACMER
code/codeforces/CF2000分计划/CF862E.cpp
//和爸爸一起学编程真好,不过要小学四年级分流考试了,最近没时间写代码了,呜呜呜 #include<bits/stdc++.h> using namespace std; #define out(x) cout << #x << '=' << (x) << endl #define out2(x, y) cout << #x << '=' << (x) << ',' << #y << '=' << (y) << endl #define int long long #define lc u<<1 #define rc u<<1|1 #define pb push_back #define vt vector #define fi ...
ALGO
0.999972
4.061833
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2025-03-31T02:18:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3bb1fbb6cd3d...
fa764feb-6026-4dcd-bab6-e4851089c724
Arkaprabha13/Dsa
BST_ceil.cpp
#include <bits/stdc++.h> using namespace std; struct Node { int key; struct Node *left; struct Node *right; Node(int k) { key = k; left = right = NULL; } }; Node *get_ceil(Node *root, int x) { Node *result = NULL; while (root != NULL) { if (root->key == x) ...
ALGO
0.999963
3.678825
{ "github_metadata": { "branch": "main", "commit_count": 220, "repo_created_at": "2023-06-30T09:09:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f79d5939c0...
a4189be0-cfca-42f3-bccc-675434c2c862
jiadaizhao/LeetCode
0801-0900/0839-Similar String Groups/0839-Similar String Groups.cpp
class Solution { public: int numSimilarGroups(vector<string>& A) { int n = A.size(), count = n; vector<int> parents(n); for (int i = 0; i < n; ++i) { parents[i] = i; } for (int i = 0; i < n; ++i) { for (int j = 0; j < i; ++j) { if (isSi...
ALGO
0.999973
5.726537
{ "github_metadata": { "branch": "master", "commit_count": 211, "repo_created_at": "2017-08-08T05:57:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 38, "forks": 21, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "03b41d...
39828423-23fb-4f87-8ff8-fdde60ab4f88
EndoxaJade/SchoolWork
GroupProject_LabWork6-7/Source.cpp
#include <iostream> #include <string> #include <fstream> #include <cmath> using namespace std; const char alphabet[64] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n...
TOOL
0.957745
3.249926
{ "github_metadata": { "branch": "main", "commit_count": 42, "repo_created_at": "2024-12-03T11:27:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7c7c22d3bf7...
b34655d5-fd33-4169-9090-44abbbd52299
LukasIngemarsson/kattis
ljutnja/main.cpp
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0)->sync_with_stdio(false); long long M, N; cin >> M >> N; vector<long long> wishes(N); for (long long i = 0; i < N; ++i) { cin >> wishes[i]; } sort(wishes.begin(), wishes.end(), greater<>()); long long low = ...
ALGO
0.999995
4.552783
{ "github_metadata": { "branch": "main", "commit_count": 42, "repo_created_at": "2024-11-29T07:29:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6f524000db2...
415c44aa-0a1c-4bb7-999a-0a024646379b
MachineEyes001/PLVSII_ROS2
src/plvs/src/OctreePointCloudCentroid.cc
/* * This file is part of PLVS. * Copyright (C) 2018-present <NAME> <luigifreda at gmail dot com> * * 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 3 of the License, or * ...
ALGO
0.995348
5.921922
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-04-26T16:05: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": "320707aba96c...
85c450bb-557a-48a7-8fd4-11f5e56aa370
unoof/code-ptit
cpp/CPP0209 TÍNH TỔNG TRONG KHOẢNG.cpp
#include <bits/stdc++.h> using namespace std; long total(vector<int> arr, int start, int end) { long total {0}; for (int i = start-1; i < end; i++) { total += arr[i]; } return total; } void submit() { int num, questions; cin >> num >> questions; vector<int> arr(num); for...
ALGO
0.999821
5.525887
{ "github_metadata": { "branch": "main", "commit_count": 76, "repo_created_at": "2025-03-04T13:02: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": "0fbe71aab53...
3c7c452b-e5c7-4bdf-80f9-ab457efbe44c
fpgasystems/fpga-network-stack
hls/ib_transport_protocol/flow_control.hpp
/************************************************ Copyright (c) 2019, Systems Group, ETH Zurich. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above c...
ALGO
0.967387
5.90416
{ "github_metadata": { "branch": "master", "commit_count": 247, "repo_created_at": "2016-09-15T20:43:51.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 837, "forks": 286, "issues": 25, "pull_requests": 2 }, "file_meta": { "content_id": "97ba...
8935396d-b418-41ee-a618-85a90e29cfa4
sidharth-085/Striver-SDE-Sheet
Strings/Pattern Search Algo/KMP_Algorithm.cpp
#include <iostream> #include <string> using namespace std; // In this question, we have given two strings S and P, we need to search pattern P in // string S // Brute Force Approach: Two Pointer Approach bool findPattern(string pattern, string str) { if (pattern.size() > str.size()) { // if string S is smaller ...
ALGO
0.999925
5.712328
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2023-08-30T21:55: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": "893abcafce...
20b3c809-1e75-48b1-9ed2-75b41f5337e6
simhani1/BOJ
백준/Gold/17179. 케이크 자르기/케이크 자르기.cc
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <memory.h> #include <algorithm> #include <vector> #include <cmath> #include <stack> #include <queue> #include <deque> #include <time.h> #include <map> #include <set> using namespace std; #define INF 123456789 #define MAX 2000000000 typedef l...
ALGO
0.99998
3.927773
{ "github_metadata": { "branch": "BOJ", "commit_count": 1092, "repo_created_at": "2022-02-05T18:55:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "66cf3ce47e...
40ea2929-dd54-4dbc-9986-12739db6c711
tsfdssm/leetcode
957.n-天后的牢房.cpp
/* * @lc app=leetcode.cn id=957 lang=cpp * * [957] N 天后的牢房 */ // @lc code=start class Solution { public: vector<int> prisonAfterNDays(vector<int> &cells, int n) { //n = 3; unordered_map<int, int> mpNum; unordered_map<int, int> mpPos; for (int i = 1; i <= n; ++i) { ...
ALGO
0.999998
5.865664
{ "github_metadata": { "branch": "master", "commit_count": 73, "repo_created_at": "2021-05-04T05:37: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": "73e7265cc...
a07537a4-0e59-48a4-92a0-ad356c7cc4b7
eagletmt/contests
source/code/poj/1584.cc
#include <iostream> #include <vector> #include <complex> #include <algorithm> using namespace std; typedef complex<double> P; static const double EPS = 1e-6; inline double dot(const P& a, const P& b) { return a.real()*b.real() + a.imag()*b.imag(); } inline double cross(const P& a, const P& b) { return a.real()*b.imag(...
ALGO
0.999661
4.077794
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2011-10-19T19:19:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "40f99d174...
0acf39a8-7c7c-4e8c-8d9b-b960d28b4524
Panmax/slizer
slizer/src/ColtonBenderLowestCommonAncestor.cpp
// // BinaryLiftLowestCommonAncestor.cpp // slizer // #include <vector> #include <cstdio> #include <cstdlib> #include <iostream> #include <cstring> using namespace std; const int MAXN = 100*1000; const int MAXLIST = MAXN * 2; const int LOG_MAXLIST = 18; const int SQRT_MAXLIST = 447; const int MAXBLOCKS = MAXLIST /...
ALGO
0.999974
4.258065
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2013-03-17T09:05: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": "7f9d2a2b2...
1222b074-32d9-4580-b7ab-f4c6ec2f1330
169680/169680---Catherine-Assignment
Source files/qn 9 Movie Ticket.cpp
#include <iostream> using namespace std; int main() { int age, movie_type, ticket_price; // Prompt the user to enter the age of the customer cout << "Enter the age of the customer: "; cin >> age; // Validate the input if (age < 0) { cout << "Invalid input. Age must be positive." << e...
TOOL
0.9585
4.944064
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-11-07T16:39: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": "8fcf603cf6a5...
9ab1d77f-02b2-4470-8fcb-9afa7d586885
pau98/aoc23
aoc23_01b.cpp
// C++ headers #include <cmath> #include <iostream> #include <fstream> #include <vector> int main() { // Open input text file std::ifstream inputFile("input2301.txt"); if (inputFile.is_open()) { std::string line; std::vector<std::string> nums = {"one","two","three","four","five","six","seven","eight"...
ALGO
0.999102
5.228847
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-12-02T11:42: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": "b0701719d59e...
a9806355-28c0-46fd-ad8a-769b7a4a78b0
Garyxud/melodic-all
src/cob_control/cob_twist_controller/src/limiters/limiter.cpp
/* * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) * * 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...
TOOL
0.949112
6.803932
{ "github_metadata": { "branch": "melodic-all", "commit_count": 1, "repo_created_at": "2020-09-14T02:37:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 8, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "c0911...
7c8c9165-44c1-4f6b-ac3a-80f56b56010d
000ylop/galgametools
asmodean/asmodean tools/ex4ag/ex4ag.cpp
// ex4ag.cpp, v1.03 2010/06/24 // coded by asmodean // contact: // web: http://asmodean.reverse.net // email: asmodean [at] hush.com // irc: asmodean on efnet (irc.efnet.net) // This tool extracts GAF4 (*.4ag) and WAG@ (*.wag) archives used by Xuse. #include "as-util.h" // Handle 2 byte crud in Spirit of...
TOOL
0.9655
3.556413
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-05-20T16:20:32.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 141, "forks": 30, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d9f0ae75...
99d2668a-42d1-4722-89dd-8fe59c82cf02
Kartikey0205/CP_with_cpp
Placement_Prep/queue/questions/redundantParenthesis.cpp
#include <bits/stdc++.h> using namespace std; int main() { string str; // ((a+b)) getline(cin, str); stack<char> s; bool ans = false; for (int i = 0; i < str.length(); i++) { // we can skip opearnd part // operator if (str[i] == '+' || str[i] == '-' || str[i] == '*'...
ALGO
0.999846
4.166614
{ "github_metadata": { "branch": "main", "commit_count": 514, "repo_created_at": "2022-01-24T15:05:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d02049357...
6227018c-fc29-4be9-8d24-339403113855
rollingrock/aoc21
Binary_day3/Binary_day3.cpp
// Binary_day3.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <fstream> #include <vector> #include <string> using namespace std; int findMatch(vector<string> list, bool dir, int searchLen) { int x = 0; auto len = list[0].length(); vector<stri...
ALGO
0.99946
3.9059
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2022-09-12T21:48: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": "6fb2b41469a...
483dc762-3348-4f06-b1a9-32ad71b30342
mazrk7/tutorial_pub_sub
src/tutorial_pub_sub_node.cpp
#include <cmath> #include <turtlesim/Pose.h> #include <geometry_msgs/Twist.h> #include <ros/ros.h> const double dist_min = 0.1; double dist; turtlesim::Pose pose_desired; geometry_msgs::Twist cmd_vel; // Callback function to update command velocities depending on updated pose information void poseCallback(const tur...
TOOL
0.935584
6.045503
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2018-10-25T09:11:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e1cec629f4...
bdf2f7ab-7c7c-4cb8-8b73-93e1df9bbc23
Wizermil/string
include/string/details/helper.hpp
#pragma once #if !__has_builtin(__builtin_strlen) || !__has_builtin(__builtin_memcmp) # error compiler not supported #endif #include <cassert> #include <cstddef> #include <cstring> #include <type_traits> #include <string/details/config.hpp> namespace wiz { class string_view; namespace details { ...
TOOL
0.962733
6.818842
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2020-03-30T14:13:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a9a49c1b0e...
361c6f53-f7ad-4481-b679-22ed6851346c
lvyeme/Hello
Hello/递归前序遍历.cpp
#include <iostream> #include <vector> using namespace std; //定义二叉树节点结构 struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: //辅助函数,递归地遍历二叉树 void traversal(TreeNode* cur, vector<int>& vec) { if...
ALGO
0.99979
5.557956
{ "github_metadata": { "branch": "master", "commit_count": 73, "repo_created_at": "2023-10-25T02:04:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6b9e04507...
97c1abda-111c-40fc-885e-58c9d943a105
mashaolin88/code
xddz/logic/mddzc.cpp
#include "mddzc.h" #include "mddz_util.h" #include <string.h> void sort_by_num2(char* cards, int len) { change_12_2_A2(cards, len); sort_by_num(cards, len); change_A2_2_12(cards, len); } void sort_cards2(char* cards, int len, int lz) { change_12_2_A2(cards, len); sort_cards(cards, len, change_12_2...
ALGO
0.984722
3.91228
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2016-05-21T18:57:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "76dca224ea...
7974bbbe-c44c-4280-8bb8-8c811d210b3a
nian0122/CODE
code/algorithm/数据结构/单链表/单链表.cpp
#include<iostream> using namespace std; #define ERROR NULL typedef int DataType; class Node { public: int data; Node *next; }; typedef class Node node; typedef node *link; class LinkList { public: Node *head; public: LinkList();//构造函数 ~LinkList();//析构函数 void CreateLinkList(int n); voi...
ALGO
0.999689
4.04143
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2024-11-05T11:38: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": "76c3f76411a...
6930164f-867b-4871-9a1d-c12ea73e8f3d
maxhouck/ECE3220Labs
Lab7Vectors/main.cpp
// Lab7_vectors.cpp // This program shows some simple vector examples, and asks for simple tasks. // Reference: Lippman, section 3.3 // Author: <NAME> // IMPORTANT NOTE: YOU MAY NEED TO COMPILE ADDING THE FOLLOWING FLAG: -std=c++11 // OR: -std=c++0x // Example: g++ Lab7_vectors.cpp -o Lab7_vectors -s...
TOOL
0.931917
4.020662
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-04-06T14:54: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": "2f8329d979...
c01d7dce-0563-421d-bf14-1354c29facb6
Denver44/CP-and-DSA-in-CPP
CPP_Tutorials/14STL/15MutatingAlgorithm/5Reverse/main.cpp
#include <algorithm> #include <iostream> #include <vector> using namespace std; void reverseVector() { vector<int> v = {10, 20, 30}; // The sample vector reverse(v.begin(), v.end()); // Performing reverse operation from begin to end for (int x : v) // Displaying the sequence cout << ...
ALGO
0.996417
5.181873
{ "github_metadata": { "branch": "master", "commit_count": 329, "repo_created_at": "2020-09-19T19:53: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": "687acf23...
5cc7f548-98a0-4a74-832d-5ac0ce39313e
AshutoshKumarPatel/100DaysWithCpp
Day98/find-bottom-left-tree-value.cpp
#include <iostream> #include <queue> using namespace std; struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode* left, TreeNode* right) : val(x), left(...
ALGO
0.999998
5.89695
{ "github_metadata": { "branch": "master", "commit_count": 102, "repo_created_at": "2023-11-20T19:06: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": "e62339a3...
21be139a-14fa-4d15-a90c-606c466d39d7
oeyoews/dotfiles
dot_config/ohmyzsh/themes/p10k/gitstatus/src/index.cc
// Copyright 2019 <NAME>. // // This file is part of GitStatus. // // GitStatus 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 3 of the License, or // (at your option) any later version. // /...
TOOL
0.975333
6.449937
{ "github_metadata": { "branch": "main", "commit_count": 377, "repo_created_at": "2021-09-06T09:00:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "0d8bb420f3...
87d02cca-edb6-4929-b311-4355c0e7a868
HEMLab/HiPIMS-CUDA-Landslide
lib/src/archived/operator/flux_SWEs.cc
// ====================================================================================== // Name : GeoClasses : Generic Geophysical Flow Modelling Framework // Description : This code pack provides a generic framework for developing // Geophysical CFD software. //...
ALGO
0.999314
4.24665
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-10-06T11:51:36.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4146ec7475eb9...
7771b793-341e-480b-9e9f-4738ee8c089a
21111019Harry/CPP-Problems
Problems on array/triplet.cpp
#include<iostream> #include<bits/stdc++.h> using namespace std; int triplet(int *brr, int length, int target); int main() { int *arr = NULL; int size = 0, no = 0; cout<< "Enter the size:-"; cin>>size; cout<< "Enter the target:-"; cin>>no; arr = new int; for(int i = 0; i < size; ...
ALGO
0.999937
4.340709
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-10-03T22:14:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5701db34b4bf...
c8c35dc4-c9e9-4d81-9e38-1604d1bcf7ce
abhi1998goyal/gfg_dsa
Medium/Spirally traversing a matrix/spirally-traversing-a-matrix.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: //Function to return a list of integers denoting spiral traversal of matrix. vector<int> spirallyTraverse(vector<vector<int> > matrix, int r, int c) { int t=0; int ...
ALGO
0.99997
5.927629
{ "github_metadata": { "branch": "main", "commit_count": 29, "repo_created_at": "2023-04-30T19:57:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bccefc7c366...
f391377b-1269-487f-a039-9c9058aef640
sayan110923/Book_donation_system
book.cpp
#include <stdio.h> #include <stdlib.h> #include <string.h> struct BookRecord { char name[50]; char contact[20]; char address[100]; char bookTitle[50]; char bookAuthor[50]; char edition[10]; char condition[20]; }; // File path #define FILE_NAME "book_records.txt" // Function declarations v...
TOOL
0.963566
4.972287
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-07-15T16:32: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": "624c6b1ed953...
b1f9887a-69fd-4661-b2d8-82359e464e34
Codensity30/Strivers-A2Z-DSA-Sheet
09. Heaps/3. Hard Problems/06. Top K frequent elements.cpp
/* Question: Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. */ /* Approach: 1. Create a frequency map to count the occurrences of each element in the array. 2. Use a min heap to store the k most frequent elements based on their frequencies. 3....
ALGO
0.999999
7.031043
{ "github_metadata": { "branch": "main", "commit_count": 88, "repo_created_at": "2023-05-29T13:38:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 213, "forks": 70, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "955f627f...
961ea09c-b22a-4232-87d4-6f2655e66eb3
Winwinstyle14/Cpp
Thuc Hanh 4.6/ThucHanh4.6.cpp
#include<iostream> int main() { float x, y; std::cout << "Nhap x: "; std::cin >> x; std::cout << "Nhap y: "; std::cin >> y; if (x == 0) { if (y == 0) { std::cout << "x bang 0 " << "\n"; std::cout << "y bang 0 " << "\n"; } else { std::cout << "x bang 0 " << "\n"; std::cout << "y khac 0 "...
ALGO
0.998395
3.737108
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-02-04T04:12: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": "40df496656ca...
2c48d411-d448-4255-b4ea-5883f27fd074
jingyiiiiz/CS3230
PA2/B/Submission.cpp
#include <bits/stdc++.h> #include <iostream> #include <string> #include <vector> #include <algorithm> #include <limits> using namespace std; // io class class FastIO { public: FastIO() { ios_base::sync_with_stdio(false); cin.tie(NULL); } string next() { ...
ALGO
0.999787
3.71066
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2023-02-19T07:30: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": "83833ffea5c5...
72043a3c-a10b-4866-86f8-49f9bd1cf361
saffordium1001/CPSC-231-Algorithms
Lab28/Lab28.cpp
/********************************* * Lab 28 * Created by <NAME> *********************************/ #include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace std; #define TABLE_MAX 21 #include "Node.h" int hash_insert(node* table[], node* p, int id); /**************************...
ALGO
0.958749
3.600646
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2022-01-12T19:50:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "32cc0ae7f87...
0c0ccf27-525e-42cd-b0c7-a4dfbed13e72
ahslxjvhapt12/BOJ
BaekJoon/BaekJoon/백준5639.cpp
#include <iostream> using namespace std; struct BTreeNode { int data; struct BTreeNode* left = NULL; struct BTreeNode* right = NULL; }; class BST { public: BTreeNode* root = NULL; void Insert(BTreeNode* node); void InsertRecur(BTreeNode* root, BTreeNode* node); }; void PostorderTraverse(BTreeNode* bt) { if ...
ALGO
0.999943
4.524284
{ "github_metadata": { "branch": "main", "commit_count": 59, "repo_created_at": "2023-08-16T01:47: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": "a1b62351457...
ac2904c2-7439-4518-8435-d25923e5da0b
sneha015/C-programs
postfix/infixToPostfix.h
#include<iostream> #include<string> #include<ctype.h> #include<stack> using namespace std; class postfix { public: postfix(string& str); //constructor void getInfix(string& str); //Stores the infix expression void showInfix(); //Outputs the infix expression void showPostfix(); //Outputs the postfix expression...
ALGO
0.99982
3.946863
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2014-04-07T17:43: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": "ad00e350e4...