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
c7e807da-5c95-415a-8023-da1ac2370725
saminakh/CSE250
A9/SplayTree.h
// ============================================================================ // SplayTree.h // ~~~~~~~~~~~~ // hqn // - A Very Basic Splay Tree Class // - Nodes have int payloads // - To make it "useable", we need to make it a template class, with arbitrary // (Key, Value) as in the sample AVL code posted on the l...
ALGO
0.995147
6.378359
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-03-17T05: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": "5e408a0dcc...
d6e89604-bb5c-4f4c-82e7-50d12aeb311b
AkashSingh3031/Complete-LeetCode-Premium-Problems
0286-walls-and-gates/0286-walls-and-gates.cpp
class Solution { public: void wallsAndGates(vector<vector<int>>& rooms) { const int row = rooms.size(); if (0 == row) return; const int col = rooms[0].size(); queue<pair<int, int>> canReach; // save all element reachable vector<pair<int, int>> dirs = {{1, 0}, {0, 1}, {-1, 0}...
ALGO
0.999975
6.02838
{ "github_metadata": { "branch": "master", "commit_count": 194, "repo_created_at": "2023-06-23T09:21:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 52, "forks": 17, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "566015...
ed07a3dc-55e6-43d3-a53b-7c1af165ad2f
albanmgd/Numerical_Finance
NumericalFinance/Utils/Matrix.cpp
#include "Matrix.h" #include <cmath> #include <stdexcept> // Default constructor - empty 2*2 matrix Matrix::Matrix(): data(2, std::vector<double>(2, 0.0)) {} // Parameterized constructor Matrix::Matrix(const std::vector<std::vector<double>>& vect): data(vect) {} void Matrix::setMatrixData(const Matrix& other_mat) { ...
ALGO
0.999229
7.020774
{ "github_metadata": { "branch": "main", "commit_count": 49, "repo_created_at": "2025-04-11T09:30: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": "bea5be311d8...
39e23bc1-6182-4c7f-a3b2-5462bd1f342b
dlerner97/ACME_perception_proposal
include/utils.hpp
/** * @file utils.hpp * @author <NAME> * @author <NAME> * @brief utils header * @version 0.1 * @date 2021-10-25 * * @copyright Copyright (c) 2021 * */ #pragma once #include <string> #include <vector> #include <stdexcept> /** * @brief InvalidFile exception for parsers. * */ class InvalidFile : public ...
TOOL
0.909542
6.218682
{ "github_metadata": { "branch": "main", "commit_count": 229, "repo_created_at": "2021-09-30T01:25:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "38cad2b298...
c1a6f3c7-e7b9-409b-be98-063711b8ab84
day-dreams/lintcode
1-15/05-quicksort.cpp
/* 快速排序 */ #include <iostream> #include <vector> using std::vector; template <class T> void print(T *begin, T *end) { while (begin != end) { std::cout << *begin << " "; ++begin; } std::cout << std::endl; } template <class T> T *partition(T *begin, T *end, const T &pivot) { T *back = end - 1; while (...
ALGO
0.999945
5.24529
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2018-02-22T14:25: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": "71d0b2578...
603a467a-1ffa-42d9-a099-7b1d693fd6ab
gafeol/competitive-programming
Contests/PNWERC19/J.cpp
#include "bits/stdc++.h" using namespace std; #define fst first #define snd second typedef unsigned long long ull; typedef long long ll; typedef pair<int, int> pii; #define pb push_back #define for_tests(t, tt) int t; scanf("%d", &t); for(int tt = 1; tt <= t; tt++) #ifndef ONLINE_JUDGE #define debug(args...) fprintf(st...
ALGO
0.999771
4.403182
{ "github_metadata": { "branch": "master", "commit_count": 406, "repo_created_at": "2016-09-11T01:55:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "28f11977...
f2c92d2a-a290-4053-a653-b9971e56d939
Lu1salmazan/LehrMark_CSC5_41202_41203
Hmwk/Assignment3/Savatch_8thEd_Chap3_Prob12_V1/main.cpp
/* File: main.cpp Author: Dr. <NAME> Created on January 19, 2016, 8:40 PM Purpose: Calculate PI */ //System Libraries #include <iostream> #include <iomanip> #include <cmath> using namespace std; //User Libraries //Global Constants const float PI=4*atan(1); //Function prototypes //Execution Beg...
ALGO
0.999969
5.25857
{ "github_metadata": { "branch": "master", "commit_count": 50, "repo_created_at": "2016-02-10T20:08:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "55569ea39...
9e87e4d0-57ac-4a40-af47-9013f85774ae
PetarV-/Algorithms
Mathematical Algorithms/Extended Euclidean Algorithm.cpp
/* Petar 'PetarV' Velickovic Algorithm: Extended Euclidean Algorithm */ #include <stdio.h> #include <math.h> #include <string.h> #include <assert.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <queue> #include <stack> #include <set> #include <map> #include <c...
ALGO
0.999951
4.886093
{ "github_metadata": { "branch": "master", "commit_count": 176, "repo_created_at": "2013-04-17T16:59:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 660, "forks": 233, "issues": 1, "pull_requests": 15 }, "file_meta": { "content_id": "055...
4a637874-5460-4848-a2a3-eccf061a92a1
sxweetlollipop2912/MaCode
.LHP/.Lop12/.PreHSG/Ngay2/ROBOT/ROBOT.cpp
#include <iostream> #include <algorithm> #include <cstdio> #define maxN 102 #define maxK 11 #define maxD 4 #define up 0 #define right 1 #define down 2 #define left 3 #define turnR(x) (((x) + 1) % 4) #define turnL(x) (((x) + 3) % 4) #define isValid(x, y) ((x) >= 0 && (x) < m && (y) >= 0 && (y) < n) #define nextK(k) ...
ALGO
0.999959
4.070908
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2020-09-20T11: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": "01239a0b7...
5abaf114-aa4f-462a-86df-037d8794fd1c
ChiZhang95/LeetCode
NetworkDelayTime.cpp
class Solution { public: int networkDelayTime(vector<vector<int>>& times, int N, int K) { // mark whether a ndoe receives the signal vector<bool> received(N+1,false); // Breadth First Search queue<vector<int>> network; // record max time cost int maxcost=0; ve...
ALGO
0.999916
5.653142
{ "github_metadata": { "branch": "master", "commit_count": 76, "repo_created_at": "2018-03-25T21:55: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": "5fac68971...
e970a524-c887-45c2-9cc4-83fcd2d446ac
luqian2017/Algorithm
LintCode/1506_All-Nodes-Distance-K-in-Binary-Tree/1506_All-Nodes-Distance-K-in-Binary-Tree.cpp
/** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ class Solution { public: /** * @param root: the root of the tree * @param targe...
ALGO
0.999991
5.919245
{ "github_metadata": { "branch": "master", "commit_count": 1110, "repo_created_at": "2018-08-01T03:45:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dddfd06...
1add3c32-767c-4818-8d5e-2854808e54e8
ShahjalalShohag/code-library
Data Structures/BIT with Range Update and Range Query.cpp
#include<bits/stdc++.h> using namespace std; const int N = 3e5 + 9; struct BIT { long long M[N], A[N]; BIT() { memset(M, 0, sizeof M); memset(A, 0, sizeof A); } void update(int i, long long mul, long long add) { while (i < N) { M[i] += mul; A[i] += add; i |= (i + 1); } } ...
ALGO
0.999667
3.813397
{ "github_metadata": { "branch": "main", "commit_count": 952, "repo_created_at": "2018-11-18T08:49:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3240, "forks": 840, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "af2f0...
f4c2c8ee-74fd-4a67-9ad3-205438dfca29
thegamer1907/Code_Analysis
CodesNew/580.cpp
/* _ _ | |__ | |__ __ _ __ _ _ _ __ _ | '_ \| '_ \ / _` |/ _` | | | |/ _` | | |_) | | | | (_| | (_| | |_| | (_| | |_.__/|_| |_|\__,_|\__, |\__, |\__,_| |___/ |___/ */ #include<bits/stdc++.h> #pragma comment(linker, "/stack:200000000") #pragm...
ALGO
0.99994
4.119206
{ "github_metadata": { "branch": "master", "commit_count": 73, "repo_created_at": "2019-05-24T10:35:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e5d8083b4...
5b152bd8-edf8-41a7-b6ce-e775580b7787
ishandutta2007/codeforces-v
voidmax/normal/768/E.cpp
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> #include <numeric> #include <cstring> #include <ctime> #include <cstdlib> #include <set> #include <map> #include <unordered_map> #include <unordered_set> #include <list> #include <cmath> #include <bitset> #include <cassert> #...
ALGO
0.999914
3.610975
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:31: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": "5f0b04128dcb...
aeb91790-94d1-4e6b-9250-7c34ffa35c85
liangqx-hku/linear_FEM_CUDA
libFem/src/libFEM.cpp
#include "libFEM.h" #include <iostream> void Element::localStiffMat(double* NodeX, double* NodeY, Eigen::Matrix<double,3,3> materialD )// { // std::cout << "======= 2D triangle element ==========" << std::endl; // std::cout << " compute the local stiff matrix " << std::endl; NodesIdx[0]--;NodesIdx[1]--;No...
ALGO
0.938945
4.872991
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2023-05-25T15:23: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": "e40594aa19...
20c44d35-a070-400b-9c93-a5e458c55bc8
Itaxo01/Competitive-Programming
vjudge/topicos1/4/b.cpp
#include <bits/stdc++.h> using namespace std; int n, k; // n = primeira partição, k = segunda partição vector<vector<int>> g; // Lista de adjecências da primeira partição para a segunda. // Escolher a menor delas como a primeira durante a leitura. vector<int> mt; vector<bool> used; bool try_kuhn(int v) { if (used[v...
ALGO
0.999776
3.412211
{ "github_metadata": { "branch": "main", "commit_count": 91, "repo_created_at": "2024-08-23T15:51: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": "9b10459381c...
868e3a55-20ac-4f59-b730-a724b757f123
mujahid5517/PASSPORT_MANAGEMENT_SYSTEM
passport.cpp
#include <iostream> #include <fstream> #include <string> #include <sstream> #include <iomanip> #include <regex> #include <ctime> #include <limits> // For numeric_limits using namespace std; struct NewPassport { string passType,id,name,dob,nationality,phoneNumber,createdDate,appointmentDate,payment,paymentStatus; ...
TOOL
0.956026
5.445938
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2025-05-27T21:32: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": "5db9e13a532...
17689ab6-7405-45c6-ab31-bf87d50051d3
Manzood/CodeChef
LunchTime/May-2021/E/E.cpp
#include "bits/stdc++.h" using namespace std; #define debug(x) cout << #x << " = " << x << endl; #define int long long int ans; pair <int, int> dfs (int node, vector <vector <int>>& adj, string& s) { // returns depth of the deepest token pair <int, int> current = {0, 0}; for (auto u: adj[node]) { ...
ALGO
0.999925
3.648519
{ "github_metadata": { "branch": "master", "commit_count": 61, "repo_created_at": "2020-03-01T16:35:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5b43582c9...
6462e8ca-3031-489b-89b1-7a35ba1d993d
Minssc/BJA
old/5430.cpp
#include<iostream> #include<algorithm> #include<string> using namespace std; int D[100001]; void solve(){ string CMD; cin>>CMD; int N; cin>>N; string arr; cin>>arr; // int nD = 0; // for(auto &c:CMD) // if(c=='D') // nD++; // if(nD>N){ // cout<<"error"<<'\n'; // return; // }else if(nD==N){ // cout<<"[]"<...
ALGO
0.999658
4.496215
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-11-15T06:48: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": "97d424d0dd...
a39b8243-625d-4070-af59-5d6faf5bb44a
ibayashi-hikaru/allegro-legato
lammps/src/compute_omega_chunk.cpp
// clang-format off /* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator https://www.lammps.org/, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
ALGO
0.997129
5.977969
{ "github_metadata": { "branch": "main", "commit_count": 82, "repo_created_at": "2023-01-17T19:46:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "911bc1c763...
cd8a1415-af50-4ade-90ac-6a7a6ad397a7
liyiji/LeetCode
092_Search_for_a_Range.cpp
/* * Search for a Range * Total Accepted: 11602 Total Submissions: 43184 * * Given a sorted array of integers, find the starting and ending position of a given target value. * * Your algorithm's runtime complexity must be in the order of O(log n). * * If the target is not found in the array, return [-1, -1]. *...
ALGO
0.999953
5.998355
{ "github_metadata": { "branch": "master", "commit_count": 226, "repo_created_at": "2014-06-02T13:12: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": "56b1e98c...
88001eb5-6fad-4ad2-ad07-2e08c749c742
StackedCrooked/stacked-crooked
Euler/002/main.cpp
#include <iostream> #include <map> unsigned GetFibo(unsigned n) { if (n == 0) { return 1; } if (n == 1) { return 2; } typedef std::map<unsigned, unsigned> Cache; static Cache fCache; Cache::iterator it = fCache.find(n); if (it != fCache.end()) { ret...
ALGO
0.999975
5.031589
{ "github_metadata": { "branch": "master", "commit_count": 3271, "repo_created_at": "2015-03-19T03:25:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "da7e712...
b48fe039-94d3-46d7-abdf-a50ae0f61fd8
varpeti/Suli2
Grafika/work/ora2/Bezier/main.cpp
/* * File: main.cpp * Author: Vp */ #include <cstdlib> #include <iostream> #include <vector> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include "env.hpp" //-----------------// //Globális változók// //-----------------// //Vonal vector std::vector<Skoord*> vonal; //Tárolja h le van e nyomva...
TOOL
0.957393
4.120511
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2019-05-16T19:20:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cddd9f167c...
fcb63638-c05f-406d-95a8-14957eae0ab7
cpp20120/OldGithub
Algorithms/LeetCode/ModifyGraphEdgeWeights/main.cpp
class Solution { public: vector<vector<int>> modifiedGraphEdges(int n, vector<vector<int>> &edges, int source, int destination, int target) { vector<pair<int, int> > g[n]; for (int i = 0; i < edges.size(); i++) { int x = edges[i][0], y = edges[i][1]; g[x].emplace_back(y, i)...
ALGO
0.999975
5.748091
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2025-05-07T10:27: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": "0bc17c437b13...
dd6e7706-8842-4b3c-a2e1-a5722eab2981
abhishek0220/CSL106
LAB/LAB_1/merge_sort_inplace.cpp
#include <bits/stdc++.h> using namespace std; //merge sort function void merge(int arr[], int l, int r) { //base condition if (l < r) { int m = l + (r - l) / 2; //mid index merge(arr, l, m); //merge first half of elements merge(arr, m + 1, r); //merge second half of elements int t2 = m +...
ALGO
0.999993
5.39427
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2019-10-13T11:07:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0eff01bdf...
74bdc5b3-39c2-4ecc-a449-97da8d43da73
nevikw39/oj
KickStart/2022_C/d.cpp
/** _ _ _____ ___ * _ __ _____ _(_) | ____ _|___ // _ \ * | '_ \ / _ \ \ / / | |/ /\ \ /\ / / |_ \ (_) | * | | | | __/\ V /| | < \ V V / ___) \__, | * |_| |_|\___| \_/ |_|_|\_\ \_/\_/ |____/ /_/ **/ #include <bits/extc++.h> #ifndef nevikw39 #define nevikw39 cin.tie(nu...
ALGO
0.999964
5.749974
{ "github_metadata": { "branch": "master", "commit_count": 2018, "repo_created_at": "2020-02-22T14:59:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "943499...
b9c32e1b-814d-4a20-a7bd-e21a7574b025
ksaveljev/UVa-online-judge
10344.cpp
#include <iostream> #include <vector> using namespace std; int nums[5]; vector<int> v(9); bool taken[5]; bool solve(int depth) { if (depth == 5) { long tmp = v[0]; int a, action; for (int i = 1; i < 9; i += 2) { a = v[i]; action = v[i+1]; if (action == 1) { tmp += a; } ...
ALGO
0.999695
4.176368
{ "github_metadata": { "branch": "master", "commit_count": 788, "repo_created_at": "2011-04-04T11:43:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 106, "forks": 69, "issues": 0, "pull_requests": 4 }, "file_meta": { "content_id": "3074c...
7fba564b-c27b-492a-b1c7-5c6f4490a401
tahsinrahman/tc
a.cpp
#include <bits/stdc++.h> using namespace std; int n, k, cnt, f, taken[11], sz, subSz; int digits[12]; string ans; int substrings[1000000]; class ColorfulStrings { public: void color() { vector <int> check(1000000); for(int i = 0; i < n; ++i) { int res = 1; for(int j = i; j < n; ++j) { res *= digits[j];...
ALGO
0.999529
5.36662
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2015-04-19T11:57: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": "c2678778fe...
66bcd9a7-0c8b-4fbe-b33e-189d71d3e308
kenrick95/code-archive
toki424.cpp
#include <iostream> #include <fstream> #include <cstdio> #include <cmath> #include <algorithm> #include <cstring> #include <string> #define INF 1000000000000LL typedef long long int64; typedef unsigned long long qword; using namespace std; /* Problem: <NAME> * URL: http://tokilearning.org/training/7/chapter/76/pro...
ALGO
0.999919
3.545088
{ "github_metadata": { "branch": "master", "commit_count": 30, "repo_created_at": "2016-09-27T02:55:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f12485c1...
dc9cf971-e91f-4e24-8f4e-ef390c8cdc7b
xiaoyuyang0901/Apollo-code-with-node
modules/planning/scenarios/yield_sign/stage_approach.cc
/****************************************************************************** * Copyright 2019 The Apollo Authors. 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 ...
ALGO
0.982898
6.394057
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2022-01-28T17:56:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 78, "forks": 48, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "4a49dd32...
f29e6a78-1633-4984-b469-ffcdc5ceeff6
atharva-main/lp5_practicle
matrix.cpp
#include <iostream> #include <omp.h> #include <cstdlib> // for rand() using namespace std; const int N = 500; // matrix size void multiplyMatrices(int A[N][N], int B[N][N], int C[N][N]) { #pragma omp parallel for collapse(2) for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { C[i]...
ALGO
0.999935
4.913639
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2025-04-29T00:47:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c62c54cb95...
d8b256ed-cb7f-476b-befc-4ce9a6d50337
ishandutta2007/codeforces-l
lhic/normal/687/C.cpp
#include <iostream> #include <fstream> #include <set> #include <map> #include <string> #include <vector> #include <bitset> #include <algorithm> #include <cstring> #include <cstdlib> #include <cmath> #include <cassert> #include <queue> typedef long long ll; typedef long double ld; using namespace std; const int MAXN...
ALGO
0.999962
3.111117
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T06:17: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": "6e137ecc5d61...
4a61a905-c389-4219-9e9a-205a4009d28f
dtdongwenbo/coding-interview-guide-according-Zuo-master
Chapter1/用递归来实现汉诺塔的问题.cpp
#include <iostream> #include <string> using namespace std; int hanoiRes(int layer,string src,string dst) { if(layer<1) return 0; if(layer == 1) //只有一层时(递归的退出检测) { if(src == "mid" || dst == "mid") { cout << "move 1 form " << src << " to " << dst << endl; return 1; } else //源端或目的端为非中间的情况(左/右) { c...
ALGO
0.999971
3.566225
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2019-06-17T11:21: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": "f135bcbb7...
49006ed6-72e0-40f5-b3d9-2061d058c63a
solotzg/template-collections
algorithm/TopCoder/SRM670/div1/Treestrat.cpp
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define urp(i, a, b) for (int i = (a), __tzg_##i = (b); i >= __...
ALGO
0.999862
3.682892
{ "github_metadata": { "branch": "main", "commit_count": 367, "repo_created_at": "2015-11-24T07:59:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4d0ae2eaeb...
f8506bd9-2c3e-4514-b725-fc1f30435d97
S96EA/PATAdvanced
src/advanced/pat1046.cpp
// // Created by neild47 on 18-6-13. // #include <iostream> #include <vector> using namespace std; namespace pat1046 { int main() { int n; cin >> n; vector<int> rowData(n + 1); rowData[0] = 0; for (int i = 1; i <= n; i++) { scanf("%d", &rowData[i]); } ...
ALGO
0.999925
4.210358
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2018-08-08T08:07: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": "4c03670075...
d2174bfb-b434-485f-8336-ae67ace85568
Hector-Jing/Algorithm_Learning
LRU.cpp
#include <iostream> #include <vector> #include <unordered_map> using namespace std; struct DLinkedNode { int key; int val; DLinkedNode *prev; DLinkedNode *next; DLinkedNode() : key(0), val(0), prev(nullptr), next(nullptr) {} DLinkedNode(int _key, int _val) : key(_key), val(_val), prev(nullptr),...
ALGO
0.999507
5.800021
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2021-09-12T07:47:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a66e151324...
6bfe7a34-7e24-4956-bd72-afd818d3ec4d
Dev-Reddy/GFGProblems
Difficulty: Easy/Remaining String/remaining-string.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function template for C++ class Solution { public: string printString(string s, char ch, int count) { // Your code goes here int n=0; string str=""; int len=s.size(); for(i...
ALGO
0.999802
5.314929
{ "github_metadata": { "branch": "main", "commit_count": 1025, "repo_created_at": "2024-04-01T11:25: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": "9f1e9461b...
6f0a1422-f99a-4b5f-a2ba-0f90b68cfdb8
opencog/moses
moses/moses/moses/local_moses.cc
/* * moses/moses/moses/local_moses.cc * * Copyright (C) 2002-2008 Novamente LLC * All Rights Reserved * * Written by <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation a...
ALGO
0.999544
6.462663
{ "github_metadata": { "branch": "master", "commit_count": 16698, "repo_created_at": "2015-04-26T19:15:06.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 131, "forks": 85, "issues": 13, "pull_requests": 0 }, "file_meta": { "content_id": "4b4...
4754f6f0-812f-41c0-9c92-1053729f8552
newcleanbird/Data-Structures-and-Algorithms
Data Structure/树状结构/code/中序遍历.cpp
/* 94. 二叉树的中序遍历 */ /** * Definition for a binary tree node. * 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, TreeNo...
ALGO
0.999994
6.322351
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2024-05-12T16:21: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": "69214ac987dc...
4a334de1-a757-4711-b46a-fba1fe4264e5
zhikezhixin/Cpp-notes
二叉树/二叉树/BinaryTree.cpp
#define _CRT_SECURE_NO_WARNINGS #include "BinaryTree.h" void Init(BTNode* root) { root->left = root->right = NULL; } void Destroy(BTNode* root) { if (root == NULL) return; Destroy(root->left); Destroy(root->right); free(root); } BTNode* CreatNewnode(DataType x) { BTNode* newnode = (BTNode*)malloc(sizeof(BTNo...
ALGO
0.999491
4.213825
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2025-04-01T02:12: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": "5c7b312ae13...
581b3de6-ae34-473b-94e4-128f6bdc2f42
TarunSaini063/Coding
DataStructure/codeforces/div_plot.cpp
#include <bits/stdc++.h> using namespace std; #define ld double #define ll long long #define pb emplace_back #define mk make_pair #define mod 1000000007 #define ff first #define ss second #define FIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); #define all(x) x.begin(),x.end() ll power(ll a, ll b) {...
ALGO
0.999356
4.26927
{ "github_metadata": { "branch": "master", "commit_count": 98, "repo_created_at": "2020-04-04T07:52: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": "4992eb76f...
c3c48827-98d4-4110-82db-973cffebb477
Caio-Moraes159/FreeCell-Jogo-de-Cartas
Driver.cpp
#include "FreeCell.h" #include <iostream> #include <algorithm> using namespace std; struct baralho { int Numero; string Naipe; string Cor; string NumNaipe; }; void menu(struct baralho cartas[], int NumCartas, string freeCells1, string freeCells2, string freeCells3, string freeCells4, string PilhaDe...
ALGO
0.992748
4.068778
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2024-07-24T21:52: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": "c3647115aa...
14f3f4b5-00ae-43fa-86c4-824ac007f635
wnwoghd22/PS
BOJ/q18440.cpp
#include <iostream> #include <algorithm> #include <string> #include <vector> typedef unsigned long long ull; const int LEN = 1001; int N, M; std::string S, T, lcs; ull sl[26][LEN], sr[26][LEN]; // execute a - b and returns borrow bit ull sub(ull& a, ull b) { ull c = a; return (a = c - b) > c; } void hirschberg(i...
ALGO
0.999999
5.154748
{ "github_metadata": { "branch": "main", "commit_count": 1260, "repo_created_at": "2022-09-22T10:29:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "391829745...
19f064f4-a0c9-4920-b66d-f95caf1adff9
nikolaygurev/MADE_algorithms_and_data_structures
Hometask_2_3/main.cpp
// Решение всех задач данного раздела предполагает использование кучи. // // 2_3. Тупики. // На вокзале есть некоторое количество тупиков, куда прибывают электрички. Этот // вокзал является их конечной станцией. Дано расписание движения электричек, // в котором для каждой электрички указано время ее прибытия, а также в...
ALGO
0.999946
4.670706
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2019-10-20T13:31:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "91c807542...
154220fb-67cd-4b0c-ad19-7bcea1cd4080
ddatsko/thesis_cpp_generator_nodelet
include/MapPolygon.hpp
#ifndef MAP_TO_GRAPH_MAPPOLYGON_HPP #define MAP_TO_GRAPH_MAPPOLYGON_HPP #include <vector> #include <string> #include <array> #include <stdexcept> #include <numeric> #include <set> #include <map> #include <algorithm> #include "custom_types.hpp" #include "utils.hpp" #include <memory> #include <SimpleLogger.h> #include <...
ALGO
0.976422
7.018797
{ "github_metadata": { "branch": "master", "commit_count": 63, "repo_created_at": "2022-02-09T10:30:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b8ee59440...
30b53e15-a6bf-465e-906d-4df2ae7c698b
koiralabishal/ADA
Lab-1/binarySearch.cpp
#include <iostream> using namespace std; int binarySearch(int arr[], int p, int r, int num) { if (p <= r) { int mid = (p + r) / 2; if (arr[mid] == num) { return mid; } else if (arr[mid] > num) { return binarySearch(arr, p, mid - 1, num); } else { ...
ALGO
0.999978
5.820063
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-06-25T13:10: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": "59a42626e59f...
aadd3fb8-11a6-4c5f-877c-5ef78730b13f
CMU-CBML/NNDs
2D_solver_coarse_compCase/utils.cpp
#include "utils.h" #include <iostream> #include <algorithm> #include "BasicDataStructure.h" #include <cmath> #include <random> // for random generator #include <queue> // Creating 2D mesh (incrementing from lo to hi) void gen2Dmesh(int Nx, int Ny, vector<vector<float>>& vertices, vector<vector<int>>& elements) { co...
TOOL
0.986025
4.105265
{ "github_metadata": { "branch": "main", "commit_count": 87, "repo_created_at": "2024-03-19T03:38:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2e900ccdd553...
09406fd9-0633-46cb-a502-caa41b4bdc33
Sachindebug/LeetCode-Problems
Selection Sort - GFG/selection-sort.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; void swap(int *xp, int *yp) { int temp = *xp; *xp = *yp; *yp = temp; } // } Driver Code Ends class Solution { public: int select(int arr[], int i, int n) { // code here such that selectionSort() sorts arr[] in...
ALGO
0.99995
6.245741
{ "github_metadata": { "branch": "main", "commit_count": 4945, "repo_created_at": "2021-12-25T07:37:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b786d3148...
766f63dd-6cfa-4bb3-b8c6-328eedad1347
reisenx/2110211-INTRO-DATA-STRUCT
01 Pair and Vector/Vector Operation/d62_q1c_vector_op.cpp
#include<iostream> #include<vector> #include<algorithm> using namespace std; int Q; vector<int> v; int main() { // Make std::cin and std::cout faster std::ios_base::sync_with_stdio(false); std::cin.tie(0); // Input number of operations cin >> Q; while(Q--) { // Get command string...
ALGO
0.999674
5.356896
{ "github_metadata": { "branch": "main", "commit_count": 33, "repo_created_at": "2024-08-16T08:20:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0e351740240...
e8f177df-933f-4642-8ba5-34512c195b88
zephyr-fun/LeetCodeSolution
double_pointers/844_Backspace_String_Compare.cpp
// 2022.03.31 // stack class Solution { public: bool backspaceCompare(string s, string t) { string sStack; string tStack; for(int i = 0; i < s.size(); i++){ if(s[i] != '#'){ sStack += s[i]; } else if(!sStack.empty()){ sStack...
ALGO
0.999959
5.925426
{ "github_metadata": { "branch": "main", "commit_count": 2658, "repo_created_at": "2020-11-24T08:19:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3b9ca1c09...
003a9762-8394-4f64-b39c-441070b7c77a
XianyiCheng/CMGMP
cmgmp/worlds/PlanningWorld.cpp
#include "PlanningWorld.h" #ifndef SAMPLE_H #define SAMPLE_H #include "../utilities/sample.h" #endif #ifndef CONTACTKINEMATICS_H #define CONTACTKINEMATICS_H #include "../contacts/contact_kinematics.h" #endif #include "../utilities/eiquadprog.hpp" #include <math.h> #define OBJECT_USER_ID 1 // btTransform pose2btTra...
ALGO
0.99561
3.412895
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2022-02-25T18:30:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d8b4041074...
f81217e4-064c-423b-b2e6-1b7f357937f8
LeeGyeongHwan/Algorithm_Student
acm_5014.cpp
/* ACMICPC 문제 번호 : 5014 문제 제목 : 스타트링크 풀이 날짜 : 2020-08-05 Solved By Reamer */ #include <iostream> #include <queue> #include <tuple> using namespace std; int main() { int F, S, G, U, D; queue<pair<int, int>> intQ; bool isVisit[1000001] = {0}; cin >> F >> S >> G >> U >> D; intQ.push(make_pair(S, 0))...
ALGO
0.99968
3.662516
{ "github_metadata": { "branch": "master", "commit_count": 692, "repo_created_at": "2019-09-04T05:54:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "114468a6...
25bb396d-562e-467d-b288-059de7c1821e
zhongming-unice/misc-cpp
leetcode/tree/serialize.cc
#include <iostream> #include <vector> #include <sstream> #include <string> #include "treeStruct.h" using std::ostringstream, std::istringstream; class ASCII { public: static std::string serialize(TreeNode *root) { ostringstream out; std::function<void(TreeNode*)> serializeHelper = [&](TreeNode *r...
ALGO
0.981342
5.430155
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2021-01-25T02:18:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5172b083e55...
0deb260f-6ac0-41b5-a2c3-d0d29a7d427f
Dup4/competitive-programming
cometoj/84/c/c.cpp
#include <bits/stdc++.h> #define fi first #define se second #define endl "\n" using namespace std; using db = double; using ll = long long; using ull = unsigned long long; using pII = pair<int, int>; using pLL = pair<ll, ll>; constexpr int mod = 1e9 + 7; template <class T1, class T2> inline void chadd(T1 &x, T2 y) { ...
ALGO
0.9999
4.043475
{ "github_metadata": { "branch": "main", "commit_count": 838, "repo_created_at": "2019-04-07T01:16: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": "e12d389985...
b6c29a0e-307d-4426-bd54-50ef7d59935a
SirMouthAlot/Blight-3D
OpenGL Framework Test1/OpenGL Framework Test1/Graph.cpp
#include "Graph.h" Edge::Edge(Node* _n1, Node* _n2, float _weight) { n1 = _n1; n2 = _n2; weight = _weight; } Edge::Edge(Node* _n1, Node* _n2) { n1 = _n1; n2 = _n2; calculateWeight(); } void Edge::calculateWeight() { glm::vec3 dif = n1->pos - n2->pos; weight = sqrt(dif.x * dif.x + dif.y * dif.y + dif.z * dif....
ALGO
0.997262
4.273694
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-03-07T21:13: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": "8086e47b84...
a051daeb-49d9-499f-b8e4-2e1ebb705172
mygithubkg/dsa_questions
Graph/Min Cost Path/min_cost_path.cpp
#include<iostream> #include<vector> #include<algorithm> #include<queue> #include<limits.h> using namespace std; class Solution { public: // Function to return the minimum cost to react at bottom // right cell from top left cell. bool isValidCell(int i, int j, int n) { return i>=0 && i<n && j>=0 &...
ALGO
0.999997
6.13488
{ "github_metadata": { "branch": "main", "commit_count": 35, "repo_created_at": "2024-12-27T10:30: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": "79562aedb99...
805ec761-5ac0-4c16-a05c-1bc921561aac
forpre/work
week4_auto_count_III.cpp
#include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main() { Mat srcMat = imread("D:\\picture\\14.jpg", 0);//取图像 Mat result; Mat result_cnet; Mat stats; Mat centroid; Rect rect; Point anchor = Point(-1, -1);//锚点 srcMat.copyTo(result); threshold(result, result, 100, ...
ALGO
0.981285
3.712615
{ "github_metadata": { "branch": "master", "commit_count": 48, "repo_created_at": "2020-09-27T12:59: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": "d35aad6b4...
f6776c2a-cc0b-402b-ad47-86c8ccb503d9
SkyRainWind/XCPC_Library
Luogu/Luogu1262-tarjan缩点.cpp
// by SkyRainWind #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define mpr make_pair #define debug() cerr<<"Yoshino\n" #define rep(i,a,b) for(int (i)=(a);(i)<=(b);(i)++) #define pii pair<int,int> using namespace std; typedef long long LL; const int inf = 1e9, INF = ...
ALGO
0.999934
3.778247
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-07-04T06:47: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": "47eab3915099...
5a881ef9-cbe9-459b-b963-cfe7d33ca5b6
Shikhar-S/Analysis-of-Competitive-Codebase
Data/Contest1243/all/29784717_64373842.cpp
#ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS # include <intrin.h> # define __builtin_popcount __popcnt #endif #define _USE_MATH_DEFINES #include <stdio.h> #include <functional> #include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <vector> #include <regex> #include <queue> #include <...
ALGO
0.99948
4.418835
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2019-11-22T14:40: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": "a3476b528...
6a4fa35f-9eb9-4e8b-87ed-b82e63dc089c
stormrage-web/University-works
Математическая логика/TASK C/axiom.cpp
#include <cstdarg> #include "dis.h" #define Nimp new imp #define Nneg new neg #define Ndis new dis #define Ncon new con using namespace std; bool is_axiom_number(express *expr, int number); axiom *case_axiom(int number, ...); int find_axiom_number(express *expr) { size_t number = 1; bool found = false; ...
ALGO
0.932434
4.484574
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2022-04-19T23:14: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": "6327d8eaad14...
8e8456ac-826f-4dd1-a4db-effaf7d083fc
Shahraaz/CP_P_S5
ICPC_Mirrors/Nitc_25.0/a.cpp
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/debug.h" #else #define db(...) #endif #define all(v) v.begin(), v.end() #define pb push_back using ll = long long; const int NAX = 2e5 + 5, MOD = 1000000007; using ld = long double; typedef long long coord_t; // coordinate type typedef long long ...
ALGO
0.999908
5.280035
{ "github_metadata": { "branch": "master", "commit_count": 147, "repo_created_at": "2019-07-16T00:00:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b1dd4ece...
4f882578-24f1-4367-b23d-99db929b761a
fanzhijun301/leetcode
addTwoNumbers.cpp
#include<iostream> #include<stdlib.h> using namespace std; /** * * Definition for singly-linked list. **/ struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: ListNode *addTwoNumbers(ListNode *l1, ListNode *l2) { int carry = 0; ListNode *he...
ALGO
0.999916
5.436225
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2015-02-26T10:57: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": "99ad9ffd5...
220cc929-0e1e-4af6-8eee-6b373c8ef30b
manulecam/trainingpi
ejercicio12.cpp
#include <iostream> #include <string> using namespace std; // Ejercicio 12: Leer una frase de teclado e informar // la longitud de la última palabra. // Se considera al espacio como separador de palabras. // Precondición: el string no finaliza con espacios. int contarLongitud() { string inputCadena; int con...
ALGO
0.983487
4.071976
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2024-07-22T15:18: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": "6832bf94727...
ba93d944-9704-44bc-9c79-da9c9b9ca597
thuonghoainguyen2101/midterm_proj
Dealer.cpp
#include"function.h" Card drawCard(int card, int deck[SUITS][FACES]) { Card a; for ( int i = 0; i < SUITS; i++) { for ( int j = 0; j < FACES; j++) { if ( deck[i][j] == card ) { a.suit = i; a.face = j; ...
ALGO
0.982471
3.536777
{ "github_metadata": { "branch": "master", "commit_count": 23, "repo_created_at": "2020-04-18T13:17: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": "48e42e42a...
ce65a0f9-02a7-4eba-a35c-5ddf098474a1
ishandutta2007/codeforces-a
axiomofchoice/normal/1406/C.cpp
#include <bits/stdc++.h> using namespace std; #define repeat(i,a,b) for(int i=(a),_=(b);i<_;i++) #define repeat_back(i,a,b) for(int i=(b)-1,_=(a);i>=_;i--) #define mst(a,x) memset(a,x,sizeof(a)) #define fi first #define se second mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count()); int cansel_s...
ALGO
0.999752
4.160787
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4e7d5ce7af54...
7d80c838-1a53-4486-b275-7e006812ee1f
sachuverma/DataStructures-Algorithms
Striver Sheet/Day-5/Reverse Linked List.cpp
/* Reverse Linked List =================== Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: Input: head = [1,2] Output: [2,1] Example 3: Input: head = [] Output: [] Constraints: The number of nodes in the li...
ALGO
0.998915
6.750117
{ "github_metadata": { "branch": "master", "commit_count": 1430, "repo_created_at": "2020-10-07T10:08:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2049, "forks": 541, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "e3...
9c8d5089-e097-422e-a2f8-be360a20101e
lframosferreira/maratona
progcomp/1602.cpp
// pescoço pra baixo é canela #include <bits/stdc++.h> using namespace std; #define _ ios_base::sync_with_stdio(0);cin.tie(0); #define endl '\n' #define f first #define s second #define pb push_back #define dbg(x) cout << #x << " = " << x << endl typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, l...
ALGO
0.999819
4.046594
{ "github_metadata": { "branch": "main", "commit_count": 240, "repo_created_at": "2022-05-26T13:22:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ee6f71a204...
3d65c2cb-1472-4fcb-a86d-ec0a70f86d7b
mMahnoor/XPSC_Practice_Problems
Week15/Day04/B_asterisk_minor_template.cpp
// problem link: https://codeforces.com/problemset/problem/1796/B #include <iostream> #include <string> using namespace std; int main() { int t; cin >> t; while(t--) { string a, b; cin >> a; cin >> b; if(a[0]==b[0]) { cout << "YES\n"; cou...
ALGO
0.999963
4.368
{ "github_metadata": { "branch": "main", "commit_count": 147, "repo_created_at": "2024-10-27T11:19: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": "c4abdd1de6...
98acec74-3ea1-45fc-8970-a741eb4a5141
maZymaZe/maze-Python-learning-luogu-cpp-py-
LeetCode/l1765.cpp
class Solution { public: vector<vector<int>> highestPeak(vector<vector<int>>& isWater) { int n = isWater.size(), m = isWater[0].size(); vector<vector<int>> ans(n, vector<int>(m)); queue<int> x, y, z; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { ...
ALGO
0.99999
6.168842
{ "github_metadata": { "branch": "master", "commit_count": 2987, "repo_created_at": "2020-02-16T02:06:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2a94d86...
3481d410-2dc9-4fa8-b9d1-5c4e0c89278c
ishandutta2007/codeforces-p
peti1234/normal/1454/E.cpp
#include<bits/stdc++.h> using namespace std; const int c=200002; vector<int> sz[c]; long long w, n, sum, cnt, f[c]; bool v[c], v2[c], kor[c]; void dfs(int a) { v[a]=true; for (int x:sz[a]) { if (!v[x]) f[x]=a, dfs(x); else if (f[a]!=x && !kor[a]) { kor[a]=true; int aa=a;...
ALGO
0.999941
4.365128
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:49:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dd3816a79543...
f45b47d4-9d40-47e3-baa3-c1ff7bec2c02
jeonghyukLee/cryptography
barretenberg/src/aztec/plonk/composer/mimc_composer.cpp
#include "mimc_composer.hpp" #include <ecc/curves/bn254/scalar_multiplication/scalar_multiplication.hpp> #include <numeric/bitop/get_msb.hpp> #include <plonk/proof_system/widgets/arithmetic_widget.hpp> #include <plonk/proof_system/widgets/mimc_widget.hpp> #include <plonk/proof_system/widgets/permutation_widget.hpp> us...
ALGO
0.9912
4.865088
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-12-09T02:11: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": "bfdee672b55c...
65201bb3-f603-466e-b31e-cd0b2787207b
chaitanyks/Leetcode
Prefix and Suffix Search.cpp
// https://leetcode.com/problems/prefix-and-suffix-search/ // 745. Prefix and Suffix Search class WordFilter { public: map<string, int> mp; WordFilter(vector<string>& words) { int n = words.size(); int m = 0; string str1 = ""; string str2 = ""; string str = ""; ...
ALGO
0.999142
6.012743
{ "github_metadata": { "branch": "main", "commit_count": 284, "repo_created_at": "2021-10-13T04:12:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "b2cf73c8cd...
8d31bc66-6ab8-43ce-bf15-388053b9409a
elador/FeatureDetection
libClassification/include/classification/HistogramIntersectionKernel.hpp
/* * HistogramIntersectionKernel.hpp * * Created on: 10.06.2013 * Author: poschmann */ #ifndef HISTOGRAMINTERSECTIONKERNEL_HPP_ #define HISTOGRAMINTERSECTIONKERNEL_HPP_ #include "classification/Kernel.hpp" #include "classification/KernelVisitor.hpp" #include <stdexcept> namespace classification { /** * ...
ALGO
0.975325
7.216458
{ "github_metadata": { "branch": "master", "commit_count": 803, "repo_created_at": "2012-06-08T20:48:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 160, "forks": 102, "issues": 75, "pull_requests": 2 }, "file_meta": { "content_id": "d40...
209bc7f7-22e7-4cb8-ab7c-32e5467cf76b
jjoonleo/baekjoon
baekjoon/17386_선분 교차1.cpp
#include<iostream> #include<deque> #include<cmath> #include<vector> #include<algorithm> using namespace std; struct Dot { long long x, y; Dot() : x(0), y(0) {}; Dot(int x1, int y1) : x(x1), y(y1) {}; }; long long ccw(const Dot& A, const Dot& B, const Dot& C) { long long t = (A.x - B.x) * (C.y - B.y) - (A.y - B.y...
ALGO
0.999581
4.232017
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2022-02-25T13:25: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": "c61741b80d...
5d1f2ec9-8273-41d2-b5df-a8e48559ff2c
Seungchan0325/baekjoon
solutions/31422_0.cpp
#include <bits/stdc++.h> using namespace std; using llint = long long int; const int MOD = 998244353; const int MAXN = 100005; int N, and_cnt[35], last_one[35], xor_cnt[35][2]; int main() { cin >> N; llint and_ans = 0; llint or_ans = 0; llint xor_ans = 0; for(int i = 1; i <= N; ++i) { i...
ALGO
0.999925
4.266976
{ "github_metadata": { "branch": "main", "commit_count": 795, "repo_created_at": "2023-12-31T15:30: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": "878bc90fd5...
a9b5807e-dc92-405d-b4a3-497ed950b6a6
Rasel006/Phitron_Data_Structure
Module 2.5/Z_Binary_Search.cpp
#include<bits/stdc++.h> using namespace std; int main(){ // Take input n and q and the n size of arry int n, q; cin >> n >> q; int arr[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } // sort the arry for bainary search sort(arr,arr+n); for (int qu = 0;...
ALGO
0.999979
4.573424
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-10-03T09:07: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": "46daa17c5f6d...
29d8eead-8031-40f6-a298-b21395823211
naowalrahman/competitive-programming
usaco/silver/milk_measurement.cpp
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); freopen("measurement.in", "r", stdin); freopen("measurement.out", "w", stdout); struct cow { int day, id, change; void read() { cin >> day >> id >> change; } }; ...
ALGO
0.999838
3.825822
{ "github_metadata": { "branch": "main", "commit_count": 196, "repo_created_at": "2020-12-25T01:28:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c37215938a...
0d8a894d-187e-4fd2-8014-89aea709aa7e
aayush751/Geeksforgeeks
Difficulty: Medium/Remove all occurences of duplicates in a linked list/remove-all-occurences-of-duplicates-in-a-linked-list.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; /* Link list node */ struct Node { int data; struct Node *next; Node(int x) { data = x; next = NULL; } }; // } Driver Code Ends // User function Template for C++ /* Linked List node str...
ALGO
0.999767
5.833893
{ "github_metadata": { "branch": "main", "commit_count": 1199, "repo_created_at": "2023-09-05T06:30:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3b56a27ac...
69ca7067-385e-4110-bc41-fc645332521a
mroggy08/Code-chill-everyday
src2/ROAD.CPP
#include <bits/stdc++.h> #define f1(i,n,m) for (int i=n; i<=m; i++) #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); } #define ll long long #define fi first #define se second #define ii pair<int,int> #define pii pair<int,ii> using namespace std; const ...
ALGO
0.999451
3.639527
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-07-15T10:12: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": "afdd55ff2b...
1d9c2b3f-8adc-4046-afb1-0eb9798e4a25
shinnosuke-narita/AtCoderWork
abc/abc331/c/main.cpp
#include <vector> #include <algorithm> #include <iostream> #include <atcoder/all> #include <math.h> using namespace std; // マクロ #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF (1 << 30) int main() { int n; cin >> n; vector<int> a(n); rep(i, n) { cin >> a[i]; } const int M = 1000005;...
ALGO
0.999988
3.837714
{ "github_metadata": { "branch": "main", "commit_count": 272, "repo_created_at": "2023-11-09T22:48: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": "3a41f596f7...
6d54c02b-7c3e-4102-a21a-3788c400bfe8
kaityo256/mnist_check
idea/model.cpp
//------------------------------------------------------------------------ #include <cstdio> #include <fstream> #include <string> #include <sstream> #include <random> #include <algorithm> #include "model.hpp" //------------------------------------------------------------------------ void import_test(Model &model) { v...
ALGO
0.99826
4.530482
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2018-03-22T07:59:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3ec623a60...
7ad1f051-966c-4633-a0b7-7a7047de4229
michalsvagerka/competitive
arch/cf/572/CArrayBeauty.cpp
#include "../l/lib.h" #include "../l/mod.h" typedef Field<998244353> FF; constexpr int MX = 100000; class CArrayBeauty { public: void solve(istream& cin, ostream& cout) { int N, K; cin >> N >> K; vector<int> A(N); cin >> A; sort(A.begin(),A.end()); vector<int> LO(MX+1, N); f...
ALGO
0.999934
4.692233
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2017-12-07T11:02:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "165af45d5...
eaba621c-d65b-4cba-8755-45512c7461b5
yancouto/competitive-programming
ojs/kattis/bettor.cpp
#include <bits/stdc++.h> using namespace std; #define fst first #define snd second typedef unsigned long long ull; typedef long long ll; typedef pair<int, int> pii; #define pb push_back #define for_tests(t, tt) int t; scanf("%d", &t); for(int tt = 1; tt <= t; tt++) template<typename T> inline T abs(T t) { return t < 0?...
ALGO
0.99992
3.978065
{ "github_metadata": { "branch": "master", "commit_count": 143, "repo_created_at": "2016-08-26T11:17:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "47c75dc2...
c62f2f12-8d45-4b91-9065-92aee83a9c0f
sys-bio/roadrunner
source/SensitivitySolver.h
// // Created by Ciaran on 08/07/2021. // #ifndef ROADRUNNER_SENSITIVITYSOLVER_H #define ROADRUNNER_SENSITIVITYSOLVER_H #include "Solver.h" #include "Matrix3D.h" namespace rr { template <typename T> class Matrix; class ForwardSensitivitySolver; /** * @brief generic interface for all Sensitiv...
ALGO
0.94585
7.235058
{ "github_metadata": { "branch": "develop", "commit_count": 6291, "repo_created_at": "2014-07-10T19:31:22.000Z", "is_fork": true, "is_org_owned": true, "forked_from": "AndySomogyi/sbmlsolver", "stars": 51, "forks": 26, "issues": 76, "pull_requests": 2 }, "file_meta": { ...
b2c278c6-4308-47fa-8999-877146598a62
PriyanshMaheshwari/DataStructure-Codes
TRASH/LLoftree/main.cpp
#include <iostream> using namespace std; struct btnode{ struct btnode* lchild; int data; struct btnode* rchild; }; typedef struct btnode* BSTPTR; void add(BSTPTR &T,int k){ if(T == NULL){ BSTPTR temp = new struct btnode; temp->data = k; temp->lchild = NULL; temp->rchil...
ALGO
0.999948
3.679432
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-05-16T20:47: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": "b5cb45aa93b1...
7cee21b8-67ca-48c3-9b0c-0c7ce3766a64
vmware/concord-bft
client/reconfiguration/src/poll_based_state_client.cpp
// Copyright (c) 2018-2021 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in // compliance with the Apache 2.0 License. // // This product may include a number of subcomponents with separate copyright notices and ...
ALGO
0.937288
7.172339
{ "github_metadata": { "branch": "master", "commit_count": 4650, "repo_created_at": "2018-08-01T09:36:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 382, "forks": 146, "issues": 0, "pull_requests": 55 }, "file_meta": { "content_id": "713...
dfec357b-059e-41ec-9dc7-55019517428e
metehkaya/Algo-Archive
Problems/LeetCode/Solutions/2736.Maximum_Sum_Queries.cpp
class Solution { public: vector<int> maximumSumQueries(vector<int>& x, vector<int>& y, vector<vector<int>>& q) { int n = x.size() , m = q.size(); vector<pair<pair<int,int>,int>> v; for( int i = 0 ; i < n ; i++ ) v.push_back(make_pair(make_pair(x[i],y[i]),i)); sort(v.begin...
ALGO
0.999985
5.376615
{ "github_metadata": { "branch": "main", "commit_count": 78, "repo_created_at": "2023-04-04T19:44: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": "afb47577558...
3d85e84b-5c78-404f-a506-bce3690adb6c
lake4863/leetcode
lc_850.cpp
class SegmentTree { private: vector<int> sums; vector<int> covers; unordered_map<int, int> m; int n; public: SegmentTree(int nn, unordered_map<int, int>& mm) { n = nn; m = mm; sums = vector<int>(n<<2, 0); covers = vector<int>(n<<2, 0); } void pushU...
ALGO
0.999986
6.194382
{ "github_metadata": { "branch": "master", "commit_count": 184, "repo_created_at": "2021-03-02T04:00: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": "b6a86e2d...
b04d7053-99cb-4113-b9ea-cae62805efac
ishandutta2007/codeforces-m
majk/normal/1067/C.cpp
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author majk */ #ifndef MAJK_LIB #define MAJK_LIB #include <vector> #include <stack> #include <iostream> #include <unordered_map> #include <unordered_set> #include <map> #include <iomanip> #include <set> #include <functional>...
ALGO
0.9996
3.094186
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-06-06T01:03: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": "215d6fe692ff...
7a07aa85-c962-4147-82f9-246ce4f89bfb
avcopan/MPACK
mlapack/library/Rtrexc.cpp
/* * Copyright (c) 2008-2010 * <NAME> * All rights reserved. * * $Id: Rtrexc.cpp,v 1.9 2010/08/07 04:48:33 nakatamaho Exp $ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of...
ALGO
0.998318
5.434449
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2019-12-18T18:49:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dac1af116...
9549c016-b960-49dc-afab-96e8474c85a7
QbitQuantum/Basics
Исходники/HybridLegFinder.cpp
void LegFinder::laserCallback(std::vector<float>& laser_r, std::vector<float>& laser_t) { if(laser_r.size() != laser_t.size()) { std::cout << "LegFinder.->Something went wrong while getting laser readings :'(" << std::endl; return; } this->rec.clear(); std::vector<float> laser_x; ...
TOOL
0.919439
3.618129
{ "github_metadata": { "branch": "main", "commit_count": 68, "repo_created_at": "2024-03-06T07:05: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": "d503ffd4500...
1fafabf1-7383-40f9-ad3e-42d0d58e98a7
tchomphoochan/cmutoi_codes
solutions/ipst/o61_mar_practice_uncategorized/o56_apr20_stardrawing.cpp
// headers #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; // types template<class T> using ordered_set = tr...
ALGO
0.999704
4.235308
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-11-15T18:15:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "429cd6c872...
45b44cb4-0116-40ff-9319-4e1ab311e8eb
txhuynh/OpenCL-mnist
mnist/host/src/main.cpp
// Copyright (C) 2013-2015 Altera Corporation, San Jose, California, USA. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limita...
ALGO
0.943695
5.637759
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2016-04-20T03:13: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": "b76f665297...
652af5ef-86af-45e6-831e-d2a7ba97ded7
rafiulgits/Algorithm
Minimum cost path in a matrix - dp.cpp
#include<bits/stdc++.h> using namespace std; int main() { /*input matrix row and column from user*/ int row; int col; cin >> row >> col; /* define matrix */ int matrix[row][col]; /* input every cell cost from user */ for(int r=0; r<row; r++) { for(int c=0; c<col; c++) ...
ALGO
0.999859
4.202114
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2018-02-08T10:02:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc5e3cf82...
fdf1da00-41cc-4adc-be11-1cb39da9ea9c
EKRoy/daily-practics-problem
week-30/day4/D_Line.cpp
#include<bits/stdc++.h> using namespace std; #define ll long long #define TC(t) int t; cin >> t; for(int i = 1; i <= t; i++) #define pii pair<int,int> #define ft ios::sync_with_stdio(false); cin.tie(NULL); #define endl "\n" #define pb push_back #define...
ALGO
0.999931
3.296041
{ "github_metadata": { "branch": "main", "commit_count": 108, "repo_created_at": "2024-07-11T17:22: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": "9cff1714bd...
ad5a2f6c-5ab6-42b7-a4bf-fa21b6d05715
kohler/click
elements/ip/radixiplookup.hh
// -*- c-basic-offset: 4 -*- #ifndef CLICK_RADIXIPLOOKUP_HH #define CLICK_RADIXIPLOOKUP_HH #include <click/glue.hh> #include <click/element.hh> #include "iproutetable.hh" CLICK_DECLS /* =c RadixIPLookup(ADDR1/MASK1 [GW1] OUT1, ADDR2/MASK2 [GW2] OUT2, ...) =s iproute IP lookup using a radix trie =d Performs IP loo...
ALGO
0.981938
6.806732
{ "github_metadata": { "branch": "master", "commit_count": 10856, "repo_created_at": "2010-09-21T22:45:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 762, "forks": 324, "issues": 115, "pull_requests": 25 }, "file_meta": { "content_id": ...
64f200ed-6d57-4a30-9e45-b07cf67d18be
whywhyzhang/ACM-ICPC-Code
BC/69/A.cpp
// ━━━━━━神兽出没━━━━━━ // ┏┓ ┏┓ // ┏┛┻━━━━━━━┛┻┓ // ┃ ┃ // ┃ ━ ┃ // ████━████ ┃ // ┃ ┃ // ┃ ┻ ┃ // ┃ ┃ // ┗━┓ ┏━┛ // ┃ ┃ // ┃ ┃ // ┃ ┗━━━┓ // ┃ ┣┓ // ┃ ┏┛ // ...
ALGO
0.997092
3.466137
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2015-06-26T15:54: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": "322cd24bf...
611a85c0-78ee-47e4-8087-283be9825761
LarasMunggaran/tugas-praktikum-c-sabtu
Modul 8/Modul 8.D.cpp
#include <iostream> using namespace std; int main() { int A[11]; int data[] = {12, 15, 7, 10, 5, 2, 17, 25, 9, 20, 35, 28, 14, 11, 999}; int length = 14; int count = 0; for (int i = 0; i < length && data[i] != 999 && count < 11; i++) { if (data[i] % 2 != 0) { A[count] = data[...
ALGO
0.999919
4.376126
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2023-10-07T09:12: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": "06985af54...
74133bc6-9939-4f3c-b322-39098022a6d4
alexandraback/datacollection
solutions_5636311922769920_1/C++/Sereja/a.cpp
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> using namespace std; void gen(string what, int c) { string original = what; string G = ""; for (int j = 0; j < what.size(); j++) { G += 'G'; } int e = 1; for (int i = 2; i <= c; i++) { string rez = "...
ALGO
0.999776
3.302819
{ "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": "619b05aa5...
350e14ca-dc72-4b2f-b0be-64eff5335505
VinayakDGaikwad/CPPNotebook
ConsoleApplication1/queue.cpp
// <NAME> #include<iostream> #include<stdio.h> #define MAX 5 using namespace std; class clrqueue { int queue[MAX]; int front; int rear; public: clrqueue() { front = -1; rear = -1; } void Enqueue(int n) { if (isEmpty()) { front = rear = 0; } else if (isFull()) { r...
ALGO
0.990868
4.207069
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2021-08-26T13:23: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": "76329433d...