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
07e02090-ebab-4976-b7aa-af6765d8f14a
jwalter229/CS3304
Lab9_Recursion/main.cpp
#include <iostream> using namespace std; //Function Declarations void function_call(int current, int last); double sumover(unsigned int number); void reverseArray(char data[], int fBound, int lBound); int main() { // creating an unsigned int // and uing the int for user input unsigned int userInput; // prompti...
ALGO
0.998593
4.18548
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2018-08-20T15:26: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": "10e12a072c...
73b0a8c0-fe2e-43c8-a54a-1d745a2f661e
susantabiswas/InterviewPrep
Doubly Linked List/Merge_Sort_DLL.cpp
//Merge Sort on Doubly Linked List #include<iostream> using namespace std; struct Node { int data; Node *next; Node *prev; }; class DoublyList { public: Node *head; //head for the list DoublyList() { head = NULL; } Node* create(int); void InsertBegin(int); void Display(); Node* Merge(Node**,Node**); vo...
ALGO
0.999994
5.796035
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2018-01-29T17:14:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 32, "forks": 13, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7737b45...
f994b44f-3d50-4f69-910e-3f3fbc551871
troelstk/AAD
AAD/node.h
// // node.h // DAG // // Created by <NAME> on 29/08/2019. // Copyright © 2019 <NAME>. All rights reserved. // #ifndef node_h #define node_h using namespace std; #include <string> #include <iostream> #include <vector> #include <memory> class node { friend class Tape; friend class number; /...
ALGO
0.935208
3.26578
{ "github_metadata": { "branch": "master", "commit_count": 38, "repo_created_at": "2019-09-10T07:47:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3a8a12da5...
34a81ea1-63e0-4b77-98a4-ca546a6ad253
Ayush351/RadheRadhe
Striver/Arrays-2/MergeOverlappingSubintervals.cpp
/* Problem Statement: Given an array of intervals, merge all the overlapping intervals and return an array of non-overlapping intervals. */ #include<bits/stdc++.h> using namespace std; //#define int long long #define p(i,n,vect) for(int i=0;i<(int)n;++i) {cout<<vect[i]<<" ";} cout<<"\n"; void merge(vector<int>& num...
ALGO
0.999996
4.056336
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2023-01-10T19:28: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": "d6ae93a4c...
3ffb9f71-64b2-4199-a3fe-243f64f5fc59
SummerS-tars/CodeServerCodeStore
CodeDocuments/codes/1_1cpp_basicgrammar/3loopstatement/27homework8.cpp
#include <iostream> using namespace std; int main() { int n ; cin >> n; for ( int i = 1 ; i <= n ; i ++ ) { int x ; cin >> x ; if ( x == 1 ) { printf ("1 is not perfect\n") ; continue; } int sum = 1 ; for ( int j = 2 ;...
ALGO
0.999904
3.581709
{ "github_metadata": { "branch": "master", "commit_count": 45, "repo_created_at": "2024-04-04T04:38:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "1b954d8dc...
8d9d6f11-9d51-4a40-aa7c-fac67bc7f922
UTEC-PE/binary-tree-JonathanLoza
tree.h
#ifndef TREE_H #define TREE_H #include <iostream> #include "node.h" #include "iterator.h" template <typename T> class Tree{ Node<T> *root; int nodos; public: Tree(){ this->root=nullptr; this->nodos=0; }; void insert(T data){ if(!root){ root=new Node<T>{data,nullptr, nullptr}; nodos+...
ALGO
0.937167
4.427439
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2018-09-19T01:40:06.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b98e9c9b58...
371c9fc4-dfd4-4c14-bba2-9cb2b3c4553c
tonycao/CodeSnippets
C-CPP/150/chapter 5/5-6.cpp
//Write a program to swap odd and even bits in an integer with as few //instructions as possible (e.g., bit 0 and bit 1 are swapped, bit 2 and bit 3 are swapped, etc). #include <iostream> #include <string> using namespace std; void print_binary(int x){ string s = ""; for(int i=0; i<32 && x!=0; ++i, x >>= 1){...
ALGO
0.999826
5.623202
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2012-02-28T04:18:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec52cfd89...
2f276118-3e1e-44d5-ac47-d66d69ab6fc8
DivyaMunot/ADS-assignments
Expression_tree.cpp
#include <iostream> using namespace std; typedef struct node { char data; node *left, *right; }NODE; class stack { NODE *st[10]; public: int top; stack() { top = -1; for(int i=0; i<10; i++) st[i] = 0; } void push(NODE *a) ...
ALGO
0.999794
4.17398
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2020-02-16T10:51: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": "21c175770...
c314c1f2-ecf5-447c-bf04-0994349c63f6
yjl9903/XCPC
HDu/attempt/3874.cpp
#include <cstdio> #include <cmath> #include <cstring> #include <algorithm> #define ms(a,b) memset(a,b,sizeof(a)) using namespace std; typedef long long ll; const int maxn = 50000 + 5; const int maxm = 200000 + 5; const int maxc = 1e6 + 5; int n, m, a[maxn], pos[maxn]; ll ans[maxm], tmp, num[maxc]; struct Ope{ int ...
ALGO
0.999937
3.9155
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-03-25T19:33:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1c4767a5effc...
e7da706d-7b10-4b83-bd5a-ffc0224e7ef7
a4org/A4
LeetCode/Array/FindAllDuplicatesinanArray.cpp
/* * LeetCode 442 Find All Duplicates in an Array * Medium * <NAME> * 2021 10.6 */ #include <vector> using namespace::std; class Solution { public: // #1 O(nlogn) sorting vector<int> findDuplicates(vector<int>& nums) { sort(nums.begin(), nums.end()); vector<int> ans; fo...
ALGO
0.999939
5.767951
{ "github_metadata": { "branch": "main", "commit_count": 492, "repo_created_at": "2021-05-11T18:19:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ddd05afcd57...
6c63a6a8-9bb0-4ac5-a201-bf98ef272f54
Tnwoxa1/PROGPROGPROG
MS-4/Functions.cpp
#include "pch.h" using namespace std; long double pi = 3.141592653589793238; complexld I(0., 1.); long double Gauss(long double x, long double y, long double muX, long double sigmaX, long double muY, long double sigmaY) { return exp(-Pow2((x - muX) / (2 * sigmaX))) * exp(-Pow2((y - muY) / (2 * sigmaY))); } templat...
ALGO
0.999739
3.244857
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2024-10-30T15: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": "e7f8ed23bb2...
0114dde1-013a-4401-89d4-4f0104ffcbf7
Nhatthang27/CompetitiveProgramming
Codeforces/Codeforces-Round-933/G.cpp
#include <bits/stdc++.h> #define int long long #define fu(i, a, b) for (int i = a; i <= b; i++) #define fd(i, a, b) for (int i = a; i >= b; i--) #define pii pair<int, int> #define tpl tuple<int, int, int> #define pll pair<ll, ll> #define ff first #define ss second using namespace std; void solve() { int n, m; ...
ALGO
0.999928
4.70196
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2024-08-27T03:40: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": "f20ac3887192...
edf6cf58-287e-465e-a4a1-f08c14e24f4e
hermes76/Programacion-Competitiva
CodeForces/C_Fishingprince_Plays_With_Array.cpp
//libraries #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> //namespaces //using namespace __gnu_pbds; using namespace std; //templates /* template<typename T> using ordered_set= tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>; templat...
ALGO
0.999565
4.103222
{ "github_metadata": { "branch": "main", "commit_count": 398, "repo_created_at": "2021-05-09T03:02:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "4402c71f2e...
1cc3f437-42ab-4d23-97df-a5e761b7e7b9
shangjiaxuan/garfieldpp
Source/ComponentNeBem3d.cc
#include "Garfield/ComponentNeBem3d.hh" #include <algorithm> #include <cfloat> #include <cmath> #include <fstream> #include <iomanip> #include <iostream> #include <numeric> #include <set> #include <vector> #include "Garfield/FundamentalConstants.hh" #include "Garfield/GarfieldConstants.hh" #include "Garfield/Polygon....
ALGO
0.995719
5.648
{ "github_metadata": { "branch": "win-master", "commit_count": 2193, "repo_created_at": "2022-10-10T13:55: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": "385...
d8c8dec9-b864-40c9-bf62-323bc3831280
alexandraback/datacollection
solutions_2749486_0/C++/pelajesh/pogo.cpp
#include <iostream> #include <fstream> #include <map> #include <vector> #include <algorithm> using namespace std; ifstream sf("pogo.in"); ofstream vf("pogo.out"); map<pair<int, int>, char > been; map<pair<int, int>, int > turn; vector<pair<int, int> > q; int t; int tx, ty, x, y; string GetPath() { int curx = tx,...
ALGO
0.999993
4.297191
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2017-03-08T11:33:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d4fa87bb1...
5d78ffbe-2e36-4717-b501-384a69fddd31
albertnez/uva-online-judge
problems/11584.cc
#include <iostream> #include <cstring> using namespace std; const int inf = 1e9; string s; const int maxn = 1001; int pal[maxn][maxn]; int memo[maxn]; void pre() { memset(pal, 0, sizeof pal); int n = s.size(); for (int i = 0; i < n; ++i) { int j = 0; while (i-j >= 0 and i+j < n and s[i-j] == s[i+j]) { ...
ALGO
0.999892
4.317785
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2014-09-27T18:12: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": "8ab63cee75...
beff630f-5e06-4298-b8c4-5957c893cab6
mmmonkeytao/oscl
clustering/include/Vertex.h
#ifndef VERTEX_H #define VERTEX_H #include <vector> #include <list> #include <iostream> #include <iterator> #include <cstdint> #include <Eigen/Dense> namespace oscl{ class Vertex { public: typedef enum {SATELLITE, CENTER} Type; // Constructor Vertex (); // Destructor vir...
TOOL
0.952049
5.290739
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2015-01-25T17:08:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "951cb6053...
654ec6e8-399a-4cf9-9ad8-e1f539a1d8f6
PHM1605/cpp-primer-lippman
exercise3_17.cpp
// Read words from 'cin' and store in 'vector'; change to uppercase and print vector out // Input: typing 'This is a test string' // Output: 0 0 0 1 1 0 2 3 2 4 1 #include <iostream> #include <vector> using std::vector; using std::string; using std::cin; using std::cout; using std::endl; int main() { vector<strin...
TOOL
0.989148
4.395235
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2025-06-03T17:05: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": "59f30547b18...
22017ba7-6276-4031-8988-4404f40b46d3
Neldaaa/Homework2_DataStructures
question4.cpp
// Name: NELDA // Student ID: 1123564 // Date of submission: 2024/11/26 #include <iostream> #include <vector> #include <algorithm> using namespace std; // Task structure containing profit and deadline struct Task { int profit, deadline; Task(int p, int d) : profit(p), deadline(d) {} }; // Comparator to sort ...
ALGO
0.999991
6.167549
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2024-11-23T03:35:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ead60d4dfd8...
1ff73d4d-2ca3-408f-a02e-5f43ce4935c8
AEC2022-Team-T-T/ai-edge-contest-pointpillars
kv260/src/get_bboxes.cpp
// Copyright 2022 <NAME>, Inc. // All rights reserved. // This implementation is based on MMDetection3D // https://github.com/open-mmlab/mmdetection3d/blob/v0.18.1/mmdet3d/models/dense_heads/centerpoint_head.py #include "point_pillars/get_bboxes.hpp" #include <math.h> #include <stddef.h> #include "point_pillars/bbo...
DATA
0.997765
6.53237
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-04-03T11:18:29.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4ac6e347668d2...
02f51d99-711a-4e29-9470-500c43f3f668
Wanncye/LeetCoding
6.binaryTree/isSymmetric.cpp
#include<iostream> #include<vector> #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) :...
ALGO
0.999989
5.971144
{ "github_metadata": { "branch": "master", "commit_count": 277, "repo_created_at": "2022-02-17T12:25: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": "b23684dc...
360651ef-e7ff-404a-a892-c91c3a1b9d7e
guptanikshay/DSA
030_count_inversions.cpp
// PS: Count the number of inversions in an array // BRUTE FORCE: Iss qstn mein hume ye batana hai ki ek array mein kitne aise pairs hai jisme bada element chhote element ke pehle aa rha hai. Jaise {1, 3, 2, 3, 1} array diya hai to isme total 3 inversions hai ({3, 2}, {3, 1}, {3, 1}). Basic method use kre to hum bas ha...
ALGO
0.999977
5.431963
{ "github_metadata": { "branch": "master", "commit_count": 44, "repo_created_at": "2023-07-03T20:01: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": "397e627d6...
e206e2e5-c45b-4306-a6ab-2a49899c33f0
RavEngine/RavEngine
deps/resonance-audio/resonance_audio/geometrical_acoustics/path_tracer.cc
/* Copyright 2018 Google Inc. All Rights Reserved. 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 ...
ALGO
0.999083
7.001277
{ "github_metadata": { "branch": "master", "commit_count": 2900, "repo_created_at": "2020-08-05T21:53:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 749, "forks": 49, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "72db4...
95a7c335-635d-4930-b2c1-de6d35ee9b00
yotamhr/Pacman
BestGhost.cpp
#include "BestGhost.h" void BestGhost::ghostMove() { int x = p.getX(); int y = p.getY(); int mDist = minDistance(x, y); int i, j; //Up if ((minDistance(x, y - 1) < mDist) && (_board->getPos(y-1,x)!='#') && (_board->getPos(y - 1, x) != '^')) { i = 0; j = -1; doActualMovement(x, y , i , j ,'$'); } //down e...
ALGO
0.909634
3.954368
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-12-19T12:58: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": "60830bc7577e...
970b1b05-dbd3-4c7a-8e6f-e59d391295ee
haiwangcat/ROSE
projects/PolyhedralModel/projects/spmd-generator/common/spmd-generator.cpp
#include "common/spmd-generator.hpp" #include "common/spmd-driver.hpp" #include "common/spmd-tree.hpp" #include "common/comm-analysis.hpp" #include "common/array-analysis.hpp" #include "common/placement.hpp" #include "toolboxes/rose-toolbox.hpp" #include "toolboxes/algebra-container.hpp" #include "rose.h" SgStateme...
TOOL
0.997763
4.495388
{ "github_metadata": { "branch": "master", "commit_count": 20462, "repo_created_at": "2012-12-22T20:27:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4277e6...
d1f3c301-edd6-4a68-90b3-24bc8da24680
kilian-hu/hackerrank-solutions
certificates/problem-solving-intermediate/user-friendly-password-system/stub.cc
#include <bits/stdc++.h> using namespace std; string ltrim(const string &); string rtrim(const string &); vector<string> split(const string &); /* * Complete the 'authEvents' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accepts 2D_STRING_ARRAY events as parameter. */...
ALGO
0.999419
5.109861
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2021-09-15T12:09:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 420, "forks": 178, "issues": 5, "pull_requests": 4 }, "file_meta": { "content_id": "335c25...
7d04dc6a-4cda-498b-9093-080fd4d4a749
Nikita6226/DS-Code
Assignment 11/linkedList.h
//#ifndef LINKED_LIST_H //#define LINKED_LIST_H // //#include "bookNode.h" //#include <iostream> //using namespace std; // //class LinkedList { //private: // BookNode* head; // Head of the linked list // int size; // Size of the list // //public: // // Constructor // LinkedList(); // // // Destruct...
TOOL
0.999516
6.240085
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-02-18T17:05: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": "69da8dabc53f...
8aebb1b7-54a5-458b-b56b-2635a075e452
sifaserdarozen/CodeTrain
cci/CheckPermutation/src/code.cpp
#include <algorithm> #include <cmath> #include <string> #include <vector> #include <iostream> /** @brief function checks if string is permutation of another * * With using an utility container * time: O(N), memory: O(1) * * @param first string to process * @param second string to proces * @retun boolea...
ALGO
0.999849
6.024324
{ "github_metadata": { "branch": "master", "commit_count": 175, "repo_created_at": "2016-06-22T20:10:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 23, "pull_requests": 0 }, "file_meta": { "content_id": "d4646a4...
f759d465-e633-4d5a-994f-e9efda8bceed
nganngants/BTree-Visualization
B-TreeVisualization/BNode.h
#pragma once #include <iostream> #include <vector> #include <algorithm> #include <QString> using namespace std; #define pb push_back #define sz(a) (int)a.size() #define fu(i,a,b) for(int i=a;i<=b;++i) #define fd(i,a,b) for(int i=a;i>=b;--i) class BNode { private: vector <int> keys; vector <BNode*> subset; ...
ALGO
0.998709
3.977721
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2022-05-28T15:44:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4f3e1cb5a85...
a1cf0efc-569c-4ab8-8dbb-a87d9ce28e1f
Bernardo-Rodrigues/programming-logic
URI-Cpp-main/1047 - Game Time with Minutes.cpp
#include <iostream> using namespace std; int main() { int HI,MI,HF,MF,duracaoH,duracaoM; cin >> HI >> MI >> HF >> MF; if (HI < HF){ if(MI == MF){ duracaoH = HF - HI; duracaoM = MF - MI; } if(MI < MF){ duracaoH = HF - HI; duracaoM ...
ALGO
0.999796
3.836605
{ "github_metadata": { "branch": "main", "commit_count": 108, "repo_created_at": "2021-09-07T22:07:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5569bc903b...
6a9db47f-883e-4432-859e-d687ce8f065d
Qreaj/DiscordJoiner
main.cpp
#include <iostream> #include <fstream> #include <string> #include <vector> #include <cstring> #include "json.hpp" extern "C" { #include "tls-client.h" } std::vector<std::string> readTokensFromFile(const std::string& filename) { std::vector<std::string> tokens; std::ifstream file(filename); if (!file.is_o...
TOOL
0.919383
5.292797
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-07-19T15:54: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": "794afee57552...
477e46fd-a944-4982-8d88-490ccf6666d7
JustDoIt0910/TankTrouble
util/Math.cc
// // Created by zr on 23-2-8. // #include "Math.h" #include <cmath> #include <random> #include <utility> #include <algorithm> namespace TankTrouble::util { double rad2Deg(double rad){return rad * 180 / M_PI;} double deg2Rad(double deg){return deg * M_PI / 180;} double vector2Angle(const util::Vec& v) ...
TOOL
0.989023
5.768326
{ "github_metadata": { "branch": "main", "commit_count": 58, "repo_created_at": "2023-02-04T09:22:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 19, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7f0c2dff35...
48b4752d-4425-4a50-9672-2ac89064ae14
nagarathnam200/Parallel-LZW
Lzw-dead/lzw.cpp
#include <string.h> #include <iostream> #include <fstream> #include <omp.h> #include "dictionary.h" #define COUNT 5 #define LOWERA 97 #define MAXPROCS 256 using namespace std; dictionary d[MAXPROCS]; vector<int> compressData(string source, int start, int end, int proc) { int length = source.length(); if(end > l...
ALGO
0.998831
3.942522
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2012-04-08T01:04:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f92398c49...
cecfd38c-920e-498a-8158-29b3d2a149b1
rohakdebnath/CodeForces-Solutions
main.cpp
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define UNSYNC ios::sync_with_stdio(false); cin.tie(nullptr); #define sci(x) static_cast<int>(x) #define all(x) x.begin(), x.end() #define rep(i, ini, x) for (int i = ini; i < x; ++i) #define per(i, fin, x) for (int i = fin; i >= x; --i) #define VI ...
ALGO
0.999917
4.088389
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-07-17T12:11: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": "75c3ce6fbd...
c6417dd5-70c7-4108-b438-a6e2f59f7de1
crypto-ninjaturtles/montgomery4x
avx512-5limb-4x2/thirdparty/hp-ecc-vec-master/include/faz_ecdh_avx2.h
/** * Copyright 2017 <NAME> * This file is part of faz_ecc_avx2. * * faz_ecc_avx2 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later ...
TOOL
0.983538
6.681286
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-02-13T09:35:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "18400dff47...
9799d23e-4965-4d9e-828b-6058b88389cb
LauraZafra/Data_Structures_practices
submission_4/src/partida_letras_eficiente.cpp
#include <iostream> #include <fstream> #include "letters_set.h" #include "dictionary.h" #include "letters_bag.h" #include "solver.h" #include <chrono> using namespace std; LettersSet readFromFileLetter(const char filename[]){ ifstream f; LettersSet l; f.open(filename); if(!f) cout << "Error a...
ALGO
0.937127
3.942694
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-11-09T14:20: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": "39311dec8db3...
0e023673-c098-4f71-93b9-8985c0221d26
Beanshie/Informatyka
spr2.cpp
#include <iostream> using namespace std; int NWD(int a, int b) { while (a!=b) { if(a>b) a-=b; if(a<b) b-=a; } return a; } void dodaj(int L1, int M1, int L2, int M2) { int a, b, C, L3, M3; a = L1 * M2 + L2 * M1; b = M1 * M2; C = a / b; L3 = (a%b)/NWD(a,b); ...
ALGO
0.999811
5.017252
{ "github_metadata": { "branch": "2klasa", "commit_count": 20, "repo_created_at": "2021-11-25T20:35: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": "e846e57f8...
6b809f67-226c-4fdb-8568-23cbdc2b6906
imulan/procon
codeforces/1203B.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);++i) #define all(x) (x).begin(),(x).end() #define pb push_back #define fi first #define se second #define dbg(x) cout<<#x" = "<<((x))<<endl template<class T,class U> ostream& operator<<(ostream& o, const pair<T,U...
ALGO
0.999637
3.742153
{ "github_metadata": { "branch": "master", "commit_count": 2571, "repo_created_at": "2015-11-25T03:18:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 27, "pull_requests": 0 }, "file_meta": { "content_id": "082fb1...
b129ca64-bc09-48a1-885d-54becfe23ac0
VimForLaNie/C-Coding-Practice
c++/Programming/10/Sewer.cpp
#include <bits/stdc++.h> using namespace std; int main(){ queue < pair < pair<int,int>,int> > q; int a,b; scanf("%d %d ",&a,&b); char Map[a][b]; int count[a][b]; memset(count, 0, sizeof(count)); for (size_t i = 0; i < a; i++) { for (size_t j = 0; j < b; j++) { ...
ALGO
0.999726
3.180545
{ "github_metadata": { "branch": "master", "commit_count": 81, "repo_created_at": "2019-09-22T11:49: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": "d377d1348...
c672b071-fc6c-43b3-82cf-7baced10dd7f
113bommy/LogicalErrorFixCodeT5
logicalErrorFix_CodeT5_no_LineNumber/model/cpp/cpp_source/source_552.cpp
#include <bits/stdc++.h> using namespace std; long long n, m, C[40][40], cnt[40][2], dp[40][40][2], ans; inline void add(long long &u, long long v) { u += v; u %= 1000000007; } int main() { long long i, j; cin >> n; for (i = 1; i < n; i <<= 1, m++) ; for (i = 0; i <= m; i++) { C[i][0] = C[i][i] = 1; for (j = 1; j < i; ...
ALGO
0.999995
3.844422
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2024-03-14T17:56: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": "2ded1e385be...
2b102c7c-01c8-4498-8132-e446e02a3ed7
jmestanza/ideas
CompetitiveProgramming/Xtreeme/Xtreeme15/explotaition/main.cpp
#include <iostream> using namespace std; long long mat[1000+5][1000+5]; long long dp[1000+5][1000+5]; long long max_sum = 0; void NumMatrix(long long R, long long C) { for (long long r = 0; r < R; r++) { for (long long c = 0; c < C; c++) { dp[r + 1][c + 1] = dp[r + 1][c] + dp[r][c + 1] + mat[...
ALGO
0.996754
3.717233
{ "github_metadata": { "branch": "master", "commit_count": 112, "repo_created_at": "2018-03-25T18:55:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 4 }, "file_meta": { "content_id": "4955d3ed...
898adde6-2a75-4538-8a6d-027d48643b05
tkw1536/MV2016
hw7/src/lm_circle.cpp
#include <string> #include <stdio.h> #include <math.h> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <opencv2/opencv.hpp> #include "lm_circle.hpp" using namespace std; using namespace cv; CircleFunctor::CircleFunctor(istream& datastream): DenseFunctor<double>(CIRCLE_PARAMS), _x...
ALGO
0.997985
5.24525
{ "github_metadata": { "branch": "master", "commit_count": 43, "repo_created_at": "2016-09-15T06:17: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": "95ad9e7b6...
b1920dad-ecdf-4238-baee-00d69a5eee6b
M4573R/competitive-programming-archive
timus/volume-01/rope.cpp
#include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; constexpr unsigned int precision {2}; constexpr double pi {3.14159265358}; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } struct Point { double x; double y; ...
ALGO
0.999564
5.513176
{ "github_metadata": { "branch": "master", "commit_count": 1407, "repo_created_at": "2015-09-01T07:44:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 29, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f179d...
01b62d76-f49e-410a-b9ea-d51b107b1ed5
ayush-abq/DSA-
DSA/College Programs/Leet.cpp
#include <bits/stdc++.h> using namespace std; void modifyString(string &s, string &s1, string &s2) { string ans = ""; for (int i = 0; i < s.length(); i++) { int k = 0; if (s[i] == s1[k] && i + s1.length() <= s.length()) { int j; for (j = i;...
ALGO
0.999596
3.53533
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2023-01-06T20:16: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": "83dc0471d192...
3759c725-537f-49ba-9572-a7917d977e20
larc/competitive_programming
beecrowd/1284.cpp
// 1284 - Cellphone Typing #include <cstdio> #include <cstring> #define N 100000 #define M 1000026 using namespace std; char words[N][81]; struct trie { trie * sons[26]; int size; bool end; void reset() { memset(sons, 0, sizeof(sons)); size = 0; end = 0; } }; trie tree[M]; int s; void insert(char * ...
ALGO
0.994564
3.241407
{ "github_metadata": { "branch": "main", "commit_count": 354, "repo_created_at": "2016-11-19T23:51:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b7fc414a8b...
e77d7d51-5645-401f-bca8-e949e4ff0e55
Avinash-singh2/DSAQuestions
Dynamic_Program/DP_Subsequence/my_knapsack.cpp
#include <bits/stdc++.h> // Function to solve the 0/1 Knapsack problem using memoization int knapsackUtil(vector<int>& wt, vector<int>& val, int ind, int W, vector<vector<int>>& dp) { //base case if(ind==0){ if(wt[ind]<=W) return val[ind]; return 0; } if(dp[ind][W]!=-1)return dp[...
ALGO
0.999993
5.552228
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-11-10T04:56:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "774adbe93d77...
5609149a-c06b-4bc6-bd94-2e72dc9c6c69
matinJ/AnnClassifier
src/FileUtils.cpp
#include "FileUtils.h" #include "CBrowseDir.h" #include <fstream> using namespace cv; using namespace std; void FileUtils::ReadMatFile(std::vector<std::string>& matStrs, std::vector<std::string>& matNames, std::string _path) { ifstream istream; istream.open(_path, ios::in); char tmp[50]; stringstream ss; while (!...
TOOL
0.960268
4.41474
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2015-09-17T07:03:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6998c412b9...
01faaf1c-2157-4632-84ae-a9ecd90c1ea4
ajinkyabawaskar/learning-dsa
Codechef/START15B/INTCONCA.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define MOD LLONG_MAX ll mul(ll x, ll y) { ll res = x * y; return (res >= MOD ? res % MO...
ALGO
0.999779
4.845698
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2020-05-18T14:58: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": "fe33f56a2...
1d25fbce-994a-49a1-9388-6eeba4091f7b
wjgan7/comp
milktemp.cpp
//foreverbronze //http://usaco.org/index.php?page=viewproblem2&cpid=341 //2/10/2015 #include <iostream> #include <fstream> #include <algorithm> #include <cmath> #include <vector> #include <string> using namespace std; #define in1 "data.in" #define in2 "milktemp.in" #define out1 "data.out" #define out2 "milktemp.out"...
ALGO
0.998991
3.218099
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2016-12-29T05:25:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "451c77633e...
32dc4c1e-ce05-4267-85cc-b5c973860784
Erw1n-git/BoP_Labs
Lab_3/task3/MaxRootTemplate.h
#ifndef MAXROOT_TEMPLATE_H #define MAXROOT_TEMPLATE_H #include <iostream> #include <cmath> template <typename Func> double firstDerivative(const Func f, double x, double eps) { return (f(x + eps) - f(x)) / eps; } template <typename Func> double secondDerivative(const Func f, double x, double eps) { double y1...
ALGO
0.996913
4.979414
{ "github_metadata": { "branch": "main", "commit_count": 32, "repo_created_at": "2023-04-06T11:10: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": "572de52c760...
54b1fa75-fb0a-47fe-8ca5-228ff5223b29
omonimus1/competitive-programming
Leetcode/sort_colors.cpp
""" Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue. We will use the integers 0, 1, and 2 to represent the color red, white, and blue, respectively. You must solve this problem wi...
ALGO
0.999965
5.885667
{ "github_metadata": { "branch": "master", "commit_count": 428, "repo_created_at": "2020-01-17T11:13:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 972, "forks": 147, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "93a7...
563310f8-811e-4915-a2e3-57578e498a9b
abhimittal4white/practice
queue/CircularQueueUsingArray.cpp
#include<iostream> using namespace std; int queue[9999]; int f = -1; int r = -1; int n; void enqueue(int item) { if(f==-1 && r==-1) { f=0; r=0; queue[r]=item; } else if((r+1)%n == f) { cout << "Queue Overflow!!" << endl; return; } else { r = (r+1)%n; queue[r] = item; } } void dequeue() { if(f...
ALGO
0.998529
3.300836
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2024-06-05T19:52:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "00e4e81d805...
6eddb914-7c28-4107-bc19-6d7d9131d6f4
System-Software-Practice-3/Term-Project
TextRec/TextRec_Test.cpp
#include <iostream> #include <locale> #include "TextRec.h" using namespace std; int main(){ // TextRec_Test.cc file should be encoded by utf-8 // C++11 u16string text = u"이 글은 ★Test★를 위한 글입니다. 잘 읽힐까요?"; cout << kiwi::utf16To8(text) << '\n'; kiwi::Kiwi kiwi = kiwi::KiwiBuilder(cbr::MODEL_PATH).build...
TEST
0.938877
4.727344
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2021-11-01T06:59:55.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "31092edfc9a0...
fddd8321-d019-4b88-9a38-24c7d4e04664
slyandys/test_triangleMesh
LinearFemDeformation.h
#ifndef LINEAR_FEM_DEFORMATION #define LINEAR_FEM_DEFORMATION #include "TriangleMesh.h" #include "tetgen.h" #include "MeshSimplification.h" #include "CorrespondSurfaceAndVolumetricTemplate.h" #include "RBFDeform.h" #include <vnl/vnl_vector.h> #include <vnl/vnl_matrix.h> #include <vnl/vnl_cost_function.h> #include <v...
ALGO
0.999319
5.414165
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2014-05-23T14:26:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a5a7868a09...
d3536234-91ee-4e75-93a1-4219e5b21e98
syhk/codeing
leetcodework/21.合并两个有序链表.cpp
/* * @lc app=leetcode.cn id=21 lang=cpp * * [21] 合并两个有序链表 */ // @lc code=start /** * 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) ...
ALGO
0.999917
6.049109
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-11-20T00:02: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": "74d505960b66...
5cee889b-ba4f-4f67-95eb-082c9d5b5fc3
suzon445/30DAYS-Challenge
B_Crafting.cpp
#include<bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007 void solve(){ int n; cin >> n; int a[n],b[n]; for(int i = 0; i < n; i++){ cin >> a[i]; } for(int i = 0; i < n; i++){ cin >> b[i]; } int cnt = 0; for(int i = 0; i < n; i++){ ...
ALGO
0.999991
3.622584
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-02-20T04:05: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": "5666d9c03cf6...
b2e1f2e9-f01a-4d3d-b415-77c098648ceb
taichi-dev/taichi
misc/baselines/cpu_memory_bound.cpp
// #include <mkl.h> #include <cstdlib> #include <cstdio> #include <cmath> #include <vector> #include <unistd.h> #include <cstring> #include <sys/time.h> double get_time() { struct timeval tv; gettimeofday(&tv, nullptr); return tv.tv_sec + 1e-6 * tv.tv_usec; } constexpr int n = 1024 * 1024 * 1024 / 4; int main()...
TOOL
0.98551
4.540067
{ "github_metadata": { "branch": "master", "commit_count": 10886, "repo_created_at": "2016-11-24T10:00:05.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 27285, "forks": 2351, "issues": 851, "pull_requests": 46 }, "file_meta": { "content_id"...
485359c4-5936-49b8-8acc-064d32c0cc93
llovett/2dcube
matrix.h
/* * matrix.h * * Defines mathematical functions on matrices. * * Author: <NAME> * */ #include <vector> using std::vector; class Matrix { private: int rows, columns; vector<vector<float> > entries; vector<float> getRow(int) const; vector<float> getColumn(int) const; // Constructor helper ...
TOOL
0.969774
5.940624
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2012-10-14T02:31: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": "bab3041c7...
76d634d4-7d93-472e-b244-41de4de78e52
singhsanket143/CppCompetitiveRepository
GeeksForGeeks/RecursionAndBacktracking/Subsets.cpp
#include <iostream> #include <vector> using namespace std; void backtrack(vector<int>& nums, int start, vector<vector<int>> powerset, vector<int> subset){ //powerset.push_back(subset); for(int i = start; i < nums.size(); i++){ // recording all subsets that include nums[i] ...
ALGO
0.999855
5.142317
{ "github_metadata": { "branch": "master", "commit_count": 304, "repo_created_at": "2018-06-26T07:06:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 348, "forks": 160, "issues": 1, "pull_requests": 4 }, "file_meta": { "content_id": "bcb7...
69dc3b90-9351-4b0a-b067-cc6b1e915810
przymyslaw99/algorithms_cpp
algoritms/binary_insertion_sort.cpp
#include <iostream> #include <cstdlib> using namespace std; int tab_size = 10; int array[10]; int elem; int main() { for(int i = 0; i < tab_size; i++) { array[i] = (rand() % 50) + 1; } cout << "Numbers before sorting:" << endl; for (int i = 0; i < tab_size; i++) { cout << array[i] << endl; } for(int i =...
ALGO
0.999976
4.235775
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-03-28T12:47:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d7cefaa6986...
380516d7-325e-4ba9-96bb-6082cdb487c5
SH-anonta/Competitive-Programming-Solutions
Code Forces/Code forces 733A - Grasshopper And the String.cpp
//#Name: <NAME> #Problm: #include <algorithm> #include <iostream> #include <fstream> #include <sstream> #include <cstring> #include <cstdlib> #include <cstdarg> #include <utility> #include <bitset> #include <cctype> #include <cstdio> #include <vector> #include <string> #include <cmath> #include <ctime> #include <queue...
ALGO
0.999635
3.124357
{ "github_metadata": { "branch": "master", "commit_count": 286, "repo_created_at": "2016-04-01T13:24:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 19, "forks": 22, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "feec4f...
c9be6b9e-5699-41e1-be0a-627fc6df8363
xmmr23x/ed
p05/make_heap/test_heapsort.cpp
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <exception> #include <vector> #include "heap.hpp" #include "heapsort.hpp" /** @brief Load a vector of items from input stream. * input format: * <size> <item0> ... <item_size-1> */ template<class T> std::istream& load_vector(std::i...
ALGO
0.986594
4.813724
{ "github_metadata": { "branch": "master", "commit_count": 55, "repo_created_at": "2019-03-05T19:34: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": "14f5452de...
b71ca073-29d8-40ee-8e8a-96484fdc09b3
varshney565/My-LeetCode-Submissions
Maximum path sum in matrix - GFG/maximum-path-sum-in-matrix.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution{ public: int maximumPath(int n, vector<vector<int>> Matrix) { int dir[][2] = {{1,0},{1,-1},{1,1}}; vector<vector<int>> dp(n,v...
ALGO
0.999733
5.619882
{ "github_metadata": { "branch": "main", "commit_count": 1181, "repo_created_at": "2022-08-06T12:17: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": "439f4dc82...
af6b49f8-a3eb-401a-aa4e-c27c1755784d
xiaoy/CPrimer
lfwu/chapter11/31_erase_element.cc
// ------------------------------------------------------------------- // Author: lfwu // Date: January-05-2014 // Note: // Email:<EMAIL> // Blog:http://blog.csdn.net/hackmind // ------------------------------------------------------------------- #include <iostream> #include <sstream> #include <string> #include <map> u...
TOOL
0.997693
4.114689
{ "github_metadata": { "branch": "master", "commit_count": 84, "repo_created_at": "2013-07-23T09:52:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f2e478601...
2b521b93-3a1f-4e4a-a6be-6d3399c05e8e
SeungGwan123/Programmers
프로그래머스/unrated/250134. [PCCP 기출문제] 4번 / 수레 움직이기/[PCCP 기출문제] 4번 / 수레 움직이기.cpp
#include <string> #include <vector> #include <bits/stdc++.h> using namespace std; pair<int,int> direction[4] = {{0,1},{-1,0},{1,0},{0,-1}}; int answer = 0; int result = 100000; void bbfs(pair<int,int> r_start,pair<int,int> b_start,vector<int> red_visit[],vector<int> blue_visit[],pair<int,int> r_end,pair<int,int> b_end...
ALGO
0.99987
4.869609
{ "github_metadata": { "branch": "main", "commit_count": 172, "repo_created_at": "2023-08-02T13:00: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": "82f7b81e22...
e8ee3830-e8ae-428b-b1b6-476825b3aa56
WEGFan/Algorithm-Contest-Code
contests/2018-CCPC-Jilin/HDU 6557 C.cpp
#include <iostream> #include <cstring> #include <vector> #include <unordered_map> using namespace std; const int N = 1e6 + 7; vector<int> num[N]; unordered_map<int, int> rk; int n, cnt, flag[N], arr[N], ok; int solve(int now, long long res) { while (now <= n) { int SIZE = (rk.count(now) ? num[rk[now...
ALGO
0.999968
3.822122
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-12-19T11:49:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8580bd0647...
efd9889f-5e3d-4d75-aef4-dcb700b5b21a
m0joonKim/Algorithm_PS
백준/Gold/30405. 박물관 견학/박물관 견학.cc
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; long long N, M, K; long long MAX = -1; long long cnt[200001] = { 0, }; long long sumCnt[200001] = { 0, }...
ALGO
0.999976
3.376176
{ "github_metadata": { "branch": "main", "commit_count": 62, "repo_created_at": "2024-03-11T13:34: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": "7f5df407f4a...
f510171b-2221-4aa2-ad29-36a406273247
Shubhamp6/DSA-CPP
Linked list/implimentation.cpp
#include <bits/stdc++.h> using namespace std; class Node { public: int data; Node *next; Node() { data = 0; next = NULL; } Node(int data) { this->data = data; this->next = NULL; } }; class linkedList { public: Node *head; linkedList() { head =...
ALGO
0.998913
4.323396
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-06-06T05:40: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": "202d940b971d...
c2e9f1f2-2a77-4e69-8573-41317f202012
ZhuGuanyu/Leetcode
LinkList/25_reverseNodesInKGroup.cpp
/** * ID: 25 * Name: Reverse Nodes in K-Group * Data Structure: Linked List * Time Complexity: * Space Complexity: * Tag: LinkList * Difficult: Hard * Problem: * Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. * If the number of nodes is not a multiple ...
ALGO
0.999941
5.035922
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2015-03-28T01:06:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9fa473a4a...
c2f0cd32-500f-4023-b523-9d56e436d7c0
gustavomuller99/Algo
Contests/[I] Educational Codeforces Round 162/Find B/main.cpp
#include <bits/stdc++.h> using namespace std; #define ll unsigned long long int main() { int t; cin >> t; while (t--) { int n, q; cin >> n >> q; vector<ll> a(n + 1), cnt(n + 1); for (int i = 1; i <= n; ++i) { cin >> a[i]; if (a[i] == 1) cnt[i]++; ...
ALGO
0.999855
3.871937
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-05-25T04:46:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "72968e6b5182...
85a7888f-6428-4801-82d5-ef606b1b6ecf
dinhphu2k1-gif/TTUD_codeforces
Midtern/B.cpp
#include <bits/stdc++.h> using namespace std; int N, K, S; vector <int> a; long long res = 0; int cmin = INT_MAX; void input(){ cin >> N >> K >> S; int tmp; for (int i = 0; i < N; i++){ cin >> tmp; a.push_back(tmp); } sort(a.begin(), a.end()); } void solve(int t, int cnt, int w){...
ALGO
0.99973
4.0047
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2022-01-19T14:31: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": "2fce42cd36...
af846fb9-e5d1-436a-a730-8f7fe3a7caf3
InsightSoftwareConsortium/ITK
Modules/Segmentation/SignedDistanceFunction/include/itkPCAShapeSignedDistanceFunction.h
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
ALGO
0.998869
7.444521
{ "github_metadata": { "branch": "main", "commit_count": 57165, "repo_created_at": "2010-07-27T15:48:04.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1517, "forks": 701, "issues": 268, "pull_requests": 49 }, "file_meta": { "content_id": "a...
c92bb100-fa47-4102-9435-2bced5da5046
networkit/networkit
networkit/cpp/community/AdjustedRandMeasure.cpp
#include <networkit/community/AdjustedRandMeasure.hpp> #include <networkit/community/PartitionIntersection.hpp> double NetworKit::AdjustedRandMeasure::getDissimilarity(const NetworKit::Graph &G, const NetworKit::Partition &zeta, ...
ALGO
0.993566
5.711058
{ "github_metadata": { "branch": "master", "commit_count": 9146, "repo_created_at": "2017-02-04T13:04:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 811, "forks": 235, "issues": 23, "pull_requests": 24 }, "file_meta": { "content_id": "98...
82a1ee67-d963-43c3-984a-1b289df36183
KratosMultiphysics/Kratos
applications/FluidDynamicsApplication/custom_constitutive/bingham_2d_law.cpp
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // System includes ...
ALGO
0.985977
5.445704
{ "github_metadata": { "branch": "master", "commit_count": 106408, "repo_created_at": "2017-02-13T10:58:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1141, "forks": 265, "issues": 381, "pull_requests": 258 }, "file_meta": { "content_id"...
e3ce9f21-25d2-42e2-87ba-90d5f2c98a86
murnanedaniel/athena
Tracking/TrkFitter/TrkiPatFitterUtils/src/FitMatrices.cxx
/* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ ////////////////////////////////////////////////////////////////////////////// // class FitMatrices // Storage and manipulation of matrices during track fitting // (note the actual matrices are structs (FitMatrix.h) to give faster execut...
ALGO
0.996515
5.69455
{ "github_metadata": { "branch": "21.0-mc16a", "commit_count": 11279, "repo_created_at": "2023-05-19T08:30: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": "9a...
feafc08c-d015-4e1c-ac2c-2e47ae330ed0
shishirkj/DSA
HashMap/Intersection_of_two_arrays.cpp
/* Question- Intersection of two arrays Given two arrays a[] and b[] respectively of size n and m, the task is to print the count of elements in the intersection (or common elements) of the two arrays. For this question, the intersection of two arrays can be defined as the set containing distinct common elements betwee...
ALGO
0.999933
5.649299
{ "github_metadata": { "branch": "main", "commit_count": 282, "repo_created_at": "2022-12-28T12:58:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "463b8c0c02...
e0c4b1ec-a366-47df-b21e-cac57d7960c8
stdcall0/code
LG/P3176.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 505, M_sz = 5, MOD = 998244353; int m, n; string s; struct mat; void print_mat(const mat&); struct mat { const int &sz; ll a[M_sz][M_sz]; mat() : sz(m) { memset(a, 0, sizeof a); } mat(const mat &r) : sz(m) { ...
ALGO
0.999995
4.17766
{ "github_metadata": { "branch": "main", "commit_count": 100, "repo_created_at": "2021-02-03T01:15: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": "2e17e291b8...
c8d72e08-4721-43d6-8704-de4000e9ce90
Delta2904/Codeforces
1760C - Advantage.cpp
// Codeforces | ThemeCP Training // /\_/\ Author: <NAME> (MangoFI) // ( o.o ) Github: github.com/Delta2904 // > ^ < Codeforces: codeforces.com/profile/MangoFI // // ThemeCP Level: data structures/implementation/sortings/*800 - ThemeCP Level 2 // Problem : 1760C - Advantage (https://codeforces.co...
ALGO
0.999941
4.669201
{ "github_metadata": { "branch": "main", "commit_count": 203, "repo_created_at": "2024-10-12T23:43:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0961ef5393...
9c15d446-7d93-4c17-9088-6abac58f46c4
ishandutta2007/codeforces-w
wiwiho/normal/1293/B.cpp
//#define NDEBUG #include <bits/stdc++.h> #define StarBurstStream ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); #define iter(a) a.begin(), a.end() #define riter(a) a.rbegin(), a.rend() #define lsort(a) sort(iter(a)) #define gsort(a) sort(riter(a)) #define mp(a, b) make_pair(a, b) #define pb(a) push_back(...
ALGO
0.997087
4.32083
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:34: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": "46f82fd6be10...
5db1d816-220c-4e37-acd9-889ae3a81842
Kubonsang/codetree-TILs
240902/사는 지역/where-live.cpp
#include <iostream> #include <string> #include <vector> using namespace std; class human{ public: string name; string num; string place; human(){} human(string a, string b, string c): name(a), num(b), place(c) {} human(const human& other){ this->name = other.name; this->num = o...
ALGO
0.977541
4.098513
{ "github_metadata": { "branch": "main", "commit_count": 285, "repo_created_at": "2024-04-03T14: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": "c6f3737af4...
14235e57-0c0c-4d25-9292-ef846f7c6161
ZoranPandovski/al-go-rithms
others/dynamic control/pid/C++/app/pid.cpp
/** * Copyright 2018 <NAME> * @file pid.cpp * @author <NAME> (srane96) * @date 9/22/2018 * * @brief PID controller class implementation * * @section DESCRIPTION * * This source file implements a PID controller class. * The class contains methods to compute target velocity * given setpoint, c...
ALGO
0.988868
5.97549
{ "github_metadata": { "branch": "master", "commit_count": 7457, "repo_created_at": "2017-06-05T19:20:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1359, "forks": 1929, "issues": 20, "pull_requests": 44 }, "file_meta": { "content_id": ...
5eee10ee-9c6c-4f99-a835-6e508527fc36
MichalNowicki/PUT_AndroidOrientation
OrientEstimation_AEKF/jni/AHRS/Eigen/src/Core/products/CoeffBasedProduct.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 <NAME> <<EMAIL>> // Copyright (C) 2008-2010 <NAME> <<EMAIL>> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as pub...
ALGO
0.997727
7.285623
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2014-05-05T19:22:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 15, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "52b18040b...
4ea72e67-1187-4a2c-88f2-d95aaa924a9d
DragoonXen/HMEinit
src/tree_node.cpp
/* * TreeNode.cpp * * Created on: Jan 24, 2012 * Author: dragoon */ #include "tree_node.h" #include "matrix_utils.h" #include <algorithm> #include <assert.h> #include <iostream> #include <cmath> #include <omp.h> using std::cout; using std::endl; using std::min; using std::reverse; using matrix_utils::op...
ALGO
0.993747
4.142341
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2012-01-24T19:53:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a872c8a53...
d848a507-4a51-4ace-b95b-2fe084f82520
abhinavrapartiwar/DSA-Journey
Recursion/Maze Problem and BackTracking/Printing_matrix_of_the_path.cpp
#include <bits/stdc++.h> using namespace std; void path_print(vector<vector<int>> &vec, int r, int c, string s, int count, vector<vector<int>> path) { if (r == vec.size() - 1 && c == vec[0].size() - 1) { path[r][c] = count; for (auto i : path) { for (auto j : i) ...
ALGO
0.999856
4.253319
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-01-31T19:05: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": "83e5953d8f0b...
18f3eb80-f7d5-47f0-9205-59f7b9d136e8
lhlssmile/leetcode-practice
lc_cpp/lcCpp/arraY/sortArrayByParityII.cpp
#include <iostream> #include <vector> #include <algorithm> class sortArrayByParitySolution{ public: std::vector<int> sortArrayByParity(std::vector<int>& nums){ std::sort(nums.begin(),nums.end()); int i = 0,oddIndex = 0; std::vector<int> res(nums.size(),0); for(;i < nums.size();++i){...
ALGO
0.999991
5.615683
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2025-04-20T15:43:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7af4580aa4a...
3d8cc4ff-939f-418c-b043-f0b108155d81
azartheen/leetcode
problems/easy/1507-reformat-date.cpp
/* Reformat Date Given a date string in the form Day Month Year, where: Day is in the set {"1st", "2nd", "3rd", "4th", ..., "30th", "31st"}. Month is in the set {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}. Year is in the range [1900, 2100]. Convert the date string to the forma...
ALGO
0.944034
5.603054
{ "github_metadata": { "branch": "master", "commit_count": 537, "repo_created_at": "2020-11-21T10:47: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": "5351994d...
b95d0b85-59ad-400b-80d7-5ac003fa2ce4
Shashank127Yadav/Allprograms
shashank programs/basic.cpp/1.2_Patterns.cpp/Basicpattern.cpp
#include<iostream> using namespace std; void print1(int n) { for(int i = 0; i < n; i++) { for(int j = 0; j < n; j++) { cout << "* "; } cout << endl; } } void print2(int n) { for(int i = 1; i <= n; i++) { for(int j = 1; j <= i; j++) { ...
ALGO
0.99993
3.483092
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-11-13T14:50: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": "b006aa2fa0c8...
67ab5526-67ed-4581-ad18-92284b9cca80
bulletphysics/bullet3
examples/VoronoiFracture/VoronoiFractureDemo.cpp
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> https://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to ...
ALGO
0.987005
5.65752
{ "github_metadata": { "branch": "master", "commit_count": 9404, "repo_created_at": "2011-04-12T18:45:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 13557, "forks": 2973, "issues": 238, "pull_requests": 141 }, "file_meta": { "content_id"...
ef74715f-d10d-48f0-b22f-8711c65706f0
YanMaramzin/DemodulatorFSK
TestTask/libs/DemodulatorFSK/include/DemodulatorFSK.h
#ifndef DEMODULATORFSK_H #define DEMODULATORFSK_H #include <vector> #include <math.h> #include <algorithm> #include <numeric> #include <iterator> #include "../../Filter/include/Filter.h" #include "../../Correlation/include/Correlation.h" class DemodulatorFSK{ public: template<typename T> std::vector<int> ...
ALGO
0.995517
5.176749
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2022-08-28T10:25:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e656964b3ca3...
f605e232-ce29-4dee-9c79-4b5961135b73
Aryansh-S/USACO
algo_ds/fenwick.h
template<class T> struct operation { //for qry & upd const T ID = 0; T comb(T a, T b) { return a + b; } T inv_comb(T a, T b) { return a - b; } T m_comb(T a, int L) { return a * L; } //how does it compose with itself over a range }; //point upd, range qry -- multiple dimensions template <clas...
ALGO
0.99921
5.191466
{ "github_metadata": { "branch": "main", "commit_count": 301, "repo_created_at": "2020-04-16T03:31:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 41, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "126eb49e8...
f6f750f7-e5ec-4c25-b46f-c0ab81330cc3
Namit-Joshi/CP-Solutions
CodeForces/GNU C++17/1333A | Little Artem/75915939.cpp
#include <bits/stdc++.h> using namespace std; typedef double db; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<ll, ll> pll; typedef pair<int, int> pii; typedef vector<ll> vll; typedef vector<int> vi; typedef complex<double> com; #define endl '\n' #define eb emplace_back ...
ALGO
0.9987
3.372759
{ "github_metadata": { "branch": "main", "commit_count": 790, "repo_created_at": "2022-08-28T08:50:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7b92d4f6de...
846b0102-c691-4daf-8828-0dd58750c4f8
libo0306/Exercise
C++_5_14/code_1/code_1/test.cpp
#define _CRT_SECURE_NO_WARNINGS 1 //#include <iostream> //#include <cstdio> //#include <algorithm> //using namespace std; //const int N = 100010; //int arr[N]; //int main() //{ // int n; // scanf("%d", &n); // for (int i = 0; i < n; i++) scanf("%d", &arr[i]); // sort(arr, arr + n); // for (int i = 0; i < n; i++) prin...
ALGO
0.999959
4.844594
{ "github_metadata": { "branch": "master", "commit_count": 99, "repo_created_at": "2021-03-23T08:49: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": "e6c3951ae...
234e479f-b7d3-4505-804b-aabee3376b4f
TelegramMessenger/Telegram-iOS
third-party/libjxl/libjxl/lib/jxl/ac_context.h
// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef LIB_JXL_AC_CONTEXT_H_ #define LIB_JXL_AC_CONTEXT_H_ #include <algorithm> #include <vector> #include "lib/jxl/base/bits.h" #include "lib...
CONFIG
0.910888
7.332591
{ "github_metadata": { "branch": "master", "commit_count": 28524, "repo_created_at": "2018-11-14T18:06:49.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6895, "forks": 1916, "issues": 531, "pull_requests": 45 }, "file_meta": { "content_id":...
0a3d4db2-7cfe-4605-904e-e65000fa3f8c
Beynik/HexBigNumber
MyBigNum.cpp
#include "MyBigNum.h" void MyBigNum::setHex(string str) { int r = 0,len=0; for (int i = 0; i <= SIZE; i++) { _numD[i] = 0; } Lenght = str.size(); for (int i = Lenght-1; i >= 0; --i) { if (str[i] >= '0' && str[i] <= '9') r = str[i] - 48; else if (str[i] >= 'a' && str[i] <= 'f') r = str[i] - 87; else ...
ALGO
0.923894
3.580907
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2023-10-18T18: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": "30a54e851e...
ed2d321a-6e7b-4242-b21f-cd3b511a78b8
lpelias/my_leetcode
BestTimetoBuyandSellStockIII/BestTimetoBuyandSellStockIII.cpp
class Solution { public: int maxProfit(vector<int> &prices) { int len = prices.size(); if(len < 2) return 0; int* max_forward = new int[len]; int i = 0, low = prices[0], max_profit = 0, curr_profit = 0; max_forward[0] = 0; while(++i < len){ if(prices[i] < low...
ALGO
0.999926
5.606431
{ "github_metadata": { "branch": "master", "commit_count": 33, "repo_created_at": "2014-02-11T06:54: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": "14c013101...
3024773b-3512-4300-803c-afcfe2551ef0
squaresLab/BatFix
results/transcoder/translations/java/MINIMUM_INSERTIONS_SORT_ARRAY.cpp
int minInsertionStepToSortArray ( int arr [ ] , int N ) { int lis [ N ] ; for ( int i = 0 ; i < N ; i ++ ) { lis [ i ] = 1 ; } for ( int i = 1 ; i < N ; i ++ ) for ( int j = 0 ; j < i ; j ++ ) if ( arr [ i ] >= arr [ j ] && lis [ i ] < lis [ j ] + 1 ) lis [ i ] = lis [ j ] + 1 ; int max = 0 ; ...
ALGO
0.999992
4.627699
{ "github_metadata": { "branch": "main", "commit_count": 26, "repo_created_at": "2023-05-21T15:21:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "59d5369cd9e2...
7ed53892-7fa5-409d-91a5-f09a870bb2a6
jaisharma687/LeetCode
701 to 800/C++/793_partition-labels.cpp
#include<bits/stdc++.h> using namespace std; #define endl '\n' #define int long long const int mod = 1e9+7; // class Solution { // public: // vector<int> partitionLabels(string s) { // vector<int> last(26,-1); // int n = s.size(); // for(int i=0;i<n;i++){ // int idx = s[i]-'a'; ...
ALGO
0.999878
4.981745
{ "github_metadata": { "branch": "master", "commit_count": 302, "repo_created_at": "2024-05-13T19:35: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": "d4bce21c...
a14ad133-d9e1-4683-8045-dc0a9e30452a
pavanky/arrayfire
src/api/cpp/fft.cpp
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
ALGO
0.964876
6.73831
{ "github_metadata": { "branch": "master", "commit_count": 1125, "repo_created_at": "2014-11-12T18:33:47.000Z", "is_fork": true, "is_org_owned": false, "forked_from": "arrayfire/arrayfire", "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "conte...
cc00ae12-9cb4-481b-986b-22b26e25a369
jangrotino/cses-problem-set-solutions
i-coins.cpp
#include <bits/stdc++.h> using namespace std; int main() { vector<double> prob; int size = 0; double dp[size+1][size+1] = {}; double ans = 0; prob.push_back(0); cin >> size; for(int i = 0; i < size; i++) { double pom = 0; cin >> pom; prob.push_back(pom); ...
ALGO
0.999803
3.926116
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-03-31T19:35:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5b6710349bcc...
81dc24f0-5938-4966-be5f-b356e4e4cd5b
deselaers/fire-cbir
Retriever/imagecomparator.hpp
/* This file is part of the FIRE -- Flexible Image Retrieval System FIRE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. FIRE is distribute...
TOOL
0.932049
5.805003
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2015-04-05T09:25:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 31, "forks": 12, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "0319b3e4...