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
247dc3bb-3473-41f6-b5cc-0b68143771a0
SoonyangZhang/rmcat-ns3
webrtc-lib/webrtc/modules/audio_processing/aec3/decimator.cc
/* * Copyright (c) 2017 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
ALGO
0.996801
6.719437
{ "github_metadata": { "branch": "master", "commit_count": 38, "repo_created_at": "2018-06-11T13:40:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 56, "forks": 13, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f9351fb...
26bae894-76e0-452e-b2ab-bbf3772cca02
tukl-msd/finance.americanoption.zynq.hls
HLS/LSupdate/LSupdate1/LSupdate1_hls.cpp
/////////////////////////////////////////////////// // Copyright (C) 2015 University of Kaiserslautern // Microelectronic Systems Design Research Group // // <NAME> (<EMAIL>) // // Last review: 29/06/2015 // // Using: Xilinx Vivado HLS 2014.3 // /////////////////////////////////////////////////// #include "LSupdate...
ALGO
0.993331
4.389868
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2015-09-07T13:48:51.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "839ec8f58b1...
738ab3b9-4d4c-4ff9-8129-02abc4650db0
DataCloud-project/DIS-PIPE
api/storage/testuser/simulation_logs_jot_test/jar/seq-opt-symba-2/src/search/sym/old/sym_psel_precom.cc
#include "sym_psel_precom.h" #include "sym_hierarchy.h" #include "../timer.h" #include "../option_parser.h" #include "../plugin.h" SymPSelPrecompute::SymPSelPrecompute(const Options &opts) : SymPSel(opts), maxStepTime(opts.get<int>("max_step_time")), maxStepNodes(opts.get<int>("max_step_nodes"...
ALGO
0.993178
6.239966
{ "github_metadata": { "branch": "main", "commit_count": 160, "repo_created_at": "2021-12-09T22:26:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 10, "forks": 1, "issues": 2, "pull_requests": 1 }, "file_meta": { "content_id": "37d5c35c38...
fe889ce5-6c46-4a8b-ae9d-d9e094e3cc87
yoongoing/Algorithm
SWEA/5656.cpp
#include <iostream> #include <queue> #include <math.h> using namespace std; int n,w,h; int map[15][12]; int ans =987654321; bool check(int y, int x){ if((y<0) || (x<0) || (y>h-1) || (x>w-1)) return true; return false; } int count(){ int total = 0; for(int i=0; i<h; i++) for(int j=0; j<w; j++) if(map[i]...
ALGO
0.999907
3.654278
{ "github_metadata": { "branch": "master", "commit_count": 132, "repo_created_at": "2020-03-14T05:59:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "86227e83...
12f0c624-4a45-4253-8a8c-28e0f565ff93
kmykoh97/My-Leetcode
solutions/rotting_oranges.cpp
// In a given grid, each cell can have one of three values: // the value 0 representing an empty cell; // the value 1 representing a fresh orange; // the value 2 representing a rotten orange. // Every minute, any fresh orange that is adjacent (4-directionally) to a rotten orange becomes rotten. // Return the minimum ...
ALGO
0.999904
5.948169
{ "github_metadata": { "branch": "master", "commit_count": 81, "repo_created_at": "2020-05-11T12:10: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": "dcd3b94a3...
44f0e2cb-220f-4b8c-a0bd-8b6c1a145d63
baptonic3/DSA
CF_CC/B_Mislove_Has_Lost_an_Array.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; ll M = 1e9+7; const ll N = 8e5 + 10; const char nl = '\n'; #define pb push_back #define F first #define S second #define in insert #define all(v) v.begin(),v.end() #define allr(v) v.rbegin(), v.rend() #define MIN(v) *min_ele...
ALGO
0.999825
3.993408
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2024-02-04T11:54:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "741b20a4cb...
8202435e-47c3-4e3b-ace4-43f0b1a50f8a
pieper/slicer2-nohistory
Modules/vtkAG/cxx/vtkMeanPValue.h
/*=auto========================================================================= Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. See Doc/copyright/copyright.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: 3D Slicer Module: $RCSfile: vtkMea...
ALGO
0.967839
5.788747
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2011-02-23T16:39:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7c7c691265...
d864c3ef-cb35-4ed5-9e7f-85500385fa5e
niexiaokun/my_solutions_to_leetcode
01254-Number-of-Closed-Islands.cpp
#include <bits/stdc++.h> using namespace std; //1254. 统计封闭岛屿的数目 // // 有一个二维矩阵 grid ,每个位置要么是陆地(记号为 0 )要么是水域(记号为 1 )。 // //我们从一块陆地出发,每次可以往上下左右 4 个方向相邻区域走,能走到的所有陆地区域,我们将其称为一座「岛屿」。 // //如果一座岛屿 完全 由水域包围,即陆地边缘上下左右所有相邻区域都是水域,那么我们将其称为 「封闭岛屿」。 // //请返回封闭岛屿的数目。 // // // //示例 1: // //输入:grid = [[1,1,1,1,1,1,1,0],[1,0,0,0...
ALGO
0.999872
6.057736
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2021-02-01T03:18:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "25a16360936...
5c372ad5-65b5-4fdd-bd75-73cec076a4a4
snykk/Competitive-Programming
LeetCode/Path Sum II.cpp
/** * 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, TreeNode *right) : val(x), l...
ALGO
0.999984
6.446774
{ "github_metadata": { "branch": "master", "commit_count": 360, "repo_created_at": "2022-02-18T05:33:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "221783bf...
50e9a214-307e-4e18-8f2c-45ea4e891b5b
sunnyss12/minisearch
makelib/Document.h
#ifndef DOCUMENT_H #define DOCUMENT_H #include <string> #include <map> #include <set> #include <vector> #include "Simhasher.h" class InvertedIndex; class Document //copyable { friend bool operator==(const Document &d1, const Document &d2); friend bool operator!=(const Document &d1, const Document &d2); publi...
TOOL
0.970666
3.125633
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2015-08-30T11:44: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": "00d5815f28...
18a623e1-27a5-46bf-84ed-85886842e6ea
Quinton1326/CS-300-Project-2
main.cpp
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include <algorithm> #include <string> using namespace std; // Define Course structure struct Course { string courseNumber; string courseTitle; vector<string> prerequisites; }; // Define Node for BST struct Node { Course cour...
TOOL
0.989729
7.363069
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-06-30T01:32: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": "2ac2e00a34e4...
866975c9-7f70-4103-83d9-3e477bed0452
deepin-community/eckit
src/eckit/geo/projection/LambertAzimuthalEqualArea.h
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an int...
ALGO
0.975745
6.974394
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2023-08-24T03:44:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "752a6c651d8...
58b021ab-48a3-43a6-9b7a-8f3d775dcf31
repos-cl/NumCSE
Assignments/Codes/IterativeMethods/QuasiLinear/CodeExpert/solution/main.cpp
#include "quasilin.hpp" #include <cmath> int main(void) { int n = 5; Eigen::VectorXd x = Eigen::VectorXd::Constant(n,1/std::sqrt(n)); Eigen::VectorXd b = Eigen::VectorXd::Ones(n); // test implementation of fixed_point_step and newton_step() Eigen::VectorXd x_fp = fixed_point_step(x,b); ...
ALGO
0.9991
5.279201
{ "github_metadata": { "branch": "master", "commit_count": 2989, "repo_created_at": "2023-04-15T08:46:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "92d071b...
8e23062f-b675-449e-87d8-dabc056ddc88
haoranleo/Robo_Lab
core/src/Strategy/skill/DriftKick.cpp
#include "DriftKick.h" #include "GDebugEngine.h" #include <VisionModule.h> #include "skill/Factory.h" #include <utils.h> #include <ControlModel.h> #include <cornell/Trajectory.h> #include <RobotCapability.h> #include <CMmotion.h> #include <TimeCounter.h> #include <KickStatus.h> #include <RobotSensor.h> #include "utils....
ALGO
0.962825
5.124119
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2017-10-15T12:08:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "42efe0035...
a9d8f7b1-55d0-4280-bc91-ee8958d1ecdc
ChernovAO/sketches
coding_interview/unique_characters/unique_characters.cpp
/// @brief Implement an algorithm to determine if a string has all /// unique characters. /// What if you can not use additional data structures? #include <string> #include <iostream> #include <iomanip> #include <unordered_set> #include <algorithm> bool is_unique_chars( const std::string& tested ) { ...
ALGO
0.993125
6.280263
{ "github_metadata": { "branch": "master", "commit_count": 88, "repo_created_at": "2016-02-12T16:49: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": "256fe45f7...
890aefe7-4cf4-4495-82d7-fc95f49cd8e0
vanshikam-20/dsa
linkedlist/single linklist/lengthofll.cpp
#include<iostream> #include<vector> using namespace std; class Node { public: int data; Node* next; // Constructor with both data and next node Node(int data1, Node* next1) { data = data1; next = next1; } // Constructor with only data (assuming next is initially null) Node(in...
ALGO
0.999909
4.201596
{ "github_metadata": { "branch": "main", "commit_count": 39, "repo_created_at": "2024-07-24T13:13:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "de46aa9076b...
d896bc51-ac3c-4fff-9b75-fab1c3a85813
RakibulRanak/Solved-ACM-problems
Codeforces/Kuroni and Simple Strings CF 1305B.cpp
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); string s; cin >> s; vector<int> left; vector<int> right; for (int i = 0; i < s.size(); i++) { if (s[i] == '(') left.push_back(i + 1); else righ...
ALGO
0.999939
3.568984
{ "github_metadata": { "branch": "master", "commit_count": 63, "repo_created_at": "2019-02-03T18:14:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "24e888aae...
a47bdbab-108d-458f-9725-89efbc1b6425
rohit9798/LeetCode
207_CourseSchedule.cpp
There are a total of numCourses courses you have to take, labeled from 0 to numCourses-1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1] Given the total number of courses and a list of prerequisite pairs, is it possible for you to...
ALGO
0.999538
6.283572
{ "github_metadata": { "branch": "master", "commit_count": 335, "repo_created_at": "2020-02-28T16:40: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": "3fa4e6d9...
e73db25b-9859-4c0e-a281-63ec03c9c977
gim-largerepo/including-investment-59GB
modules/hour.cpp
Cut across option network we. Wife follow politics indeed civil writer population. Help important election hour especially. Rule ability occur husband research open his. Authority during investment effect turn. Help say college firm world stay. Defense skill fast piece them yard. Learn represent allow special someone a...
ALGO
0.989462
4.641702
{ "github_metadata": { "branch": "main", "commit_count": 92233, "repo_created_at": "2023-03-08T12:49:43.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7805b81f9...
3be1a127-2be4-45c6-880d-1871baa76160
FabioSebs/DataStructureTA
Week2/BinaryTree.hpp
#include <iostream> #include <vector> using namespace std; // DECLARATIONS namespace dsa { template <typename T> class Node { public: // PROPERTIES T data; Node<T> *left; Node<T> *right; // CONSTRUCTOR Node() : data(NULL), left(NULL), right(NULL){}; ...
ALGO
0.999861
5.618306
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2022-02-08T04:33:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "81adc2dc7f4...
540da36f-d851-49d1-859b-1a64849c0b6d
Suvan77blr/Graphs-DSA-GHed
Prog00_Graph-Initialization/Prog00_1_AdjMatrix.cpp
// 130325 /* Prog00_1 - Graph Adjacency Matrix (UnDirG) */ #include <iostream> #include <vector> using namespace std; int main(void) { int n, m; cout << "Enter the vertex-count & edge-count : "; cin >> n >> m; vector< vector<int> > adjMat (n, vector<int>(n, 0)); cout << "Enter the " << m << "...
ALGO
0.999754
4.662314
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2025-03-13T11: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": "dbdace31697...
1d728fbb-80c0-497a-890d-f3880ee51611
actium/timus
1100/10/1116.cpp
#include <iostream> #include <vector> struct Interval { int lb; int ub; int v; }; std::istream& operator >>(std::istream& input, std::vector<Interval>& f) { size_t n; input >> n; f.resize(n); for (Interval& i : f) input >> i.lb >> i.ub >> i.v; return input; } int main() { ...
ALGO
0.999968
4.371458
{ "github_metadata": { "branch": "master", "commit_count": 646, "repo_created_at": "2022-01-22T08:46:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bada4e65...
23fa0c9b-67d0-4a5e-9a8a-cbfa0fac332d
xiaocongdlut/Chembot
move/src/navigation_0707.cpp
#include "navigation_0708.h" Navigation::Navigation() // 构造函数 { // 底盘xy方向的移动速度 z轴的旋转速度 move_speed_.linear.x = 0.15; move_speed_.linear.y = 0.15; move_speed_.angular.z = 0.10; // 角度和距离的阈值 threshold_x_ = 0.03; threshold_y_ = 0.03; threshold_theta_ = 0.02; // 用于存储来自于mes的信息,决定底盘去哪个工位 ...
TOOL
0.982892
3.345618
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-12T02:28: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": "3e8f7f6f808d...
bbee091b-9d47-4f5d-acad-25f29a407b76
PRVadaviya/DSA-Code
Heap/deletion.cpp
#include<iostream> using namespace std ; int arr[100] ; class heap { public : int size; heap() { size = 0; arr[0] = -1 ; } void insert (int val) { size = size + 1 ; int index = size ; ...
ALGO
0.999373
3.721449
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2023-08-13T08:02: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": "77dec0a0b...
b9663761-ff18-4fdc-b42c-e5f079ffb7f9
yusukeuemura/cs_academy_practice
Greedy/Processing_Discounts/processing_discounts.cpp
#include <iostream> #include <vector> #include <map> #include <algorithm> int main() { long n, x, discount = 0; std::cin >> n >> x; std::vector<std::pair<long, long> > a(n); for (int i = 0; i < n; i ++) { std::cin >> a[i].first >> a[i].second; } std::sort(a.begin(), a.end()); long r...
ALGO
0.999935
3.955618
{ "github_metadata": { "branch": "master", "commit_count": 127, "repo_created_at": "2018-04-04T09:29:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "8cdc02e6...
19538608-8cc1-4cd9-ae1e-535ddbb1cfc5
windcry1/My-ACM-ICPC
SWUST OJ/0983.cpp
#include <iostream> #include <fstream> #include <string> #include <string> using namespace std; struct TreeNode { struct TreeNode* left; struct TreeNode* right; char elem; }; TreeNode* BinaryTreeFromOrderings(string inorder, string aftorder, int length) { if(length == 0) { return NULL; ...
ALGO
0.999862
4.283497
{ "github_metadata": { "branch": "master", "commit_count": 125, "repo_created_at": "2020-01-03T16:13: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": "b55cccd2...
de99488c-048c-47fb-9cf5-3fbde6e8061c
alexagedah/ProjectEuler
Problem 015/problem_015.cpp
// Problem 15 /* To see how many ways there were to get to a spot on the grid, you look up and check if there is a space above you and add 1 to the number of ways to get to the spot above you You then look left to see if there is a space to the left of you and add 1 to the number of ways to get to that space. You then ...
ALGO
0.999944
4.951929
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2022-09-09T02:11:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3b6be88743fe...
a38dd671-50f0-486c-bb0e-d768e50a1ca0
voidrishad11/void_on_cpp
Programs/A_Food_for_Animals.cpp
/*------------------------------------------------------ author : voidrishad11 created : Saturday | 13 January, 2024 | 17.43.52 ------------------------------------------------------*/ #include <bits/stdc++.h> #include <string> #include <iomanip> #include <vector> #include <algorithm> #include <cmath> #in...
ALGO
0.99645
4.053574
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2023-11-29T17:55:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d182070bb81...
c88ed334-99cc-43ac-92b9-f2e9ed85c167
OneBitPython/Codeforces
LCD.cpp
#include <bits/stdc++.h> using namespace std; #define int long long #define pb push_back #define all(c) c.begin(), c.end() #define endl "\n" const double PI=3.141592653589; void __print(int x) {cerr << x;} void __print(long x) {cerr << x;} void __print(unsigned x) {cerr << x;} void __print(unsigned long x) {cerr <<...
ALGO
0.999737
4.819207
{ "github_metadata": { "branch": "master", "commit_count": 195, "repo_created_at": "2022-01-06T15:32:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e17397d0...
633bd7d6-86bc-478f-a39f-c7f7b9fd2db6
ishandutta2007/codeforces-p
pwild/normal/702/D.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll,ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-9; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i,a,b) for (ll i = (a)...
ALGO
0.996795
3.165644
{ "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": "3dc594755c95...
fbccb4ff-daac-4431-9543-f2facc89de30
cran/fRLR
src/RcppExports.cpp
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 1<PASSWORD> #include <Rcpp.h> using namespace Rcpp; #ifdef RCPP_USE_GLOBAL_ROSTREAM Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); #endif // frlr1 Rcpp:...
TEST
0.906016
4.762672
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2017-09-29T17:27:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d34e6da6bed...
625ea8eb-5280-4eb4-abe5-f70b57cfaad4
wu2010/XC101P
201C/hw5ConnectedBlock.cpp
#include <cmath> #include <iostream> #include <limits.h> #include <vector> #include <deque> using namespace std; int largest = 0; int reachConnected(deque<pair<int, int>> toVisit, int pathLength, int n, int m, vector<vector<int>> &matrix, vector<vector<bool>> &visited) { // breadth first search whil...
ALGO
0.999967
3.558767
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2023-03-09T16:39: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": "6cbfb0ade80...
ee929b16-5746-4594-9ce5-ddb806a3036a
panyan7/CP
Codeforces/Div2/536/E.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int,int> #define pll pair<long long,long long> int tt = 1, n, m, k; const int N = 1e5+10; const int M = 205; int s[N], t[N], d[N], cd[N]; ll dp[N][M], w[N], cw[N]; struct cmp { bool operator()(int a, int b) const { if (d[a...
ALGO
0.999982
3.459608
{ "github_metadata": { "branch": "main", "commit_count": 83, "repo_created_at": "2021-12-16T19:15:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "22810646be8...
07922043-35e4-46c5-b114-7f2877b52064
nathansttt/hog2
shared/RewardUnit.h
/* * $Id: rewardUnit.h * hog2 * * Created by <NAME> on 2/16/05. * Modified by <NAME> on 02/29/20. * * This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information. * */ #include "Unit.h" #include "AStar.h" #ifndef REWARDUNIT_H #define REWARDUNIT_H class rewardUnit : publi...
TOOL
0.937211
5.64147
{ "github_metadata": { "branch": "PDB-refactor", "commit_count": 2251, "repo_created_at": "2015-08-19T21:02:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 117, "forks": 62, "issues": 9, "pull_requests": 1 }, "file_meta": { "content_id":...
65b9b345-1d84-46f4-b4bd-204037a4f83f
sabsar42/Competitive-Programming-Solutions
Square_Root_Algo_Array_Queries.cpp
#include<bits/stdc++.h> #include <tuple> using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define tc() ll t; cin>>t; while(t--) #define endll "\n" #define debug(x) cout << " >> " << #x << " : " << x << en...
ALGO
0.999946
3.928768
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2023-05-02T18:45: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": "fb302379e55...
38e2c8f0-af2f-4019-83f4-a43d2aaaf2b1
OneDay-OneAlgorithm/KimSangMin
5/1202.cpp
// 보석도둑 #include <bits/stdc++.h> using namespace std; typedef long long ll; ll m, v, c, n, k, ret; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n >> k; vector<pair<ll, ll>> gold(n); vector<ll> bag(k); for(int i = 0; i < n; i++) { cin >> g...
ALGO
0.999983
4.356088
{ "github_metadata": { "branch": "main", "commit_count": 47, "repo_created_at": "2023-09-17T02:54:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d9addcfe3ca1...
fd120cd1-3854-49b4-b158-fe8d76a3d78a
d4kw1n/robocar2023-code
Điều khiển/main.ino
// Khai báo các thư viện cần thiết #include <stdio.h> #include <stdint.h> #include <ServoTimer2.h> #include <SoftwareSerial.h> // Chọn cổng cho module bluetooth HC05, ở đây là 0, 1 SoftwareSerial HC05 (9, 8);// RX = 0, TX = 1 // Khai báo các Servo, ở đây là 3 servo ServoTimer2 SERVO_1, SERVO_2, SERVO_3; // Khai báo ...
TOOL
0.900872
4.13033
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-05-20T08:27: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": "2f6b26c4ff27...
7cb296b6-39d1-4982-92eb-d5041781bb83
parveshbarak/CppCompetitiveProgramming
Practice/Codeforces/1721C.cpp
#include<bits/stdc++.h> using namespace std; #define ll long long int #define ld long double #define mod 1000000007 #define inf 1e18 #define pb emplace_back #define vi vector<ll> #define vii vector<vector<ll>> #define vs vector<string> #define pii pair<ll,ll> #define vp vector<pair<ll,ll>> #define mp make_pair #defin...
ALGO
0.999948
3.512327
{ "github_metadata": { "branch": "master", "commit_count": 83, "repo_created_at": "2021-06-14T02:53:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3195b1d08...
c26d60f1-f9f4-400f-ab60-94ed4dc6a743
Descartesr1cosa/NPP_Roe
src/solver.cpp
#include "solve.h" #include <fstream> void solver::Solve_half(Array1D<data_define> &mesh, parameter *par) { double tt = 0.0, dt = 0.0; double2D fluxp(par->N + 1, 7, 1); //-1~par->N-1==-1~mx double2D fluxm(par->N + 1, 7, 1); //-1~par->N-1==-1~mx int Nstep = 0; while (true) { Nstep++; if (fmod(Nstep, 1000) ...
ALGO
0.999987
4.124447
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-09-24T03:57:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1299e245a7b5...
1c27cfc1-2254-4719-9228-fa9ff5eb725e
sp-nitech/SPTK
third_party/SWIPE/vector.cc
/* Copyright (c) 2009-2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, ...
ALGO
0.985514
5.129827
{ "github_metadata": { "branch": "master", "commit_count": 939, "repo_created_at": "2017-09-13T01:15:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 237, "forks": 27, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "abdda0...
48523254-d36e-4830-8fd3-c731f5d93192
SKurzatek/storage-handling-AI
backend/src/Worker.cpp
#include "Worker.hpp" #include "SimulatorParameters.hpp" #include <cmath> #include <algorithm> using namespace std; using namespace Parameters; using namespace SimulatorParameters; Worker::Worker() : Worker(NeuralNetwork()) {} Worker::Worker(NeuralNetwork nn, double x, double y) : neuralNetwork(nn), x(x), y(y), sme...
ALGO
0.990121
5.790948
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2023-07-03T17:29: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": "6e7f6bf2748...
607b0620-1248-4dea-b936-07d9c66e739e
Mengoe/AlgorithmPractice
BarkingDogProblemZip/bfs/2146.cpp
#include <bits/stdc++.h> using namespace std; int board[102][102]; int dist[102][102]; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; int ans = INT_MAX; int numOfSom = -2; // 발견하는 섬마다 dist에 -2,-3. ''' 를 dist에 적어놓음 int n; queue<pair<int, int>> q; bool check(int nx, int ny) { if (nx < 0 || nx >= n || ny < 0 ...
ALGO
0.999578
3.821861
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-10-16T07:28:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f3e3cfefce06...
cb67cd70-8916-4daa-9123-14d5a830d28f
skywalker888888/leetcode
cpp/002. Palindrome Partitioning/2. Palindrome Partitioning.cpp
#include <string> #include <iostream> #include <vector> using namespace std; /** http://leetcode.com/onlinejudge 2. Palindrome Partitioning Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Ret...
ALGO
0.99992
5.731601
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2013-09-21T20:37:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "431534502b...
c0e43076-aeeb-4748-845d-36db2925728f
ASSERT-KTH/Supersonic
predictions/submissions-aizu-gpt35/Codenet/p00537/167172208/response_0.cpp
#include <bits/stdc++.h> using namespace std; struct SegmentTree { vector<int> seg, add; int sz; SegmentTree(int n) { sz = 1; while (sz < n) sz <<= 1; seg.assign(sz << 1, 0), add.assign(sz << 1, 0); } void Add(int a, int b, int x, int k = 1, int l = 0, int r = -1) { if(r < 0) r = sz; ...
ALGO
0.999903
4.646957
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-02-03T10:33:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "99866688454b5...
c155f709-bb65-4889-891f-ae7f650bff83
powware/advent-of-code-2021
src/day_02/part_2.cpp
#include <fstream> #include <filesystem> #include <iterator> #include <algorithm> #include <numeric> #include <vector> #include <iostream> struct Command { std::string direction; unsigned int units; inline friend auto &operator>>(std::istream &is, Command &rhs) { return is >> rhs.direction >> ...
ALGO
0.990915
6.235833
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2021-12-06T01:40:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "12459185d...
ea6c2db6-1913-4cfe-b565-ec2ccbdea897
Neerajsangwa/All-codes-of-3rd-sem
Quick Sort using LL.cpp
//Enter n numbers and sort them by using Quick Sort through LINK LIST. #include <stdio.h> #include <stdlib.h> // Node structure typedef struct Node { int data; struct Node* next; } Node; // Function to create a new node Node* createNode(int data) { Node* newNode = (Node*)malloc(sizeof(Node)); newNode...
ALGO
0.999997
5.702365
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-10-22T05:13:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "70c48f4c18ab...
19cfb299-4cb9-41ce-bb00-595b3f838a38
franv314/competitive
CEOI/2019_diameter/sol.cpp
#include <bits/stdc++.h> using namespace std; constexpr int64_t INF = 2e18; class SegTree { int size; vector<int64_t> arr, lazy; void update(int n, int nb, int ne) { if (lazy[n]) { arr[n] += lazy[n]; if (nb + 1 != ne) { lazy[2 * n] += lazy[...
ALGO
0.999955
4.603785
{ "github_metadata": { "branch": "soluzioni", "commit_count": 263, "repo_created_at": "2023-06-30T15:30:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d55a...
69e29931-d714-4519-a554-887af7bf895c
SanskritiAcharya/oop
array_ques10.cpp
#include <iostream> #include <vector> using namespace std; int findFirstOccurrence(const vector<int>& arr, int target) { int low = 0; int high = arr.size() - 1; int result = -1; while (low <= high) { int mid = low + (high - low) / 2; if (arr[mid] == target) { result = mid; ...
ALGO
0.999923
6.645871
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-09-17T02:32:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e923a536e6ac...
cb112365-ab3f-4073-8afd-bf878c4615c0
thomasy314/The-Thunder-Dungeon
GameLibrary/sources/BattleAgent.cpp
#include <vector> #include <iostream> #include <cmath> #include "../headers/BattleAgent.h" /** * @brief BattleAgent::AddSkill * * Save the moveset of the opponent for better predictions fo what move to use * * @param new_skill */ void BattleAgent::AddSkill(Skill new_skill){ for(Skill& skill : player_skills)...
ALGO
0.94676
5.51665
{ "github_metadata": { "branch": "master", "commit_count": 52, "repo_created_at": "2018-09-30T21:17: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": "3346aaed6...
ef4db306-92ce-4aac-b064-d434a204fa44
4kaps/2023cpp
기말/행렬곱셈.cpp
#include <iostream> using namespace std; int main(){ int k; cin >> k; for(int i=0; i<k; i++){ int r, s, t; cin >> r >> s >> t; int **A = new int *[r]; for(int j=0; j<r; j++){ A[j] = new int [s](); for(int l=0; l<s; l++){ cin >> A[j][l...
ALGO
0.998432
3.025648
{ "github_metadata": { "branch": "main", "commit_count": 31, "repo_created_at": "2023-04-06T05:36: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": "49035e050f1...
5863425e-dd8f-4854-94e8-1c4e66923061
vaibhavc2/cpp_large_repo
My_Directories_vscode/dir1/check-pythagorean-triplet.cpp
#include <iostream> #include <math.h> using namespace std; bool pytha(int x, int y, int z) { int a = max(x, max(y, z)), b, c; if (a == x) { b = y; c = z; } else if (a == y) { b = x; c = z; } else { b = x; c = y; } if (pow(a,...
ALGO
0.999201
4.831594
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-11-14T21:06: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": "3b993e195ef8...
ac323938-d065-47f0-8de4-ff1d5c671f90
bgreni/CMPUT403Sols
Week3/minibattleship.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; /* <NAME> 1545276 bgrenier List any resources you used below (eg. urls, name of the algorithm from our code archive). Remember, you are permitted to get help with general concepts about algorithms and problem solving, but you a...
ALGO
0.999034
4.889966
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2021-01-14T06:47: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": "099d24062...
71449620-c87a-4a7f-85c5-79343160f014
apple/turicreate
src/toolkits/graph_analytics/label_propagation.cpp
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #include <toolkits/graph_analytics/label_propagation.hpp> #include <model_server/lib/toolkit_functio...
ALGO
0.995384
7.123951
{ "github_metadata": { "branch": "main", "commit_count": 1571, "repo_created_at": "2017-12-01T00:42:04.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11198, "forks": 1137, "issues": 502, "pull_requests": 21 }, "file_meta": { "content_id": "...
a1993d77-6a4c-4825-8a4b-659235c3d056
jp1971/step-sequencer
jp1971_step_sequencer.ino
/* * JP1971 Step Sequencer * read 1 of 8 analog values into single analog input pin with 4051 multiplexer */ // array of pins used to select 1 of 8 inputs on multiplexer const int select[] = {2,3,4}; // pins connected to the 4051 input select lines const int analogPin = 0; // the analog pin connected to multip...
TOOL
0.992562
5.500152
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2013-02-22T14:23: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": "a6ee7ae7c2...
a372c33e-123d-42fc-aab9-51d635ab9f59
abhibansal530/Codes
codeforces/simple_task1.cpp
//<NAME> #include<bits/stdc++.h> #define PB push_back #define MP make_pair #define F first #define S second #define SZ(a) (int)(a.size()) #define SET(a,b) memset(a,b,sizeof(a)) #define LET(x,a) __typeof(a) x(a) #define TR(v,it) for( LET(it,v.begin()) ; it != v.end() ; it++) #define loop(a,b) for(int i=a;i<b;i++) #defin...
ALGO
0.999965
3.498743
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2016-03-22T19:52: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": "02b276a12...
a2af000d-9b02-437e-bf1e-f82b0c6c0a7e
Beukot/babelbabelbabel
main.cpp
#include <iostream> #include <chrono> #include <ctime> #include <cstdlib> #include <cmath> #include <fstream> #include <string> #include <typeinfo> #include <cstddef> #include <windows.h> template <typename T> void populate_arr(T *arr, std::size_t len) { for (int i = 0; i < len; i++) { if (typeid(T) ==...
ALGO
0.999621
4.957924
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2024-11-27T21:00: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": "fc86b81111...
7e6f337b-019d-4072-acaf-4f8b6ae7ea67
Gauransh9958/CRT
SHEET#3 (Arrays)/Fibonacci.cpp
#include <iostream> int main() { int N; std::cin >> N; if (N == 1) { std::cout << 0 << std::endl; return 0; } else if (N == 2) { std::cout << 1 << std::endl; return 0; } long long fib1 = 0, fib2 = 1, fibN; for (int i = 3; i <= N; ++i) { fibN =...
ALGO
0.999992
4.813518
{ "github_metadata": { "branch": "main", "commit_count": 29, "repo_created_at": "2024-08-30T05:15: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": "5a0ea2821fc...
4f0a50da-6ba1-4777-a113-af2b5dc58fa0
dreyus95/AVSP_SourceQualityPrediction
CodeJamCrawler/dataset/11_5644_20.cpp
#include <iostream> using namespace std; bool replace (int r, int c, string v[]) { for (int i = 0; i < r; i++) for (int j = 0; j < c; j++) if (v[i][j] == '#') { if (j + 1 < c && i + 1 < r && v[i][j + 1] == '#' && v[i + 1][j] == '#' && v[i + 1][j + 1] == '#') { v[i][j] = '/';...
ALGO
0.994506
3.96702
{ "github_metadata": { "branch": "master", "commit_count": 70, "repo_created_at": "2017-06-08T21:00: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": "ede5767f4...
e62ffba3-c8d9-422e-971d-5c974a5dd42b
star-bnl/star-sw
StRoot/StHbtMaker/CorrFctn/StHbtCorrFctnDirectYlm.cxx
/**************************************************************************** * $Id: StHbtCorrFctnDirectYlm.cxx,v 1.2 2015/11/02 20:11:06 perev Exp $ * * Author: <NAME>, <EMAIL> * ************************************************************************** * Description: Correlation function that is binned in Ylms d...
ALGO
0.991151
5.297306
{ "github_metadata": { "branch": "main", "commit_count": 38269, "repo_created_at": "2020-11-12T22:30:30.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 29, "forks": 66, "issues": 9, "pull_requests": 29 }, "file_meta": { "content_id": "3ec6f1...
4347878a-34e1-44e8-a31b-27b606544683
qwertyran3/coding
binary_search/676C.cpp
#include<bits/stdc++.h> using namespace std; #define ll long long #define ini(arr, val) memset(arr, (val), sizeof(arr)) #define loop(i,n) for(ll i=0; i<n; i++) #define loop1(i,n) for(ll i=1; i<=n; i++) #define all(a) (a).begin(),(a).end() #define exist(s,e) (s.find(e)!=s.end()) #define dbg(x) cout << #x << ...
ALGO
0.999937
3.503887
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-04-26T07:31: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": "edeae52770...
775e9b40-baf8-4fc3-9694-955248afe6bd
yulana7/is_algos_23-24
lab2/MMM.cpp
#include <iostream> void QuickSort(int arr[], int left, int right, int k) { if (left >= right) { return; } int i = left; int j = right; int pivot = arr[rand() % (right - left + 1) + left]; while (i <= j) { while (arr[i] > pivot) { i++; } while (arr[j...
ALGO
0.999989
5.059795
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-04-23T17:39: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": "2785ff48ebe1...
6a840ed8-4a40-4ff4-b131-5d0d0057905f
jaiisshhh/Snake-Game
main.cpp
#include <iostream> #include <raylib.h> #include <deque> #include <raymath.h> using namespace std; Color green ={185, 229, 232, 255}; // Light Blue Color darkGreen = {58, 89, 209, 255}; // Dark Blue int cellSize = 25; int cellCount = 25; int offSet = 75; const char* highScoreFile = "highscore.txt"; double lastUpdat...
TOOL
0.965103
6.103841
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-06-16T19:54: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": "64bfcc887c33...
a6dffe6e-04c9-4a16-921c-1d4ff74f68f8
voidrishad11/void_on_cpp
Programs/A_Cherry.cpp
/*------------------------------------------------------ author : voidrishad11 created : Saturday | 03 February, 2024 | 23.11.42 ------------------------------------------------------*/ #include <bits/stdc++.h> #include <string> #include <iomanip> #include <vector> #include <algorithm> #include <cmath> #i...
ALGO
0.99995
5.420486
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2023-11-29T17:55:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bd6d0692a6c...
5f842f20-0c9e-49a5-924a-32f6d222643e
WaseemWeshahi/GP
assignment5/src/femLib/Spring.h
#pragma once #include "Element.h" /** This class implements the interface for an elementary energy unit. As a function of deformed, undeformed, and other parameters, such as boundary conditions, each class that extends this one will define a potential energy. The deformed energy depends on a number of nodes....
ALGO
0.955467
5.49247
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-05-08T21:08:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "640b9edf7d1e...
0ba4886e-8bcb-4e5c-911d-26a9ae3e66af
RohanMatre/DSA
tut16.cpp
//--------------Episode-16 :-Call By Value & Call By Reference(V.V.V. IMP)------------------- #include<iostream> using namespace std; int sum(int a,int b){ int c=a+b; return c; } // Call By Value che :- // This will not swap a and b void swap(int a,int b){// temp a b int temp=a; // 4 4 ...
ALGO
0.997317
5.42695
{ "github_metadata": { "branch": "main", "commit_count": 172, "repo_created_at": "2023-07-01T17:10: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": "17ebc297a3...
48277f75-c9de-4cb8-accb-4cc9da2e88d8
legubiao/quadruped_ros2_control
controllers/unitree_guide_controller/src/gait/GaitGenerator.cpp
// // Created by biao on 24-9-18. // #include "unitree_guide_controller/gait/GaitGenerator.h" #include <utility> #include <unitree_guide_controller/control/CtrlComponent.h> #include <unitree_guide_controller/control/Estimator.h> #include <unitree_guide_controller/gait/WaveGenerator.h> GaitGenerator::GaitGenerator(Ct...
ALGO
0.986485
4.837306
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2024-09-09T14:18:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 326, "forks": 35, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "28ce776...
f6291b4b-25bb-492a-a522-087064b35a98
strengthen/LeetCode
C++/497.cpp
__________________________________________________________________________________________________ sample 96 ms submission struct Rectangle { int x; int y; int w; Rectangle(int _x = 0, int _y = 0, int _w = 1) : x(_x), y(_y), w(_w) {} }; class Solution { private: map<int, Rectangle> rects; int p...
ALGO
0.999929
5.733431
{ "github_metadata": { "branch": "master", "commit_count": 518, "repo_created_at": "2018-11-03T06:47:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 883, "forks": 297, "issues": 19, "pull_requests": 0 }, "file_meta": { "content_id": "01d...
65069cfe-2d72-49be-a3df-71f128961a16
leogaudin/webserv
src/ParseConfig.cpp
// // Created by <NAME> on 11/23/23. // #include "../include/Webserv.hpp" Config *conf = new Config[MAX_SERVERS]; int w = 0; std::string *fill_arg(std::string string) { std::string words[100]; std::string* sentence = new std::string[1000]; std::string tmp; int i = 0; int j = 0; int k = 0; ...
WEB
0.95182
3.183959
{ "github_metadata": { "branch": "main", "commit_count": 44, "repo_created_at": "2023-10-19T15:16:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec9f18fa722...
b25dc9df-fd1b-41c6-b337-e6fa4ca3c556
strymj/leg_chaser
src/leg_detection.cpp
#include <leg_chaser/leg_detection.h> using namespace std; Legdet::Legdet(): node_("~"), looprate(30), ScanTopic("/scan"), ClusteredScanTopic("ClusteredScan"), LegScanTopic("LegScan"), LegPointsTopic("LegPoints"), PeopleTopic("People"), LegDMin(0.08), LegDMax(0.16), LegWidthMax(0.4), ClusterThreshold(0.03...
DATA
0.946904
3.852189
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2017-02-06T03:12:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0803b682d...
80220f76-6add-451d-a1eb-26379987e662
BijoySing/Problem-Solving
practice/week/week-5/Day1/a.cpp
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define yes cout << "YES\n" #define no cout << "NO\n" #define int long long int #define pp(x) cout << x << "\n" #define ck(x) cout << #x << " = " << x << "\n" #define endl "\n" #define pb(x) push_back(x) int32_t main() { ios::sync_with_stdi...
ALGO
0.999934
4.691936
{ "github_metadata": { "branch": "main", "commit_count": 152, "repo_created_at": "2023-02-11T19:12: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": "601dbf157f...
f39bf3d2-4936-4702-8efa-ccc04d9f138e
Gongsta/competitive-programming
DMOJ/contests/sac22challenge4junior/p2.cpp
#include <bits/stdc++.h> using namespace std; int arr[100001]; map<string, int> m; int main() { m["square"] = 1; m["circle"] = 2; m["triangle"] = 3; int N, Q; cin >> N >> Q; string a,b; int i; while (Q--) { cin >> a >> b >> i; if (a == "get") { if (arr[i] =...
ALGO
0.995727
3.990207
{ "github_metadata": { "branch": "main", "commit_count": 116, "repo_created_at": "2021-03-06T16:56:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b6df75d293...
3de34f7c-af5e-4230-8795-ca3ee5f8e5a5
4xpl0r3r-misc-repo/curriculumDesign-CityPath
myFunc.cpp
#include "stdpfx.h" #include "data.h" #include "myFunc.h" #include <queue> void drawGV(QGraphicsScene *scene, Data &myData) { scene->clear(); for (std::vector<QGraphicsLineItem *>::iterator it = myData.paths.begin(); it != myData.paths.end(); it++) { scene->addItem(*it); } for (std::vector...
ALGO
0.984776
3.142889
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-06-03T09:09:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "297b5812454...
26695fd6-81ab-4e31-a22b-9feb22874b1f
musenlao4/LeetCode
LeetCode/LeetCode/Problem 15-3Sum/Solution15.cpp
#include "stdafx.h" #include "Solution15.h" #include<unordered_map> Solution15::Solution15() { } Solution15::~Solution15() { } vector<vector<int>> Solution15::threeSum(vector<int>& nums) { vector<vector<int>> vecResult{}; if (nums.empty()) { return vecResult; } std::map<int, int> mapNums{}; for (auto var : ...
ALGO
0.999742
5.787516
{ "github_metadata": { "branch": "master", "commit_count": 115, "repo_created_at": "2018-04-13T06:29: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": "ac758c0c...
e3908936-4a44-47ed-9e51-345f3f22e024
mltraore/Siniflandirma-YapayZeka
siniflandirma.cxx
#include <iostream> #include <cstdlib> #include <string.h> #include <algorithm> #include <math.h> using namespace std; // graftaki eleman yapısı (x , y) koordinatları ve rengi struct Node{ float xKoordinat; float yKoordinat; char renk[10]; struct Node *next; }; typedef struct Node node; typedef node* n...
ALGO
0.997738
4.085604
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-06-02T03:24:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "edc1a71995...
6c17609c-2f9b-482a-b097-f9abcac6377e
dobariyajr30/Basic-DSA-Practice-Problems
Link_List_5.cpp
#include<iostream> #include<conio.h> using namespace std; struct node { int data; struct node *Next; }*Head; void creat() { struct node *temp,*q; int value; cout<<"\n Enter Value:-"; cin>>value; temp=(struct node*)malloc(sizeof(temp)); temp->data=value; temp->Next=NULL; if...
ALGO
0.999493
3.594218
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-02-26T10:37: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": "920f39790d4f...
857e74c4-9d1f-4516-b457-660cddff1168
wgchoi/indoorunderstanding_3dgp
3rdParty/ssvmqp_uci/maximize.cpp
/* * maximize.cpp * * * Created by <NAME> on 3/5/09. * Copyright 2009 __MyCompanyName__. All rights reserved. * */ #include <math.h> #include <sys/types.h> #include "mex.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { //output double *Energies; int *J; // temp arrays ...
ALGO
0.997729
5.627266
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2013-04-17T23:43:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 23, "forks": 16, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5637099...
2734722e-1861-4a51-bea6-4d7c46257161
lserraga/Queing-Theory
main.cpp
#include <iostream> #include <string.h> #include <math.h> #include <random> #include <time.h> #include <iomanip> #include <fstream> using namespace std; class eventList{ private: struct eventNode{ double time; char type; eventNode* next; eventNode* prev; ...
ALGO
0.99914
4.320656
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2017-07-01T15:41: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": "d951ab66cf...
9e9893de-ac88-48ed-a8dd-de24b5a29d13
kashapovd/sibfu
basic_prog_2semester/work16/main.cpp
// <NAME>, 12 вариант, 100% #include <iostream> // std::cout,cin #include <fstream> // std::istream,ostream #include <vector> // std::vector #include <string> // std::string #include <cstring> // strlen #include <algorithm> // std::sort #define DB_PATH_TXT "/home/yaroslav/practical works/...
TOOL
0.910766
3.929585
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2022-07-18T15:33:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e5e98d857...
ddecfd7e-0452-4d9f-ac41-4d40e5ecf738
martin-simeonov/NBU-programming
algorithms/sort_linear/stl_sort_matrix.cpp
#include <iostream> #include <algorithm> using namespace std; int a[10][10], n, m; bool mycmp(int i, int j) { int k = 0; cout << i << " " << j << endl; //for (k = 0; a[k][i] == a[k][j]; ++k); //return a[k][i] < a[k][j]; return true; } int main() { int i, j; cin >> n >> m; for(i = 0; i...
ALGO
0.999839
3.188873
{ "github_metadata": { "branch": "master", "commit_count": 33, "repo_created_at": "2017-11-08T14:51:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eeb0d5ba9...
1ae40e95-db5a-4c34-a729-8122ddd92faa
flatironinstitute/cufinufft
contrib/dirft2d.cpp
#include "dirft.h" #include <iostream> // This is basically a port of dirft2d.f from CMCL package, except with // the 1/nj prefactors for type-1 removed. void dirft2d1(BIGINT nj,FLT* x,FLT *y,CPX* c,int iflag,BIGINT ms, BIGINT mt, CPX* f) /* Direct computation of 2D type-1 nonuniform FFT. Interface same as finufft2d1...
ALGO
0.999173
5.621163
{ "github_metadata": { "branch": "master", "commit_count": 740, "repo_created_at": "2020-05-12T15:27:48.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 89, "forks": 19, "issues": 19, "pull_requests": 4 }, "file_meta": { "content_id": "29c38c...
c505e852-c51d-42a7-adb3-ce7bbb6dd67d
syooseph/YoosephLab
HMMGRASPx_src/utils.h
//============================================================================== // Thu 2010-11-04 05:16:55 PM // //============================================================================== #ifndef UTIL_H #define UTIL_H #include <map> #include <tr1/unordered_map> #include <algorithm> #include <iterator> #include...
TOOL
0.914507
3.952244
{ "github_metadata": { "branch": "master", "commit_count": 96, "repo_created_at": "2016-06-02T18:36:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "edaf8a204...
debf669b-7acf-4d74-a722-8efa7c042e4c
Futsy/Euler
Problem - 051 to 100/Problem - 080.cpp
#include "LargeInt.h" /** Squares untill 100 * 4, 9, 16, 25, 36, 49, 64, 81, 100 * */ int Solve(const int n) { //! N is a square LargeInt upper("100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); LargeInt t1 = 5 * n; LargeInt t2 = 5; ...
ALGO
0.998958
4.245697
{ "github_metadata": { "branch": "master", "commit_count": 128, "repo_created_at": "2013-12-28T01:23:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "785c74cf...
388e87d9-e354-4749-acc2-28f14ca8340e
davoodfazli/threshold-model
threshold.cpp
#include <iostream> #include <cstdlib> #include <limits> #include <iomanip> #include <ctime> #include <cmath> #include <string> #include <fstream> #include <vector> #define step_number 200 #define N 100000 #define T 1000//time #define E 100 //samples for covering data #define E1 1 //samples for covering data #defin...
ALGO
0.999789
4.341495
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2023-12-12T07:43: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": "9a389b79ab4...
d60b6673-2659-4869-b722-0deed4f4637b
Gaurav237/DSA
_11_LinkedList/6_InsertAtPositionLL/main.cpp
// Insert in LL. #include <bits/stdc++.h> using namespace std; struct Node{ int data; Node *next; Node(int d){ data = d; next = nullptr; } }; void printList(Node* head){ Node* curr = head; while(curr != NULL){ cout << curr->data << " "; curr = curr->next; }...
ALGO
0.999924
4.666273
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2023-06-12T11:54: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": "aa3b62b142...
49c86210-c8df-4d9d-99ba-1b16952036fc
KaHIP/mt-KaHIP
extern/stats/include/misc/mat_ops/mean.hpp
/*################################################################################ ## ## Copyright (C) 2011-2018 <NAME> ## ## This file is part of the StatsLib C++ library. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with ...
ALGO
0.985907
6.291444
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2020-11-14T13:07:53.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 8, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f268386bef27...
cf2333ae-0319-44de-b60a-e6122e75cea4
Tanavya/Competitive-Programming
GraphTheory/SPOJ_DynamicGraphConnectivity2.cpp
#include <iostream> #include <vector> #include <algorithm> #include <climits> #include <stdio.h> #include <queue> #include <set> #include <list> #include <cmath> #include <assert.h> #include <bitset> #include <cstring> #include <map> #include <unordered_map> #include <unordered_set> #include <iomanip> //cout << setprec...
ALGO
0.999946
4.681119
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2017-08-31T14:38: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": "00d66ad56...
e2511230-b56a-4aa6-81ff-1032a433a212
lmun/competitiveProgramingSolutions
uva/10306.cpp
#include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <cstring> #include <chrono> #include <complex> #define endl "\n" #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector < vi > #define pii pair<int,int> #define pll pair<long long, long long> #defi...
ALGO
0.999871
4.065234
{ "github_metadata": { "branch": "master", "commit_count": 235, "repo_created_at": "2019-01-22T21:55: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": "afac1e37...
3b89d0a2-300b-4523-8ad0-76d1ba61c190
MohamedHasnaoui/CSES-Problems-Solutions
Tree Algorithms/5_TreeDistances_II.cpp
/** * بسم الله الرحمن الرحيم * ﴾ رَبِّ اشْرَحْ لِي صَدْرِي * وَيَسِّرْ لِي أَمْرِي * وَاحْلُلْ عُقْدَةً مِّن لِّسَانِي * يَفْقَهُوا قَوْلِي ﴿ **/ #include <bits/stdc++.h> #define ll long long #define fi(l, r) for(ll i=l;i<r;i++) #define fj(l, r) for(ll j=l;j<r;j++) #define fir(r, l) f...
ALGO
0.999982
3.866027
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-11-02T10:59:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9c4b96c17f...
98d273c4-d6d2-4aec-ad32-53f81038274b
yashk9293/Love-Babbar-DSA
Lec_027/27_0.cpp
#include<iostream> using namespace std; void update(int **p2) { // p2 = p2 + 1; //kuch change hoga - NO // *p2 = *p2 + 1; //kuch change hoga - YES // before p : 0x61ff08 // after p : 0x61ff0c **p2 = **p2 + 1; //kuch change hoga - YES /...
ALGO
0.994423
4.26651
{ "github_metadata": { "branch": "main", "commit_count": 501, "repo_created_at": "2023-06-24T20:01:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dd36a4d086...
b6ff8c06-3fbb-4a46-aee3-db8f1bdf28c6
Zydiii/LeetCode-Solutions
剑指 Offer II 022-链表中环的入口节点.cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *detectCycle(ListNode *head) { ListNode *nodeInLoop = getNodeInLoop(head); if(nodeInLoop == nullpt...
ALGO
0.999942
5.271262
{ "github_metadata": { "branch": "master", "commit_count": 224, "repo_created_at": "2021-09-14T08:26:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9f7b235c...
f5224e25-9656-4a5a-9ffe-1ac11efe7898
QianMo/GPU-Pro-Books-Source-Code
GPU-Zen/04_Screen Space/03_Practical Gather-based Bokeh Depth of Field/src/mesh/mesh.cpp
#include <mesh/mesh.h> #include <math/main.h> using namespace NMath; void NMesh::ToIndexed(const vector<Vertex>& vertices, vector<Vertex>& indexedVertices, vector<int>& indices) { vector<bool> checkedVertices; for (uint i = 0; i < vertices.size(); i++) checkedVertices.push_back(false); indices.resize(vertices...
ALGO
0.98167
3.43443
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2018-04-25T02:50:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 688, "forks": 349, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "e041e...
43404d32-8597-43c6-9cd3-49386ea682e8
mochangil/Problem_solving
workspace-c++/boj_2606.cpp
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> #include <queue> using namespace std; #define FOR(i, n) for(int i = 0; i < n; i++); typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef vector<vi> vvi; int N,M,cnt=0; int graphs[101][101]; bool visited[10...
ALGO
0.999848
3.30606
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-09-01T11:27: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": "3433cdabc38b...
277d5416-83f1-4f58-a984-436ad99d1a24
atpk/CP
practice/dp/partitionEqualSubestSum.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: bool isSubsetSum(vector<int>arr, int sum){ // code here int n=arr.size(); bool a[sum+1][n+1]={false}; ...
ALGO
0.999737
5.612506
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2021-11-26T17: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": "d1286ad2079...
d57d4632-5c5c-46f1-9a23-2e7b019414f4
byuri1356/algorithm
백준/Gold/2216. 문자열과 점수/문자열과 점수.cc
#include<iostream> #include<algorithm> #include<vector> #include<memory.h> #define fastio cin.tie(0)->ios::sync_with_stdio(0); cout.tie(0); setvbuf(stdout, nullptr, _IOFBF, BUFSIZ); using namespace std; using ll = long long; int a, b, c, dp[3001][3001]; string x, y; int sol(int l, int r) { int& ref = dp[l][r]; if (...
ALGO
0.999904
3.425837
{ "github_metadata": { "branch": "main", "commit_count": 850, "repo_created_at": "2022-01-10T01:54:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7907d270c2...
b34f9544-d390-4adb-b1f4-16e84112fe7b
csd81/code
algos/4/4.01.1.cpp
// c++11 // 4.1.1. Készítsen programot, amelyben egy (nem ciklikus) láncolt listát két tömbbel reprezentál! Az egyik tömb az elemek értékeit, a másik a következő elem indexét tartalmazza. Egész változó tartalmazza a lista első elemének az indexét! Inicializálja a tömböket a következő értékekkel: értékek: {34, 12.55, 89...
ALGO
0.993619
5.048635
{ "github_metadata": { "branch": "main", "commit_count": 138, "repo_created_at": "2025-04-06T21:16:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "2c33d8d80b...
787ebc9c-db59-4cb9-bd4a-bd378c20bf75
sukhijab/a2
src/optLib/RandomMinimizer.h
#pragma once #include "Minimizer.h" #include <random> class RandomMinimizer : public Minimizer { public: RandomMinimizer(const VectorXd &upperLimit = VectorXd(), const VectorXd &lowerLimit = VectorXd(), double fBest = HUGE_VAL) : searchDomainMax(upperLimit), searchDomainMin(lowerLimit), fBest(fBest) { ...
ALGO
0.998137
5.547194
{ "github_metadata": { "branch": "a2", "commit_count": 3, "repo_created_at": "2020-03-19T11:19:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c8f03483efd37f...
aa0a9c9d-0cad-4826-bd3b-b89aa7ff76c9
walrus7521/code
toys/cbox/algo/epi/06.11.cpp
#include <iostream> #include <vector> #include <utility> using namespace std; /* Compute the longest contiguous increasing subarray An array is increasing if each element is less than it succeeding element, except for the last element. Implement an algorithm that takes as input an array A of n eleme...
ALGO
0.99942
4.902178
{ "github_metadata": { "branch": "master", "commit_count": 4820, "repo_created_at": "2015-11-17T19:00:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 8 }, "file_meta": { "content_id": "aac1033...
5700b1fb-ee9b-4512-ba9a-64ef7d8c5908
jancpp/ds8
MaxMinHeap.h
/* Author: <NAME> File: MaxMinHeap.h Date: 3/12/2018 */ #ifndef MAXMIN_HEAP #define MAXMIN_HEAP #include <iostream> #include <queue> #include <math.h> class MaxMinHeap { public: MaxMinHeap(); // @pre: File with numbers // @Post: MaxMin heap // @Return: None void buildheap(); ...
ALGO
0.991149
3.547281
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2018-03-23T14:17: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": "cf9125cd4...
9eacda97-ec7e-4627-a6a7-3fd95c81b643
RupanugaPM/testcase-generator
c++ rng.cpp
#include <bits/stdc++.h> using namespace std; #define all(v) v.begin(),v.end() #define mod1 1000000007LL #define YES cout<<"YES"<<nline #define NO cout<<"NO"<<nline #define mod2 998244353LL #define ll long long #define lld long double #define ull unsigned long long #define nline "\n" #define maxbit(n) 31-__builtin_clz...
ALGO
0.999348
4.100444
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-09-17T06:06:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dcf6e3d187e2...
5002bb77-3ef8-41b2-a037-0bf367d8aa09
NyaanNyaan/library
ntt/arbitrary-ntt.hpp
#pragma once #include "../modint/montgomery-modint.hpp" #include "./ntt.hpp" namespace ArbitraryNTT { using i64 = int64_t; using u128 = __uint128_t; constexpr int32_t m0 = 167772161; constexpr int32_t m1 = 469762049; constexpr int32_t m2 = 754974721; using mint0 = LazyMontgomeryModInt<m0>; using mint1 = LazyMontgomer...
ALGO
0.999198
6.270761
{ "github_metadata": { "branch": "master", "commit_count": 1700, "repo_created_at": "2020-04-11T09:13:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 239, "forks": 20, "issues": 10, "pull_requests": 1 }, "file_meta": { "content_id": "ad3...