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
2e33de11-937e-497d-9dae-2a86bb03454b
Smarth2002/GCI_DSA_BOOTCAMP
9. Strings/can_you_count.cpp
//https://www.hackerearth.com/practice/algorithms/string-algorithm/basics-of-string-manipulation/practice-problems/algorithm/can-you-count-11795975/ #include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--) { string str; cin>>str; int freq[5]={}; ...
ALGO
0.999836
4.067844
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2022-03-13T14:04:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35c4148c601...
607567eb-850a-4c1e-ba97-1f6e3d593357
nmf-wasi/intro-to-algorithms
Module#2.5/print the node values at level L.cpp
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; vector<int> adjacencyList[N]; bool visitArray[N]; int levelArray[N]; void levelTrack(int src) { queue<pair<int, int>> Yuna; visitArray[src] = true; Yuna.push({src, 0}); while (!Yuna.empty()) { pair<int, int> parent = Yuna.f...
ALGO
0.999992
3.909041
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-09-07T17:13: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": "f51807df3a06...
761e1e76-92cf-43b4-a59f-b4998eb14909
notbeblank/data_structure_codes
Chapter2/seqList.cpp
#include<iostream> using namespace std; //顺序表类的抽象类 template<class elemType> class list{ public: virtual void clear();//删除线性表中所有元素 virtual int length()const = 0;//返回线性表的长度 virtual void insert(int i, const elemType &x)=0;//在第i个位置插入元素x virtual void remove(int i) = 0;//移除位置i上的元素 virtual int search(c...
ALGO
0.998771
4.040084
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-06-24T02:49: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": "b9b2a23ccd09...
c01ab47f-4aca-4c93-ae63-41d8549e0d38
iiamdawiid/door_game
DoorGame_Main.cpp
#include <iostream> #include <string> #include "funcs.h" int main() { char playGame; // start game message std::cout << "\n------------------------------\n" << "------------------------------\n" << "Would you like to play a game?\n" << "---------------------------...
TOOL
0.902434
3.669966
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2021-12-23T01:27:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "46150a737b77...
5465db48-9f28-42bf-a870-74088efc6933
KnightLZL/code
lane_follow_pnc/src/collision_detection/collision_detection.cpp
/** * @file collision_detection.cpp * @author ZLLee * @brief * @version 0.1 * @date 2023-07-28 * * @copyright Copyright (c) 2023 * */ #include "../../include/collision_detection/collision_detection.h" using namespace std; namespace lane_follow_pnc { // 障碍物检测的构造函数 CollisionDetection::CollisionDetec...
ALGO
0.997041
3.277624
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2023-07-15T03:55:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4e7db03ab7...
91b9e1e0-32cb-4522-a8a3-c9a6d8aeef8c
openglredbook/examples
tools/obj2vbm/obj2vbm.cpp
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string> #include <vector> #include <algorithm> #include <map> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN // #include <windows.h> #endif #define VBM_FILE_TYPES_ONLY #include "vbm.h" #define GL_NONE 0x0000 #define GL_UNSIGNED_SHORT ...
TOOL
0.940808
3.627087
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2016-07-14T16:04:51.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1209, "forks": 518, "issues": 27, "pull_requests": 5 }, "file_meta": { "content_id": "5dc46...
e2769bb8-65fc-405b-bc4a-0945646b36af
george24601/cp
cf/2/618C.cpp
#include <iostream> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <algorithm> #include <vector> #include <iomanip> #include <set> #include <map> #include <stack> #include <queue> #include <bitset> #include <assert.h> #include <deque> using namespace std; typed...
ALGO
0.999919
3.014376
{ "github_metadata": { "branch": "master", "commit_count": 207, "repo_created_at": "2016-05-05T21:10:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b5aec2f5...
46d7e878-33e5-4958-b719-44181930d853
sunho001215/Lane_Detection
src/lane_class.cpp
#include "opencv2/opencv.hpp" #include "lane_class.h" #include "lane_math.h" #include <vector> using namespace std; Lane::Lane() { for(int i=0; i<3; i++) { coeff[i] = 0; } color = -1; } void Lane::set_color(int color) { this->color = color; } void Lane::input_xy(int x, int y) { pixel...
ALGO
0.98221
4.264919
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2020-07-11T13:05: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": "b45627d02a...
9a98d6a6-695d-4ddc-bbb0-5aa7b20abee9
Yawn-Sean/Daily_CF_Problems
daily_problems/2024/07/0729/personal_submission/cf513b2_bond_james.cpp
/* ੴ ਸਤਿ ਨਾਮੁ ਕਰਤਾ ਪੁਰਖੁ ਨਿਰਭਉ ਨਿਰਵੈਰੁ ਅਕਾਲ ਮੂਰਤਿ ਅਜੂਨੀ ਸੈਭੰ ਗੁਰ ਪ੍ਰਸਾਦਿ */ #include <iostream> #include <bits/stdc++.h> #define FAST_IO ios_base::sync_with_stdio(false), cin.tie(nullptr) #define int long long using namespace std; using ll = long long; using lld = long double; #define mod 10000000007 #define INF 1e...
ALGO
0.999994
4.089771
{ "github_metadata": { "branch": "main", "commit_count": 20410, "repo_created_at": "2024-02-26T01:04:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 478, "forks": 302, "issues": 0, "pull_requests": 7 }, "file_meta": { "content_id": "8477...
60a6528a-75b9-4891-a0f7-6c0ea91a02f7
mdsiaofficial/ProblemSolving
CodeForces/Codeforces Round 896 (Div. 2)/A.cpp
#include <bits/stdc++.h> #define all(s) s.begin(), s.end() using namespace std; using ll = long long; using ull = unsigned long long; const int _N = 1e5 + 5; int T; void solve() { int n; cin >> n; vector<int> a(n); for (int i = 0; i < n; i++) cin >> a[i]; if (n & 1) { cout << "4" << '\n'; cout << "1 " << n -...
ALGO
0.999716
3.510518
{ "github_metadata": { "branch": "master", "commit_count": 1863, "repo_created_at": "2022-06-28T02:10:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "005b27f...
f6d7a02d-122f-4428-b125-bd5adf270e2a
liuyubobobo/Play-Leetcode
1001-1500/1409-Queries-on-a-Permutation-With-Key/cpp-1409/main.cpp
/// Source : https://leetcode.com/problems/queries-on-a-permutation-with-key/ /// Author : liuyubobobo /// Time : 2020-04-11 #include <iostream> #include <vector> using namespace std; /// Brute Force /// Time Complexity: O(m^2) /// Space Complexity: O(m) class Solution { public: vector<int> processQueries(vec...
ALGO
0.999983
5.756817
{ "github_metadata": { "branch": "master", "commit_count": 2592, "repo_created_at": "2016-12-01T17:08:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2732, "forks": 718, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "94...
3fdcb549-9eb4-44d6-97ac-9238d5d62b24
sureyeaah/Competitive
codeforces/ecna-2017/g.cpp
// Gear4 #define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; #define DEBUG(x) cout << '>' << #x << ':' << x << endl; #define FOR0(i,n) for(int i=0, _##i=(n); i<_##i; ++i) #define FOR(i,l,r) for(int i=(l), _##i=(r); i<_##i; ++i) #define FORD(i,l,r) for(int i=(r), _##i=(l); --i>=_##i; ) ...
ALGO
0.999985
3.496721
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2017-11-01T21:03:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f2ecf0e42...
640592b0-bb95-4214-a0b3-0dccadeaf6d5
colinw7/CQSudoku
src/CSudoku.h
#ifndef CSUDOKU_H #define CSUDOKU_H #include <string> #include <vector> #include <set> #include <cassert> #include <sys/types.h> class CSudoku { public: enum { SIZE = 9 }; enum { CELL_SIZE = 3 }; enum { AREA = SIZE*SIZE }; private: // class representing the set of possible for a cell (1-9) cl...
ALGO
0.925896
6.55394
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2013-08-12T12:30:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1df06c3cf...
7d5ea525-92a3-4111-b9ad-084b08c1e6a0
tcmmichaelb139/Competitive-Programming
IOI/2000/walls.cpp
#include "bits/stdc++.h" using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int m, n, l; cin >> m >> n >> l; vector<int> club(l); for (int i = 0; i < l; i++) cin >> club[i]; vector<int> towns[n + 1]; vector<vector<int>> regions(m); set<int> conn[n + 1]...
ALGO
0.99999
4.29799
{ "github_metadata": { "branch": "main", "commit_count": 267, "repo_created_at": "2021-02-18T22:39:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "24d4d7fdfb...
1e496a56-2ae8-450d-8f08-9aafe949bf58
DereckLuo/Coding-Exercises
166. Fraction to Recurring Decimal/166. Fraction to Recurring Decimal/fractionToDecimal.cpp
/** * 166. Fraction to Recurring Decimal * Given two integers representing the numerator and denominator of a fraction, return the fraction * in string format * If the fraction part is repeating, enclose the repeating part in parentheses. * For example, * Given numerator = 1, denominator = 2, return "0.5". * ...
ALGO
0.999112
5.142765
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2017-03-01T19:01: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": "c93d7b4b1b...
74d950e3-bb72-4577-8def-04f6d9cbcb9f
Luerson/problems-resolutions
Leet_code/1269.cpp
class Solution { public: int dp[600][600]; int MOD = 1'000'000'007; int numWays(int steps, int arrLen) { memset(dp, -1, sizeof dp); return solve(0, steps, arrLen); } int solve(int currentPosition, int stepsLeft, int arrLen) { if (dp[currentPosition][stepsLeft] != -1) {...
ALGO
0.999964
5.13906
{ "github_metadata": { "branch": "main", "commit_count": 100, "repo_created_at": "2021-10-09T14:53: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": "e725d38eb5...
e4b46259-da75-44c1-9732-e1ce14d32014
blackbeardONE/CheggHero
coursehero_auto_reg/account_registered_on_20180324/txtsource/346b.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int,int> ii; #define fill(a,x) memset(a,x,sizeof(a)) #define pb push_back #define sz(x) (int)x.size() #define F first #define S second #define FOR(i,a,b) for(int i = a; i<=b; ++i) #define NFOR(i,a,b) for(int i =...
ALGO
0.999994
3.747203
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2018-09-17T03:12:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eae382df6...
d9655098-f4f4-4337-8a1e-de645870e779
RaemorrisV/PS-Solving
BOJ/boj 3085 사탕 게임.cpp
#include <iostream> #include <algorithm> #include <string> using namespace std; int dx[4] = {-1, 1, 0, 0}; // 상 하 좌 우 int dy[4] = {0, 0, -1, 1}; char satang[51][51]; int n; int MAX = -111; string input; bool valide(int r, int c) { if (r >= 1 && r <= n && c >= 1 && c <= n) return true; return false; } vo...
ALGO
0.999965
3.650097
{ "github_metadata": { "branch": "main", "commit_count": 595, "repo_created_at": "2021-07-30T06:00: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": "f9ed20b894...
f0665534-37cd-4184-990d-b9b150942584
senyabanana/school21
cpp-projects/matrix-library-cpp/src/s21_matrix_oop.cpp
#include "s21_matrix_oop.hpp" S21Matrix::S21Matrix() : _rows(0), _columns(0), _matrix(nullptr) {} S21Matrix::S21Matrix(int rows, int columns) : _rows(rows), _columns(columns) { AllocateMemory(_rows, _columns); } S21Matrix::S21Matrix(const S21Matrix& other) : _rows(other._rows), _columns(other._columns), _matri...
ALGO
0.943243
6.263966
{ "github_metadata": { "branch": "main", "commit_count": 34, "repo_created_at": "2024-06-28T08:41: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": "753c91fce3e...
d952019b-aa1b-4e9c-8f63-165c635cd4bd
CGAL/cgal
Spatial_searching/test/Spatial_searching/Building_kd_tree_with_own_pointtype.cpp
//file: test/Spatial_searching/Building_kd_tree_with_own_pointtype.C #include <CGAL/Search_traits.h> #include <CGAL/Search_traits_adapter.h> #include <CGAL/point_generators_3.h> #include <CGAL/Orthogonal_k_neighbor_search.h> #include <cassert> #include "Point.h" #include "Distance.h" #include "Point_with_info.h" type...
TEST
0.984252
6.057077
{ "github_metadata": { "branch": "master", "commit_count": 113659, "repo_created_at": "2014-10-01T12:22:47.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5443, "forks": 1475, "issues": 511, "pull_requests": 136 }, "file_meta": { "content_id...
4c50a6d0-8c67-4fee-9040-804cfecd81fa
franricci/InterpolateProject
InterpolateMLS.cpp
/* * InterpolateMLS.cpp * * Created on: 24/mar/2020 * Author: francescopc */ #include "InterpolateMLS.h" #include <cblas.h> InterpolateMLS::InterpolateMLS(unsigned np, unsigned nc, unsigned qcell,double mass,double deltax,double H) { Np=np; Nc=nc; q=qcell; Mass=mass; dx=deltax; h=H; // TODO Auto-gen...
ALGO
0.998503
4.080098
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-03-27T18:40:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "85e681d028...
e04838c5-4c00-40e2-bf03-45746d935b55
cbhramar/archives
Code/C++ programs/Stanford/sierpinskiCurve.cpp
#include <simplecpp> #include <iostream> using namespace std; const double cenx = 680; const double cenY = 350; void createSCurve(double x, double y, double length, int order); int main(){ initCanvas("The Sierpinski Curve", 1360, 700); createSCurve(680, 350, 200, 3); getClick(); return 0; } void c...
ALGO
0.975732
4.360706
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-04-25T16:43: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": "fd47b650db...
9a922f35-7342-4825-b21e-a80d2095a4aa
FishWoWater/ARCSim-For-SMPL
v0.2.1/hylc/materials/Poly2D.hpp
#ifndef _POLY2D_H_ #define _POLY2D_H_ #include <vector> struct Poly2D { int k0, k1; std::vector<double> c; double xmin, xmax; bool clampx; double ymin, ymax; bool clampy; inline void clamp(double &x, double &y) { if (clampx) x = std::min(std::max(x, xmin), xmax); if (clampy) y = std...
ALGO
0.98538
6.417612
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2022-04-25T11:57:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2c55ae7c...
21fd41e0-0331-4a40-aa7a-a236ab342138
seungjlee/MTL
include/MTL/Math/SVD.h
// // Math Template Library // // Copyright (c) 2014: <NAME>, https://github.com/seungjlee/MTL // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright...
ALGO
0.999943
6.064595
{ "github_metadata": { "branch": "master", "commit_count": 399, "repo_created_at": "2018-03-24T19:46:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "969c7647...
d66ae44e-6534-4206-9bad-38a6c3368d68
shaquib1/code-studio
Total Number of occurrence.cpp
int firstOccur(int arr[], int n, int k) { int s = 0; int e = n - 1; int m = (s + e) / 2; int ans = -1; while (s <= e) { if (arr[m] == k) { ans = m; e = m - 1; } else if (arr[m] > k) { e = m - 1; } else...
ALGO
0.999974
5.649521
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2023-05-06T11:51:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6cd8a97f9...
8c6e5302-23ad-4b2c-a785-36907552e91c
Wang-Jun-Chao/Huawei-OJ
009-4356-判断任意两台计算机的IP地址是否属于同一子网络/source/OJ.cpp
#include <stdlib.h> #include <string.h> #include "OJ.h" /* 功能: 判断两台计算机IP地址是同一子网络。 原型: int IsSameSubNetwork(char * pcIp1, char * pcIp2, char * pcSubNetworkMask); 输入参数: char * pcIP1: 计算机1的IP地址,格式:“192.168.0.254”; char * pcIP2: 计算机2的IP地址,格式:“192.168.0.1”; char * pcSubNetworkMask: 子网掩码,格式:“255.255.255.0...
ALGO
0.981908
4.075932
{ "github_metadata": { "branch": "master", "commit_count": 40, "repo_created_at": "2016-01-15T06:05:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c83cfdd14...
a3b6b915-0500-45a5-b501-07fea809d376
tnt2677/spoj
brckts.cpp
#include <bits/stdc++.h> #define MAX (ll)30005 typedef long long ll; //In this problem, we are given a string containing parenthesis (open and closed), which requires making updates to individual parenthesis (changing an open parenthesis to closed or vice versa), and checking if the whole string represents a correct p...
ALGO
0.999892
4.260214
{ "github_metadata": { "branch": "master", "commit_count": 88, "repo_created_at": "2017-06-16T14:07:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1d79d75a9...
8dcf8ae3-9bee-4763-b09e-fd32af4cc789
wwuhn/wwuhn.github.io
witisoPC/32cpp/贺利坚/图/每对顶点之间的最短路径Floyd.cpp
// 每对顶点之间的最短路径Floyd #include <stdio.h> #include <malloc.h> #include "graph.h" #define MaxSize 100 void Ppath(int path[][MAXV],int i,int j) //前向递归查找路径上的顶点 { int k; k=path[i][j]; if (k==-1) return; //找到了起点则返回 Ppath(path,i,k); //找顶点i的前一个顶点k printf("%d,",k); Ppath(path,k,j); //找顶点k的前一个顶点j }...
ALGO
0.999856
3.553742
{ "github_metadata": { "branch": "master", "commit_count": 589, "repo_created_at": "2019-09-30T00:29:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ef4cc85b...
2b683886-eb47-4c2d-95fd-df529008f440
abdoisd/a
AlgoProbSolvingCourse04/AlgoProbSolvingCourse04/ClsFunctionsCpp04.h
#pragma once using namespace std; #include <iostream> #include <string> class ClsFunctionsCpp04 { public: enum enPassFail{Pass=1,Fail=2}; enum enEvenOdd { Even = 1, Odd = 2 }; int ReadNumber() { int n; cout << "Enter a number: "; cin >> n; return n; } bool IsValidateNumberInRange(int N, int From, int To) ...
TOOL
0.945231
3.758157
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2025-06-08T18:55: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": "91cebdc435...
737b589f-f80e-4dff-bf67-4a76a3f64986
Uber-Career-Prep-2023/Uber-Career_Prep-Homework-Kanchan-Krishna_NEW
Assignment3/Q2Heap.hpp
#ifndef HEAP_HPP #define HEAP_HPP #include <bits/stdc++.h> class MinHeap{ /* root node must be the smallest value in the "binary tree" & this must be recursively true across the tree use a level order traversal to read in the heap root node will be first element in array the valu...
ALGO
0.9914
4.483622
{ "github_metadata": { "branch": "main", "commit_count": 87, "repo_created_at": "2023-03-20T21:59:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f82e5eb32337...
8e1a40e2-fd33-4b82-a226-6694af220419
dnspavankumar/Algorithms
greedy/gas_station.cpp
/*There are some gas stations along a circular route. You are given two integer arrays gas[] denoted as the amount of gas present at each station and cost[] denoted as the cost of travelling to the next station. You have a car with an unlimited gas tank. You begin the journey with an empty tank from one of the gas s...
ALGO
0.999951
5.515259
{ "github_metadata": { "branch": "main", "commit_count": 51, "repo_created_at": "2025-03-30T07:05:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5598edbc433...
c13e171b-7bba-443b-a04f-892acec282e7
BenjaminBLi/ccc-with-c
Timus/1272.cpp
#include <bits/stdc++.h> #define fori(i, st, en) for(int i = st; i < (int) (en); i++) #define rfori(i, st, en) for(int i = st; i >= (int) (en); i--) #define f first #define s second #define pb push_back #define left(i) (i<<1) #define right(i) (i<<1|1) #define mid(l, r) ((l+r)>>1) using namespace std; typedef long long ...
ALGO
0.999969
3.321108
{ "github_metadata": { "branch": "master", "commit_count": 116, "repo_created_at": "2016-12-10T16:08:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "46c3f815...
828c0ccc-ca18-48b8-aa4c-511128eff35a
sakiib/OnlineJudge-Solutions
LOJ Solutions/loj points in rectangle BIT 2D.cpp
#include <bits/stdc++.h> using namespace std; typedef long long int LL; typedef unsigned long long uLL; typedef pair<int,int> ii; typedef pair<int,ii> iii; const int inf = 1e9; const LL INF = 1e18; const int N = 100005; const int MOD = 1e9+7; const double EPS = 1e-6; const double PI = acos(-1.0); #define FOR1(i...
ALGO
0.998812
4.193129
{ "github_metadata": { "branch": "master", "commit_count": 50, "repo_created_at": "2020-08-17T13:46:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cc06ec9df...
30ed5ce5-3b7c-4553-9415-012f279236ea
VPintaric/AdventOfCode2018
d19/s1.cpp
#include <iostream> #include <vector> #include <cstring> #include <functional> #include <cstdio> #include <array> #include <map> using Arguments = std::array< int, 3 >; using Registers = std::array< int, 6 >; struct Instruction { std::function< void( const Arguments &, Registers &) > func; Arguments args; }...
ALGO
0.99947
3.967665
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2018-12-01T10:00:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d4ad9ea6...
b5e08f7b-448c-4e80-b54f-874dead31cfc
HKUST-Aerial-Robotics/EPSILON
core/common/thirdparty/ooqp/include/ooqp/Ma57Solver.h
/* OOQP * * Authors: <NAME>, <NAME> * * (C) 2001 University of Chicago. See Copyright Notification in OOQP */ #ifndef MA57LINSYS_H #define MA57LINSYS_H #include "DoubleLinearSolver.h" #include "SparseSymMatrixHandle.h" #include "Spa...
TOOL
0.963358
5.965464
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2020-09-20T08:27:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 718, "forks": 252, "issues": 13, "pull_requests": 0 }, "file_meta": { "content_id": "e76e2...
0bcbe991-93e8-4aeb-8418-590a89bae04d
Agony5757/SU2-Quantum
SU2-Quantum/Common/src/toolboxes/MMS/CMMSNSTwoHalfSpheresSolution.cpp
/*! * \file CMMSNSTwoHalfSpheresSolution.cpp * \brief Implementations of the member functions of CMMSNSTwoHalfSpheresSolution. * \author <NAME>, <NAME> * \version 7.0.6 "Blackbird" * * SU2 Project Website: https://su2code.github.io * * The SU2 Project is maintained by the SU2 Foundation * (http://su2foundation...
ALGO
0.997801
4.674264
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-11-24T06:18:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "123320a0e2aa...
ee623dd3-d637-443b-beb2-08d474410292
LabrieCam/Sorting-Algorithms-Project
treesort.h
#include <fstream> #include <iostream> #include <bitset> #include <functional> #include <vector> class BSTree { private: //defines node in BST struct Node { int data; Node* right; Node* left; Node(int num) : data(num), right(nullptr), left(nullptr) {} }; //defines roo...
ALGO
0.999736
5.498061
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-02T20: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": "b43e994ce8ff...
757e326b-927e-4bd7-a9be-45c9e12b1340
EducationLawMiningTeam/EducationLawMiningTool
Symbolic Regression/operon/operon-main/include/operon/operators/crossover.hpp
// SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: Copyright 2019-2023 Heal Research #ifndef OPERON_CROSSOVER_HPP #define OPERON_CROSSOVER_HPP #include <cstddef> #include <vector> #include <algorithm> #include <iterator> #include <type_traits> #include <utility> #include "operon/operon_export.hpp" #include "...
ALGO
0.990128
6.907095
{ "github_metadata": { "branch": "main", "commit_count": 35, "repo_created_at": "2024-06-01T12:02:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "15deacf8356...
e3d497b6-d79a-4d75-912f-ae40da80f45f
Harshdev625/CSES-Problem-Set
Removing_Digits.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int, int> #define pll pair<long long, long long> #define vi vector<int> #define vvi vector<vector<int>> #define vvvi vector<vector<vector<int>>> #define vll vector<long long> #define mii map<int, int> #define pb push_back #define f fi...
ALGO
0.999975
4.533402
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2023-01-08T18:58:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a92142fcef5...
b3bbe236-6d02-40bf-bd75-ca3467cd2cdd
ThereWillBeOneDaypyf/PRO
专题5-函数/K/K.cpp
#include<bits/stdc++.h> using namespace std; //thanks to pyf ... //thanks to qhl ... struct Node { string iid, name; vector<int> mark; int sum; double aver; int rank; int id; }; int main() { // freopen("1.in", "r", stdin); // freopen("1.out", "w", stdout); // freopen("2.in", "r", stdin); // freopen("2.out",...
ALGO
0.998219
3.613775
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2017-06-23T14:34:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dec94e9b7...
3a0e6531-b15e-4a42-af1c-890df4a52dec
lelesmk/c-plusplus_projects
4_arrays_cpp/4_arrays_cpp/main.cpp
// // main.cpp // 4_arrays_cpp // // Created by <NAME> on 2018/10/13. // Copyright © 2018 <NAME>. All rights reserved. // #include <iostream> using namespace std; int main() { /* Arrays will store multiple values of the same data type. - think of arrays as boxes in memory. */ ...
TOOL
0.994293
4.253723
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-09-29T16:56: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": "f57733b325...
2abbebce-a91a-4239-9bd1-1b38e9419749
olmo/PDP
Práctica 2/Floyd_1/floyd.cc
#include <iostream> #include <fstream> #include <string.h> #include <cstdlib> #include "Graph.h" #include "mpi.h" using namespace std; int main (int argc, char *argv[]){ int rank, size; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); int nverts; int...
ALGO
0.999843
4.295942
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2011-11-22T08:16:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc97ab616...
e6d343bc-5e3a-4ca3-870b-dd36a63df8c0
Debasish1610/Leetcode-solution
609-find-duplicate-file-in-system/609-find-duplicate-file-in-system.cpp
class Solution { public: vector<vector<string>> findDuplicate(vector<string>& paths) { unordered_map<string, vector<string>> contentPathMapping; vector<vector<string>>output; string pathStr, fileName, fileContent; bool firstSpace = false, isOpenBrac = false, isCloseBrac = false; ...
ALGO
0.998493
5.344754
{ "github_metadata": { "branch": "main", "commit_count": 283, "repo_created_at": "2022-08-11T12:51: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": "40a747b4d7...
b6d86925-bb9c-4f4f-82e4-8abc8eb07d26
Frazzer951/DailyCodingProblem
problems/include/problems_011_020/Problem_014.hpp
#ifndef PROBLEMS_011_020_PROBLEM_014_HPP #define PROBLEMS_011_020_PROBLEM_014_HPP #pragma once /* MEDIUM The area of a circle is defined as πr^2. Estimate π to 3 decimal places using a Monte Carlo method. Hint: The basic equation of a circle is x2 + y2 = r2. */ #include <cstdlib> #include <iostream> inline double m...
ALGO
0.997346
6.075279
{ "github_metadata": { "branch": "main", "commit_count": 609, "repo_created_at": "2021-03-17T15:54:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "3b5e94cb1c...
2fb8a950-7249-461b-91b6-fde59ff91f6d
cool12592/Algorithm-BaekJoon
백준/Silver/2178. 미로 탐색/미로 탐색.cc
#include<iostream> //12시 #include<vector> #include<string> #include<queue> using namespace std; int main() { int row, col; cin >> row >> col; string a; vector<string> vec(row); for (int i = 0; i < row; i++) { cin >> a; vec[i] = a; } queue<pair<int,pair<int,int>>> q; q.push(make_pair(1,make_pair(0, 0)));...
ALGO
0.999921
3.682075
{ "github_metadata": { "branch": "main", "commit_count": 246, "repo_created_at": "2023-04-23T13:08: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": "c87a11b6d6...
0d070095-7a19-43bb-abde-e91627a76526
Karthikzee/DSC
sorting.cpp
#include <bits/stdc++.h> #include <iostream> using namespace std; class Sort { public: void selectionSort(int arr[], int n) { int i, j, min_idx; for (i = 0; i < n-1; i++) { min_idx = i; for (j = i+1; j < n; j++) if (arr[j] < ar...
ALGO
0.999929
5.112365
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2019-08-23T06:19: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": "685c51724...
8a114948-eb66-4493-a4a8-bbe0df024b44
ksobrenat32/cpcfi
contests/training/002/d.cpp
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define FO(i, b) for (int i = 0; i < (b); i++) #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define rFOR(i, a, b) for (int i = (a); i > (b); i--) #define TR(v, arr) ...
ALGO
0.998858
4.854689
{ "github_metadata": { "branch": "main", "commit_count": 154, "repo_created_at": "2024-08-31T00:56:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dd5d4c3ede...
d9948aa2-c638-464f-8276-f23c44118ad7
Landvibe-DataStructure-2022/ENTP-Kyoungryul
W9_P4.cpp
#include <iostream> #include <vector> using namespace std; class PriorityQueue { private: vector<int>v; public: bool empty() { if (v.size() == 0) { return 1; } return 0; } void push(int e) { if (empty()) { v.push_back(e); } else { for (auto i = v.begin(); i != v.end(); i++) { if (e > *i)...
ALGO
0.999976
4.785989
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2022-03-10T23:56:36.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3c862f7604319...
7fbbbdb2-a01e-46df-9818-be9dc612c470
Eagle233Fake/Eagle233-Algorithms
ProgrammerCarl/20250224-/BinaryTree/404.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.999911
6.070855
{ "github_metadata": { "branch": "main", "commit_count": 43, "repo_created_at": "2025-03-05T13:48: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": "2e9ec260cfa...
b3d1abb0-55e7-4a54-b309-129329e2de80
borglab/gtsam
gtsam/constrained/tests/constrainedExample.h
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
ALGO
0.999544
7.09288
{ "github_metadata": { "branch": "develop", "commit_count": 19360, "repo_created_at": "2017-03-27T17:12:06.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3002, "forks": 845, "issues": 99, "pull_requests": 25 }, "file_meta": { "content_id": ...
ca39cf8d-1810-4f1d-beff-78caa899cdcd
ctkhanhly/C-
homework/hw8/hw8.cpp
#include <iostream> #include <vector> #include <string> #include <cmath> using namespace std; class Polynomial{ struct Node{ int coeff; Node* next; //header is nullptr //I didnt do anything in initialization list => fatal error //if i have 2 parameter, next won't get in...
ALGO
0.995341
4.160859
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-03-08T01:27: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": "3eb0c076c3...
aa2d68a1-2f45-4cf2-8004-f2306d498ab1
Lim-Young-hun/Algorithm
programmers/[3차] 방금그곡.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <sstream> using namespace std; vector<string> split(string input, char delimiter) { vector<string> answer; stringstream ss(input); string temp; while (getline(ss, temp, delimiter)) { answer.push_back(temp); } return answer;...
ALGO
0.998635
4.268196
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2021-05-14T14: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": "96d945c7a...
89560604-91ad-4988-ac76-225418cd0ddb
Bkmz21/CompactCNNCascade
src/CNNObjectDetector/cnnpp_cl_cntk.h
/* * Copyright (c) 2018, <NAME> * All rights reserved. * * This is an implementation of the algorithm described in the following paper: * <NAME>, <NAME>, * Compact Convolutional Neural Network Cascade for Face Detection, * http://arxiv.org/abs/1508.01292. * * Redistribution and use of this program as source code or ...
TOOL
0.909791
4.420253
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2017-04-02T14:19:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 158, "forks": 49, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "03a8ea...
476713cd-02b4-4e29-a1f3-faa4bc2297fa
MingChaoXu/TinySTL
study/3/test.cpp
// 3. 实现一个简单的vector #include <iostream> using namespace std; template<typename T> class MyVector{ public: typedef T value; typedef T* iterator; // vector 的 iterator 本质就是一个指针 typedef T& reference; public: MyVector(int len=0): m_len(len), m_Data(nullptr), start(nullptr), pos(0) { if ...
ALGO
0.900604
3.493824
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2023-08-30T09:42: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": "363043b72b...
d4652f0b-7f73-419a-adcf-e87d2cd08117
InfinityByTen/AoC-2020
day01/day1.cpp
#include <algorithm> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <optional> std::vector< int32_t > get_puzzle( ) { std::ifstream file( "./input_1_d1.txt" ); std::vector< int32_t > puzzle; std::string line; while ( std::getline( file, line ) ) ...
ALGO
0.999614
3.346351
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2020-12-28T04:08:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6d728bf3e...
16718c2a-5d87-4fb4-8de6-c8273f1fac43
Indian966/MazeRunner
MazeRunner.cpp
#include <stdio.h> #include <stdlib.h> #include <time.h> #define MAX_STACK_SIZE 100 #define MAZE_SIZE 6 #define EXIT_ROW 5 #define EXIT_COL 5 #define START_ROW 1 #define START_COL 2 #define S 255 #define E -255 #define true 1 #define false 0 int top; int mark[MAX_STACK_SIZE][MAX_STACK_SIZE]; //거쳤는지 저장// int maze...
ALGO
0.998712
3.756269
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-01-06T12:01: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": "a4080b4896...
7172c758-4960-48fd-880e-50cc7810b58c
dilipshirkepune/AdventofCode2024_IMG
day10.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <set> #include <fstream> #include <sstream> using namespace std; int trails; pair<int, int> getNext(vector<string> &map, pair<int, int> &currLoc, int &dir) { int row = currLoc.first; int col = currLoc.second; pair<in...
ALGO
0.999902
4.875939
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2024-12-02T00:42: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": "0b9241236cb...
741afca7-b42f-4515-bbab-c8bf861967d3
taiheioki/procon2014_ut
solver/modules/util/include/util/matrix.hpp
#ifndef UTIL_MATRIX_HPP #define UTIL_MATRIX_HPP #include <iostream> namespace util{ namespace matrix{ // inverse matrix // return false if determinant = 0 // currently support: 1x1, 2x2, 3x3, 4x4 template <int N> bool inv_mat(const double /*in*/[N*N], double /*out*/[N*N]){ std::cerr << "[inv_mat] " << N << "x" <...
TOOL
0.995018
5.650525
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2014-10-21T13:32:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2e1eb8576...
4fb194e8-e9b8-4b7c-bdc2-ea8ff09ee7dd
paritybit-ai/XSCE
src/PSI/delfiles/oprf_psi_bk/oprf_psi_server.cpp
/** * Copyright 2022 The XSCE 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
WEB
0.986071
6.401459
{ "github_metadata": { "branch": "master", "commit_count": 97, "repo_created_at": "2022-07-12T07:55:39.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 18, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d90abdb8c...
d6a1acd3-3e16-4c85-b5e0-2428af497068
Pinheiro712/Pokemon-Soul-Fire
Tipagem.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <unordered_map> #include <sstream> using namespace std; class Typeadv { private: vector<string> tipos; vector<vector<double>> matriz; unordered_map<string, int> indice; public: Typeadv() { tipos = {"Normal",...
TOOL
0.995638
5.087334
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2025-06-17T02:06:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2db51ed692a1...
a574d929-e4c9-4edd-8c3c-dc555e5a9f7f
ydb-platform/ydb
contrib/python/numpy/py3/numpy/core/src/umath/clip.cpp
/** * This module provides the inner loops for the clip ufunc */ #define _UMATHMODULE #define _MULTIARRAYMODULE #define NPY_NO_DEPRECATED_API NPY_API_VERSION #define PY_SSIZE_T_CLEAN #include <Python.h> #include "numpy/halffloat.h" #include "numpy/ndarraytypes.h" #include "numpy/npy_common.h" #include "numpy/npy_ma...
TOOL
0.986299
6.778704
{ "github_metadata": { "branch": "main", "commit_count": 35208, "repo_created_at": "2022-02-07T14:52:36.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4512, "forks": 701, "issues": 2263, "pull_requests": 682 }, "file_meta": { "content_id": ...
1a6d9d8d-203d-40d0-9433-fe09e0fca253
AndreaInfUFSM/elc139-2019a
trabalhos/t8/wave/wave.cpp
/* Adapted from fractal code for CS 4380 / CS 5351 Copyright (c) 2018, Texas State University. All rights reserved. Redistribution and usage in source and binary form, with or without modification, is only permitted for educational use. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ...
ALGO
0.979082
5.472958
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2019-03-10T17:10:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 19, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "875bf13e...
1b2c7e5d-c7e1-489a-b436-04a81b6fc36b
mauriciocele/arap-sr-linearized
src/GA/gl_util.cpp
// This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // This program is distributed in the hope that it will be useful, ...
TOOL
0.95084
4.828943
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2020-10-25T12:13:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aea40c4110c8...
d00d9210-7e5c-440f-8a34-04c0bbd2f65f
shengquan-ni/Schoolproj
ics45c/hw3/String.h
#define MAXLEN 128 #include<iostream> using namespace std; class String { public: /// Both constructors should construct /// this String from the parameter s String( const char * s = ""); String( const String & s ); String& operator = ( const String & s ); char & operator [] ( int index ); ...
TOOL
0.969791
3.67387
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2016-11-24T01:19:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6291f917db...
c49d7708-ffdf-4274-926e-ef179602db7c
sardothien/MATF-materijali
2. godina/aisp vezbe/sortiranje/najduziPodskupUzastopnih.cpp
/* U nizu celih brojeva odrediti najbrojniji * podskup elemenata koji se mogu urediti u * niz uzastopnih celih brojeva. Ako ima * više takvih podskupova, prikazati prvi * (onaj u kojem su brojevi najmanji). * O(nlogn) */ #include<iostream> #include<vector> #include<algorithm> #include<limits> #include<iterator>...
ALGO
0.999959
4.100099
{ "github_metadata": { "branch": "master", "commit_count": 103, "repo_created_at": "2019-11-08T19:58:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c53e6d0...
3bd67225-346b-40d9-a2f5-b58ad8ba72f4
Kaminyou/MyLeetcode
cpp_solutions/2127.cpp
class Solution { public: int maximumInvitations(vector<int>& favorite) { int n = favorite.size(); vector<int> inDegrees(n, 0); for (int i = 0; i < n; ++i) { inDegrees[favorite[i]]++; } vector<bool> visited(n, false); vector<int> depth(n, 1); ...
ALGO
0.999914
5.661817
{ "github_metadata": { "branch": "main", "commit_count": 1983, "repo_created_at": "2022-04-30T05:11:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 3, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "da1178ec...
eba7244a-2294-4a4e-9b31-df95decb7409
ymherklotz/A-star-algorithm
src/astar.cpp
#include "astar.hpp" #include <cmath> #include <iostream> AStar::AStar(int *graph_in, const unsigned int& width, const unsigned int height) : graph(graph_in), graph_width(width), graph_height(height), graph_size(width * height), path_length(PATHLENGTH) { closed_set = new Node[graph_size]; Node tmp; for(unsigned i...
ALGO
0.998612
4.329916
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2016-12-06T15:10:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d61485026...
745200e2-9c33-4ed1-8d6e-eb2531ac325c
Abu-Taher-Siddiki-Adnan/IIUC
Data_Structure/Queue/Priority_Queue_(Linked_List).cpp
//Implementation of a priority queue using linked-list. #include <bits/stdc++.h> using namespace std; class Priority_Queue { struct Node { int val; int priority; Node* next; }; Node* Head; void add(int item,int p) { Node* nn = new Node; nn->val = item; ...
ALGO
0.999905
5.709364
{ "github_metadata": { "branch": "main", "commit_count": 200, "repo_created_at": "2024-10-29T18:17:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "323bdb02fd...
1e42dac2-e54b-4fac-abaf-ae8e2d0b44d0
mhwen/competitive-programming
DMOJ/WOSS_Dual_Olympiad_2023/senior2.cpp
#include <iostream> #include <vector> #include <algorithm> #include <queue> #include <map> #include <set> #include <stack> #include <functional> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n, k; int m; cin >> n >> m >> k; vector<pair<ll, ll>> pos; ...
ALGO
0.999995
4.085808
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-08-27T00:30: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": "ea3b8de73176...
5f9f031f-4a6c-4a07-bd6f-daf035f58f8d
Vaa3D/vaa3d_tools
released_plugins/v3d_plugins/bigneuron_AmosSironi_PrzemyslawGlowacki_SQBTree_plugin/libs/ITK_include/itkImageToImageMetric.h
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
ALGO
0.989157
6.631376
{ "github_metadata": { "branch": "master", "commit_count": 7983, "repo_created_at": "2016-01-27T18:19:17.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 110, "forks": 70, "issues": 11, "pull_requests": 12 }, "file_meta": { "content_id": "832...
927a78e9-78a8-46ec-9db7-4fc790bfb5bb
intervalrain/leetcode_cpp
ggl/MaxWeightExcludeAt.cpp
#include <vector> #include <unordered_map> #include <unordered_set> #include <algorithm> #include <iostream> using namespace std; class MaxWeightExcludeAt { public: int nodeA; int nodeB; int nodeA_res; int nodeB_res; int other_res; int query(int q) { if (q == nodeA) return nodeA_res; else if...
ALGO
0.99953
4.99221
{ "github_metadata": { "branch": "main", "commit_count": 61, "repo_created_at": "2024-05-05T14:40:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec28b67600b...
e3fa5a65-f66c-4fac-a938-d985d7b28df3
bitwiseworks/qtwebengine-chromium-os2
chromium/third_party/libgav1/src/src/post_filter/cdef.cc
// Copyright 2020 The libgav1 Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
ALGO
0.938212
6.74435
{ "github_metadata": { "branch": "master", "commit_count": 160, "repo_created_at": "2019-11-06T19:49:14.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 9, "forks": 2, "issues": 16, "pull_requests": 20 }, "file_meta": { "content_id": "6b285c9...
2a79ac23-92cc-4f2c-8cbe-2400aa455836
SharafMohamed/NetworKit
networkit/cpp/coarsening/ClusteringProjector.cpp
/* * ClusteringProjector.cpp * * Created on: 07.01.2013 * Author: <NAME> (<EMAIL>) */ #include "ClusteringProjector.h" #include "../auxiliary/Log.h" namespace NetworKit { Partition ClusteringProjector::projectBack(const Graph& Gcoarse, const Graph& Gfine, const std::vector<node>& fineToCoarse, const Pa...
ALGO
0.932105
5.947794
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2017-04-22T02:38:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ca704f9922...
b172d7b5-ef9f-4e19-bc30-3ffcecdf6c38
Barbara-LBV/CPP09
ex01/src/RPN.cpp
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* RPN.cpp :+: :+: :+: ...
TOOL
0.936422
4.714779
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2023-10-25T15:49: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": "ce31c2d7a...
53824b4d-7774-407f-a6f9-dfc5254ab457
BaomingRose/practice_Cpp
day9/大数乘.cpp
#if 0 #include<iostream> #include<string> #include<algorithm> using namespace std; void swap(char& a, char& b) { char tmp = a; a = b; b = tmp; } void reverseString(string& str) { int start = 0, end = str.size() - 1; while (start < end) { swap(str[start], str[end]); ++start, --end; } } string Multi(string m...
ALGO
0.999978
4.549779
{ "github_metadata": { "branch": "master", "commit_count": 94, "repo_created_at": "2019-08-27T23:24: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": "9d017d914...
79a9a665-2096-4d15-998f-b5f2b84b5c4a
pmathur007/cp
cpp_USACO/Silver2021Jan/painttime.cpp
#include "bits/stdc++.h" using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N, Q; cin >> N >> Q; string s; cin >> s; vector<int> a(N + 1); for (int i = 1; i <= N; i++) a[i] = s[i - 1] - 65; vector<int> inc(N + 2, 0), dec(N + 2, 0); stack<int> incq, ...
ALGO
0.999944
4.432191
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-11-01T00:45: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": "360664caf69d...
1b42956f-84f6-4d8f-a7a0-c3830b921a58
starrykss/ProblemSolving
Baekjoon Online Judge (BOJ)/Codes/BOJ10814c.cpp
/* * 튜플(TUPLE)을 이용하여 문제 해결하기 */ #include <iostream> #include <vector> #include <algorithm> #include <tuple> using namespace std; int N, age, order; string name; vector<tuple<int, string, int>> users; // 나이, 이름, 가입 순서 bool Compare(tuple<int, string, int> a, tuple<int, string, int> b) { if (get<0>(a) == get<0>...
ALGO
0.99992
4.647285
{ "github_metadata": { "branch": "master", "commit_count": 118, "repo_created_at": "2022-06-15T12:27: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": "47247a22...
541b78e7-0f6c-4b41-9905-dcee7389a9c8
ns-vasilev/challenges
LeetCode/148. Sort List/solution.cpp
/* 148. Sort List Given the head of a linked list, return the list after sorting it in ascending order. */ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListN...
ALGO
0.999997
6.036714
{ "github_metadata": { "branch": "master", "commit_count": 865, "repo_created_at": "2018-07-30T11:30:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "25e9976e...
569bee7a-712d-4c10-a130-8fda5ddb2c66
yeseul106/BaekJoon_algorithm
BaekJoon_c++/Main_1541.cpp
/* -문제: 세준이는 양수와 +, -, 그리고 괄호를 가지고 식을 만들었다. 그리고 나서 세준이는 괄호를 모두 지웠다. 그리고 나서 세준이는 괄호를 적절히 쳐서 이 식의 값을 최소로 만들려고 한다. 괄호를 적절히 쳐서 이 식의 값을 최소로 만드는 프로그램을 작성하시오. -입력: 첫째 줄에 식이 주어진다. 식은 ‘0’~‘9’, ‘+’, 그리고 ‘-’만으로 이루어져 있고, 가장 처음과 마지막 문자는 숫자이다. 그리고 연속해서 두 개 이상의 연산자가 나타나지 않고, 5자리보다 많이 연속되는 숫자는 없다. 수는 0으로 시작할 수 있다. 입력으로 주어지는...
ALGO
0.999992
4.272951
{ "github_metadata": { "branch": "main", "commit_count": 323, "repo_created_at": "2021-01-05T18:16:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "38294b7a58...
adef0cc7-22d7-40ea-a6ed-94621d390e95
iryanraushan/PROGRAMMING
C++/c++ CODES/HCF_LCM.cpp
/* C++ Program to Find HCF of two numbers, C++ program to find LCM of two numbers. */ #include <iostream> using namespace std; int main () { int num1, num2; cout << "Enter two numbers : " << endl; cin >> num1 >> num2; int max = (num1 > num2) ? num1 : num2; while (true) { if (max % num1 == 0 && max % n...
ALGO
0.99723
3.929221
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-08-21T17:19: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": "8cb743ef47ad...
9e24d561-a9a0-4cb0-82d7-20b418961ed5
michaltkacz/travelling-salesman-problem
tsp_simulated_annealing/testing_unit.cpp
#include "testing_unit.h" #include <algorithm> #include <iomanip> #include <iostream> #include "timer.h" testing_unit::testing_unit(string input_file_name, int number_of_repeats, int optimal_path_cost, vector<int> optimal_path_nodes) { input_file_name_ = input_file_name; number_of_repeats_ = number_of_repeats; o...
TEST
0.923956
5.356844
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2021-02-11T18:29:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "72f72398637e...
52f3728a-361b-4ab9-ad57-4960ed923186
am-i-abdullah/Linked-Lists-CPP
linkedList.cpp
#include <iostream> using namespace std; class node { // Node for any type of linked-list public: int value; // DATA in the node node* next; // Next node pointer node* prev; // Previous node pointer node(int value) { // Default Instructor this->value = value; this->next = NULL...
ALGO
0.999033
5.189735
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2022-09-25T12:18: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": "26e605336ab...
59221dea-9ddf-44c3-9603-e500039dafc6
sunkyuj/ps
백준/Gold/1865. 웜홀/웜홀.cc
#include <iostream> #include <algorithm> #include <limits.h> #include <cstring> #include <vector> #define FIO ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define MAX 2000000000 using namespace std; int n, m, w; //지점, 도로, 웜홀 //int road[2501][2501]; //start,end,time //int wormhole[2501][2501]; //st...
ALGO
0.999837
4.848371
{ "github_metadata": { "branch": "master", "commit_count": 298, "repo_created_at": "2023-01-10T15:53:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f9b565b...
6c281dcf-b181-413e-9090-2019ae5eab89
aniketp/multi-level-cache-simulator
include/cache-min.h
/* * Copyright (c) 2019, <NAME> * Copyright (c) 2019, <NAME> * * Submitted to: * CS622A: 2019-20 Fall Semester. Assignment 1 */ #ifndef _CACHE_MIN_H_ #define _CACHE_MIN_H_ #include <fstream> #include <map> #include "cache.h" class CacheMin { public: typedef std::shared_ptr<CacheMin> Ptr; // ctor ...
ALGO
0.919442
5.793818
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2019-08-20T09:54:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b41e4665...
cd65120c-eb67-46d2-9881-199d3a2bc4a9
DipanshuRaj2/Problem_Of_The_Day
Code 360/MEDIUM/Print_Spiral_Matrix.cpp
#include<bits/stdc++.h> using namespace std; #include <bits/stdc++.h> vector<int> spiralPathMatrix(vector<vector<int>> matrix, int n, int m) { // Write your code here. vector<int>arr; int left = 0; int right = m - 1; int top = 0; int bottom = n - 1; int cnt = 0; while(top <= bottom && left <=...
ALGO
0.999992
5.378316
{ "github_metadata": { "branch": "main", "commit_count": 58, "repo_created_at": "2024-08-09T06:10:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bba3ec4e125...
9fbf46be-d999-483c-b36a-85e7d43c4e1e
rrvsrafael/ProgrammingChallenges-MAC0327
codeforces/homer.cpp
#include <iostream> using namespace std; const int MAX_N = 1e4 + 7; int m, n, t; int DP[MAX_N]; bool OK[MAX_N]; int main() { while (scanf("%d%d%d", &m, &n, &t) == 3) { OK[0] = true; for (int i = m; i <= t; i++) if (OK[i - m]) { DP[i] = max(DP[i], DP[i ...
ALGO
0.999851
3.526067
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2019-01-22T00:10: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": "a60dc1613...
8f18c32c-97fe-4bba-b554-965d7f46215f
vanhcao3/applied-algo
algo/graph/all-pair-shortest-path.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; const int INF = 1e9; // Define infinity as a large enough value int main() { int n, m; cin >> n >> m; vector<vector<int>> dist(n, vector<int>(n, INF)); // Initialize distance matrix with infinity // Set the distance from...
ALGO
0.999987
5.144644
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2024-06-01T15:54: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": "96f71051f50...
8399e875-70a2-4b95-9f4c-4e4f5ea97d97
Ankush12217540/DSA
Leetcode_Problems/Array/plus_one_leetocode66.cpp
#include <vector> using namespace std; vector<int> plusOne(vector<int>& digits) { int n = digits.size(); // Start from the last digit and work backwards for (int i = n - 1; i >= 0; --i) { if (digits[i] < 9) { digits[i] += 1; return digits; // No carry, return the update...
ALGO
0.999861
6.626722
{ "github_metadata": { "branch": "main", "commit_count": 154, "repo_created_at": "2024-09-09T15:24:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9207adbada...
186a6432-81b6-44c2-81f9-c1436e2b5107
Asevenx174/CP-source-code-
01_CP_CODE_LIBRARY/graph/graph/bfs/01_bfs_+_print_cp_algo.cpp
#include<bits/stdc++.h> using namespace std ; const int maxx = 1e5+5; int nodes,edges ; vector < vector <int> > adj ; vector < int > p(maxx),d(maxx); vector < bool > used(maxx,false); void bfs(int str) { queue < int > q ; q.push(str); used[str]=true; p[str]=-1; d[str]=0; while(!q.empty()) { ...
ALGO
0.999974
4.488442
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-05-12T16:42: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": "e6fa5868635a...
88185fc7-369b-4e3f-86dc-470f2f48d485
alyoung01/bad_tBug_Network
include/TooN/QR.h
//-*- c++ -*- // Copyright (C) 2012, <NAME> (<EMAIL>) // // This file is part of the TooN Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 2, or (at your option) // a...
ALGO
0.996709
4.903895
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2013-10-21T10:46: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": "927a234f7b...
0f627e71-7628-4af0-9b5a-fe673d241028
ishandutta2007/codeforces-r
romawhite/normal/1610/F.cpp
#define _CRT_SECURE_NO_WARNINGS #pragma comment(linker, "/stack:16777216") #include <string> #include <vector> #include <map> #include <list> #include <iterator> #include <set> #include <queue> #include <iostream> #include <sstream> #include <stack> #include <deque> #include <cmath> #include <memory.h> #include <cstd...
ALGO
0.99992
3.15314
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:58:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc23e0151583...
7473654a-e5c8-4b25-ba0a-eadde26e8451
makarbaderko/losh_22
Lecture 6 Advanced Treap/B6.4.cpp
#include<iostream> using namespace std; long long maxN=2e5; struct Node{ int right; int left; int value; int sz; int pr; int min; }; Node nodes[maxN]; int nodesNumber=0; int getMin (int v) { return (v >= 0)? nodes[v].min: (int)1e9 + 1; } int GetRand(){ return randomik()%(int)2e5 ; } int g...
ALGO
0.999979
4.256838
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2022-06-20T10:43: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": "b989d7deb...
0e6af7e7-fda1-40e2-bada-a9c6998e202e
tsistoza/CppLeetCode
TotalCharsAfterTransformII.cpp
// LeetCode 3337 // Part 1: https://github.com/tsistoza/CSharpLeetCodes/blob/main/TotalCharsAfterTransformI/TotalCharsAfterTransformI.cs #include <iostream> #include <vector> #include <string> #include <numeric> using std::cout, std::endl, std::vector; using std::string, std::accumulate; static string s = "azbk"; sta...
ALGO
0.999952
4.421993
{ "github_metadata": { "branch": "main", "commit_count": 279, "repo_created_at": "2023-08-09T23:18:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "81e2ad9d3a...
e401ba37-b16f-4ccf-91fa-464c0e204f90
priojeetpriyom/competitive-programming
PRE CODE/mo.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; //------------ loop macros #define for0(i, n) for(int i=0; i<n; i++) #define for1(i, n) for(int i=1; i<=n; i++) #define fr(i,start, till) for(int i=start; i<=till; i++) #define frr(i,start, till) for(int i=start; i>=t...
ALGO
0.999853
3.798333
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2018-09-19T15:14:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "32422135c...
17178ab9-4ea7-42b2-9a45-1611c2f37552
sccn/lsl_archived
LSL/liblsl/external/lslboost/next_prior.hpp
// Boost next_prior.hpp header file ---------------------------------------// // (C) Copyright <NAME> and <NAME> 1999-2003. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.lslboost.org/LICENSE_1_0.txt) // See http://www.lslboost.org/l...
TOOL
0.986313
6.805541
{ "github_metadata": { "branch": "master", "commit_count": 590, "repo_created_at": "2015-04-04T00:02:05.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 243, "forks": 133, "issues": 102, "pull_requests": 0 }, "file_meta": { "content_id": "d21...
b8f2a5c6-bf1d-409c-a142-0b31f28c538b
amazingshuttler/C-Graphics-Mini-Projects
DS Project Graph Coloring.cpp
#include<stdio.h> #include<bits/stdc++.h> #include<iostream> #include<graphics.h> #include<vector> #include<conio.h> using namespace std; // Number of vertices in the graph #define V 4 int colors_int[4]={4,3,2,14}; void create_graph(int color[]) { setfillstyle(SOLID_FILL,BLUE); floodfill(1,1,BLUE); setc...
ALGO
0.999168
3.485225
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-09-07T17:13:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8d51a86253...
3e687196-87be-4c5d-afe8-5676618df1f9
Haller17/8Cross
Andrew_Haller 8Cross.cpp
#include <iostream> #include<cmath> using namespace std; bool ok(int cross[], int b){ static int checkList[8][5] = { {-1}, {0,-1}, {1,-1}, {0,1,2,-1}, {1,2,3,-1}, {2,4,-1}, {0,3,4,-1}, {3,4,5,6,-1}}; //Row Test for(int i = 0; i < b; i++) { if(cross[b] == cross[i]) { retu...
ALGO
0.999911
3.89909
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-11-22T06:49: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": "ac845acfa1f6...
1c6a59f9-3945-40df-a5d7-5a209cad5311
DonghoonPark12/problem_solving
Problem_Solving/SWEA/190907swea+(부분 집합).cpp
#include <iostream> #include <cstring> using namespace std; int divide[9]; int vis[9]; int n; int cnt; int flag[9]; void dfs(int pos) { for (int i = 0; i < n; i++) { cout << divide[i] << " "; } cnt++; cout << '\n'; for (int i = pos; i < n; i++) { divide[i] = 1; dfs(i + 1); divide[i] = 0; } } void sub...
ALGO
0.999931
3.595288
{ "github_metadata": { "branch": "master", "commit_count": 141, "repo_created_at": "2019-05-13T04:00:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "58e05f3d...
0e4d4749-f8c0-482c-bd21-e5926ac402d2
Adityazola/ALPRO-4213
Tugas 10/Lat 1/Latihan1.cpp
#include <iostream> #include <cmath> using namespace std; struct fungsi{ // Luas Persegi Panjang int p,l; int luasP; // Luas Lingkaran float r; float luasL; //Volume Kerucut int t; float Vkerucut; //Volume Bola float Vbola; }; struct fungsi myFungsi; int main() { c...
ALGO
0.954339
3.164651
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2023-03-15T13:15: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": "6578dd2f78a...
ecb8be4e-3e0b-4d95-b272-f99ad61c6a1e
perryizgr8/scratchpad
codingame/there_is_no_spoon_ep1.cpp
#include <iostream> #include <string> #include <vector> #include <utility> #include <algorithm> using namespace std; typedef std::vector< std::vector<int> > matrix; //matrix name(sizeX, std::vector<int>(sizeY)); pair<int, int> find_right_nbr(matrix grid, int x, int y) { cerr << "finding right_nbr of " << x <<","...
ALGO
0.999962
3.7237
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2016-12-17T00:42:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "296a56b86...