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
32aeb0ff-58cc-4c24-a708-c920adde9b6d
geek168/Data-Structures-and-Algorithm-Analysis
Tree/generalizedlistlevelorder.cpp
#include "generalizedlistlevelorder.h" Node* inittree(char data) { Node *node = (Node *)malloc(sizeof(Node)); node->data = data; node->lchild = NULL; node->rchild = NULL; return node; } void cleartrees(Node *tree) { if (tree->lchild != NULL) { cleartrees(tree->lchild); } if (tree->rchild != NULL) { clea...
ALGO
0.998194
3.897707
{ "github_metadata": { "branch": "master", "commit_count": 45, "repo_created_at": "2018-08-10T07:43: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": "329005ac0...
c74f4a07-8db1-4bc8-b70a-d26669bc5f5c
mittalprince/DSA
cb/14Sep/Linked-List/merge-sort.cpp
#include <iostream> using namespace std; class Node { public: int data; Node *next; Node(int d) : data(d), next(NULL) { } }; void insertAtHead(Node *&head, int data) { Node *temp = new Node(data); temp->next = head; head = temp; } void printList(Node *head) { if (head == NULL) ...
ALGO
0.999995
5.594111
{ "github_metadata": { "branch": "master", "commit_count": 120, "repo_created_at": "2019-08-21T14:36:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5ccb284f...
5e2ffd37-200e-4740-b56c-9f5dd5a8fbaf
arunkumar-m/cracking_the_coding_interview
LeetCode/jump_game/can_jump.cpp
/* * ===================================================================================== * * Filename: can_jump.cpp * * Version: 1.0 * Created: 12/05/2013 22:31:32 * Revision: none * Compiler: gcc * * ======================================================================...
ALGO
0.999907
5.196214
{ "github_metadata": { "branch": "master", "commit_count": 348, "repo_created_at": "2015-06-26T02:00:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eab08762...
92015e3e-601b-4c41-8edd-0d107588d338
oxSTERBENxo/FINKI
Structured Programming Laboratory Exercises/2.44.cpp
/*Од стандарден влез да се прочита квадратна матриција со број на редици и колони N. Прво се вчитува бројот N а потоа и N*N елементите на матрицата. Да се промени знакот на елементите од главната дијагонала на матрицата (позитивните да станат негативни и обратно). */ #include <iostream> using namespace std; int main(...
ALGO
0.999761
4.510838
{ "github_metadata": { "branch": "master", "commit_count": 520, "repo_created_at": "2024-07-15T10:06:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 7, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "385447fc...
032f5d67-d746-42d8-b4f0-018d545f931e
Nicholas301/Mine-Sweeper
geesespotter.cpp
#include "geesespotter_lib.h" #include <iostream> char *create_board(std::size_t x_dim, std::size_t y_dim){ int size = x_dim * y_dim; char *board = new char[size]; for(int i = 0; i < size; i++){ board[i] = 0x00; } return board; } void clean_board(char * board){ delete[] board; } void ...
ALGO
0.994383
4.588682
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-16T01:49: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": "af861f436f50...
da62fa3b-b09f-454a-a831-5bd787c08270
pritamchaudhary/DSA-Supreme-2.O
Week 13 Generic and Binary Trees/Assignment/diameterOfBinaryTree.cpp
// leetcode 543. Diameter of Binary Tree // Given the root of a binary tree, return the length of the diameter of the tree. // The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. // The length of a path between two nodes is ...
ALGO
0.999846
6.389104
{ "github_metadata": { "branch": "main", "commit_count": 234, "repo_created_at": "2023-09-07T16:08:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a105c72015...
b4b9c1b6-5a1b-4e2f-8897-f4605ae0c985
stamp465/ROBO_STM32
ROBO_townwacht_500rpmtest - Copy/SPI.ino
int SP = 0; int calSP = 0; int calSPL = 0; void setup_spi() { pinMode(PWML,OUTPUT); pinMode(IN1L,OUTPUT); pinMode(IN2L,OUTPUT); pinMode(PWMR,OUTPUT); pinMode(IN1R,OUTPUT); pinMode(IN2R,OUTPUT); adc.begin(i, k, j, m ); // Software SPI (sck, mosi, miso, cs); adc.begin(i, k, j, n ); } void ...
TOOL
0.988323
3.782375
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-12-03T01:02:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ee540e0a2e...
3e9a2400-5cfd-413f-beee-e1e625d4e8e8
JairZhu/Backup-of-undergraduate-study-materials
离散数学/学习资料/判断关系 vc6/function.cpp
//////////////////////////////////////////////////////////////////////// // // FileName : function.cpp // Creator : wdx // Date : 2010-03-25 02:23 // Comment : The implement for the relations-judging for discrete // mathematical structures // //////////////////////////////////////////////////////////////////...
ALGO
0.999149
3.398718
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2019-06-11T13:18:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4546c3ad...
55dc219f-25c7-47ca-ba97-9c916110d664
AnnyConfessor-zz/PA
Ponteiros e arrays/ponteiros-arrays.cpp
#include <iostream> /* Neste programa, sao realizadas operacoes com ponteiros e arrays Demonstra-se que a aritmetica de ponteiros e a desreferenciacao podem ser usadas com arrays Da mesma forma, o operador de indice, ou seja, o [], pode ser usado com ponteiros */ using namespace std; int main(void) { float ar[10];...
ALGO
0.933388
4.134155
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2019-02-14T20:46:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6cce81560...
93dda8d1-c5f8-437c-aa2b-d3af73ad59c4
TheAndreyZakharov/SUAI-Software-Engineering
Data Structures and Algorithms/1 - Анализ сложности алгоритмов/functions.h
#include <iostream> #include <cmath> // Подсчитать сумму всех элементов, имеющих положительные значения int get_sum_pol(int* arr, int size) { int sum = 0; for (int i = 0; i < size; i++) { if (arr[i] > 0) sum += arr[i]; } return sum; } // Подсчитать количество элементов с чётными значениями void ge...
ALGO
0.995422
4.131855
{ "github_metadata": { "branch": "study", "commit_count": 1243, "repo_created_at": "2024-10-11T21:27:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "86faf81c...
50e83442-6e05-4188-8861-5216673c7940
mayuanjason/ros-indigo
actionlib_tutorials/src/fibonacci_server.cpp
#include <ros/ros.h> #include <actionlib/server/simple_action_server.h> #include <actionlib_tutorials/FibonacciAction.h> class FibonacciAction { public: FibonacciAction(std::string name): as_(nh_, name, boost::bind(&FibonacciAction::executeCB, this, _1), false), action_name_(name) { ...
TOOL
0.953643
5.864531
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2017-08-20T01:55: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": "0e86d4e96...
d19c16ff-40a9-4744-92b7-d831483c5d35
liuyubobobo/Play-Leetcode
0001-0500/0259-3Sum-Smaller/cpp-0259/main2.cpp
/// Source : https://leetcode.com/problems/3sum-smaller/ /// Author : liuyubobobo /// Time : 2016-12-05 #include <iostream> #include <vector> #include <cassert> #include <stdexcept> using namespace std; /// Two Pointers /// Sort the entire numbers first. /// For every number nums[i], /// using two pointers techniq...
ALGO
0.999967
6.246375
{ "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": "6b...
c3439cd6-6ff5-4681-a668-c8431419433d
suisen-cp/cp-library-cpp
library/util/rot90.hpp
#ifndef SUISEN_ROT_90 #define SUISEN_ROT_90 #include <string> #include <vector> namespace suisen { /** * O| O| * -+------->j -+----->j * | a c e => | e f * | b d f | c d * v | a b * i v * ...
ALGO
0.985195
7.142344
{ "github_metadata": { "branch": "main", "commit_count": 1417, "repo_created_at": "2021-07-15T19:06:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 19, "forks": 1, "issues": 18, "pull_requests": 0 }, "file_meta": { "content_id": "0c55e01...
1186b547-4891-4c05-b192-856faf7d94be
sachin-27/cses
graph_algorithms/debruijnsequence.cpp
#include <iostream> #include <unordered_set> #include <string> #include <vector> using namespace std; void generateStrings(string& s, unordered_set<string>& set, int n) { if (s.size() == n) { set.insert(s); return; } for (int i = 0; i < 2; i++) { s.push_back('0' + i); gene...
ALGO
0.999989
5.126171
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-08-04T07:22: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": "65daea134516...
02a344dd-e280-427c-b3e7-32149a01ef1f
KeunJuSong/Spot-the-difference-Game
Term_Project_Vision/Term_Project_Vision/Vision_Term_Projects.cpp
#include <opencv2/opencv.hpp> #include <string.h> using namespace cv; using namespace std; Point kpt[1024]; Point Answer[3]; void setLabel(Mat& image, string str, vector<Point> contour, int index) { int fontface = FONT_HERSHEY_SIMPLEX; double scale = 0.5; int thickness = 1; int baseline = 0; Size text = getTex...
TOOL
0.946818
3.313173
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2021-01-05T08:23: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": "960e99f873...
0e948f3d-e7de-4842-a65f-04d45378d646
ROCm/MIOpen
src/kernels/MIOpenSoftmaxAttn.cpp
/******************************************************************************* * * MIT License * * Copyright (c) 2023 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
ALGO
0.998579
6.283148
{ "github_metadata": { "branch": "develop", "commit_count": 10212, "repo_created_at": "2017-06-27T17:51:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1169, "forks": 266, "issues": 228, "pull_requests": 40 }, "file_meta": { "content_id":...
6caa36f7-e2d9-4df3-bcdc-a16bb167fbf5
hakomori64/atcoder
abc/74c.cpp
#include <bits/stdc++.h> #define rep(i, n) for(ll i = 0; i < n; i++) #define repr(i, n) for(ll i = n; i >= 0; i--) #define inf LLONG_MAX #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef vector<ll> vll; typedef vector<vll> vvll; int main() { ll A, B, C, D, E, F; cin >> A >> B >>...
ALGO
0.999811
3.191716
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-12-20T13:41: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": "750d07e304...
bf18c98c-1920-4278-86a6-9e3bd322d3ec
Yaqoob7803/OceanLevels
Chapter2Exercise7.cpp
/* file name:Chapter2exercise7.cpp GitHub URL: https://github.com/Yaqoob7803/OceanLevels/blob/main/Chapter2Exercise7.cpp programmer:<NAME> Date:January 2025 Requirements: Ocean Levels Assuming the ocean's level is currently rising at about 1.5 millimeters per year, write a program that displays: • The number of milli...
ALGO
0.985495
4.640568
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-01-31T05:37:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "91469eb9e41e...
97fed01d-0158-4910-9819-e8b6241713a0
Dkingofcode/StriverDSA
Starpyramid.cpp
#include<iostream> #include<algorithm> using namespace std; void pattern(int N){ // This is the outer loop for the rows for(int i = 0; i < N; ++i){ // For printing th4e spaces before stars in each row for(int j = 0; j < N-i-1; ++j){ cout << " "; } // for printing th...
ALGO
0.999953
4.316311
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-03-21T00:52: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": "7ddbc0df14...
ff186ea9-078a-4556-8556-381e88aadc07
alexandraback/datacollection
solutions_5648941810974720_0/C++/tomoya/a.cc
#include <iostream> #include <vector> #include <string> using namespace std; int consume(string num, char key, vector<int>& chCount) { int target = key - 'A'; int ret = chCount[target]; for (int i = 0; i < num.size(); i++) { int index = num[i] - 'A'; chCount[index] -= ret; } return ret; } int main(...
ALGO
0.999741
4.539175
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2017-03-08T11:33:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fbc976ccd...
4913d485-0804-40b6-a6d3-88e66b2ad201
congtrung2k1/Algorithms
#2CTinGĐ1619/Trại hè Đồng Nai/K12/DAY6/Chiều/mpoints.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long const int nmax = 1e5 + 1; const int wmax = 1e6; const ll oo = (ll)nmax * wmax; int n,m,k,cnt; ll d[nmax]; struct node{ int v,w; }; vector<node> a[nmax]; struct heapNode { int u; ll val; inline bool operator < (const heapNode& other) co...
ALGO
0.999989
4.698946
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2019-12-16T17:11:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8876fee1be...
fb51224d-4034-41f8-a17a-d9e80382501c
anubhvshrma18/LeetCode-Solutions
3163. String Compression III.cpp
// T.C. - O(N) // S.C. - O(N) // Two Pointer class Solution { public: string compressedString(string word) { int n = word.size(); int i=0,j=0; string ans = ""; while(i<n) { int cnt = 0; // count the character until it occured 9 times while(j<n && ...
ALGO
0.999992
5.826198
{ "github_metadata": { "branch": "main", "commit_count": 64, "repo_created_at": "2020-12-02T10:02:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e515ddd67bb...
c0dd290b-1e4f-4ec5-9889-1790e04dc370
ftiasch/mithril
2013-05-09/D.cpp
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <complex> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <c...
ALGO
0.999979
4.242921
{ "github_metadata": { "branch": "master", "commit_count": 162, "repo_created_at": "2012-07-17T06:58:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 3, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "bd5ab29...
1d7a6d9b-9d45-4356-87fe-c73788108cff
abhishekvtangod/competitive-programming
hackerrank/making-anagrams.cpp
// [abhishekvtangod] // g++ -Wall -Wextra -Wshadow filename.cpp #include<bits/stdc++.h> using namespace std; #define DEBUG(x) cout << '>' << #x << ':' << x << endl; #define REP(i,n) for(int i=0;i<(n);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 ITR(z) for(aut...
ALGO
0.999956
3.562199
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2020-02-19T16:55: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": "1b0639af7...
f8988760-7f0c-49c0-88f2-d95367ed2e42
Larry-Kuo/Leetcode
P200_numIslands.cpp
class Solution { public: void islands(vector<vector<char>>& grid, vector<vector <bool>> &vis, pair<int, int> coor){ int x = coor.first; int y = coor.second; if(grid[y][x] == '0'||vis[y][x]) return; else { vis[y][x] = true; if(x-1>=0){ ...
ALGO
0.999946
6.372265
{ "github_metadata": { "branch": "master", "commit_count": 45, "repo_created_at": "2024-06-19T14:18:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "793ec15d1...
58d259dd-6269-4ff3-9d39-793fa3d71eb6
jingyu-tong/leetcode
Top_Interview_Questions/10_RegularExpresstionMatching.cpp
/* **recursion */ class Solution { public: bool isMatch(string s, string p) { //长度小于1 if(p.empty()) return s.empty(); if (p.size() == 1) { return (s.size() == 1 && (s[0] == p[0] || p[0] == '.')); } //长度大于等于2 //不为*,减而治之 if(p[1] != '*') { ...
ALGO
0.999876
4.829359
{ "github_metadata": { "branch": "master", "commit_count": 99, "repo_created_at": "2019-04-28T06:44:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1d92ea8b8...
078765dc-1dc2-476d-9564-f12c2509594d
matthewsamuel95/ACM-ICPC-Algorithms
String/String Automaton/suffix_automaton.cpp
struct state { int len, link; map<char, int> next; }; const int N = 300000 + 5; struct SA { state st[2 * N]; int fpos[2 * N]; int sz, last; void sa_init() { sz = last = 0; st[0].len = 0; st[0].link = -1; ++sz; } void sa_extend(char c) { ...
ALGO
0.999992
3.530202
{ "github_metadata": { "branch": "master", "commit_count": 1421, "repo_created_at": "2017-10-21T21:46:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2203, "forks": 1277, "issues": 4, "pull_requests": 48 }, "file_meta": { "content_id": "...
164c6e41-d636-4535-b8f9-07e85080a9f0
BekzhanKassenov/olymp
codeforces.com/Contests/336 div 1/A/A.cpp
/**************************************** ** Solution by <NAME> ** ****************************************/ #include <bits/stdc++.h> using namespace std; #define F first #define S second #define MP make_pair #define all(x) (x).begin(), (x).end() typedef long long ll; typedef unsigned long long ull; typedef ...
ALGO
0.99977
3.540212
{ "github_metadata": { "branch": "master", "commit_count": 426, "repo_created_at": "2015-07-29T15:25:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "79939f1d...
c645a686-8192-4fec-b237-015dfb704727
piernagorda/Ejercicios-FAL-FDI
81-Desierto-EXAMEN/Source.cpp
#include <iostream> #include <fstream> #include <vector> int resolver(std::vector<int> const& estimacionAgua, int integrantes, int ini, int fin) { if (ini == fin) { int diasRestantes = estimacionAgua.size() - 1 - ini; if (estimacionAgua[ini] > diasRestantes * integrantes) return -1; else re...
ALGO
0.999979
3.9386
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-03-14T00:36: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": "2e8f24f196e2...
abd275fc-ccd0-4877-8dc1-7df2647cb276
koth/elements-of-programming-interviews
Drawing_skylines.cpp
// Copyright (c) 2013 Elements of Programming Interviews. All rights reserved. #include <algorithm> #include <cassert> #include <iostream> #include <random> #include <vector> using std::cout; using std::default_random_engine; using std::endl; using std::random_device; using std::uniform_int_distribution; using std::v...
ALGO
0.999864
5.57375
{ "github_metadata": { "branch": "master", "commit_count": 60, "repo_created_at": "2016-03-30T01:43:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 14, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "d7820d7...
7f2a9612-acd8-4822-922a-c61b0845fe02
drewthoennes/RPN-Calculator
helpers.cpp
#include <vector> #include <string> #include <stack> #include "helpers.h" #include "operations.h" using namespace std; bool process(stack<double> &values, const string &input) { if (input == "") { return true; } // Custom commands if (input == "exit") { exit (0); } else if (input == "clear") { return clea...
TOOL
0.990051
5.601705
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2017-12-31T05:03:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eed4aa920...
3cd1a66f-473d-48c4-ab87-db3c1b2c96d8
pg30/Competitive-Submissions
codeforces-submissions/Codeforces Round #663 (Div. 2)/D. 505.cpp
/* ########################### # Author : <NAME> # # College : SGSITS # ########################### */ # include <bits/stdc++.h> # include <ext/pb_ds/assoc_container.hpp> # define ll long long int # define ull unsigned long long int # def...
ALGO
0.999938
3.814336
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2020-12-24T14:05: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": "f44b64a592ae...
ab05b4db-dfb8-4571-afe6-80ee0d70d379
Shady0221M/IPMP_prep
Week-3/LL/Easy_Level/practise002_Add_two_numbers.cpp
/*You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself...
ALGO
0.999872
5.896085
{ "github_metadata": { "branch": "main", "commit_count": 31, "repo_created_at": "2024-12-17T16:27: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": "56915d0baae...
725fa5f0-d97a-4358-9992-2b9820ceef23
zignalssss/ProblemSet_CompetitiveProgramming
ICPC2024_practice_session/bitd.cpp
#include<iostream> #include<vector> #include<map> #include<string> using namespace std; map<string, char> initial_keypad() { map<string, char> m_char; m_char["2"] = 'a'; m_char["3"] = 'd'; m_char["22"] = 'b'; m_char["33"] = 'e'; m_char["222"] = 'c'; m_char["333"] = 'f'; m_char["4"] = 'g';...
ALGO
0.999725
3.964404
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-11-11T16:18: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": "7c1383db33f3...
37f9a64f-916c-4773-949d-d3ffaa81fdee
athiazhr/AVLTree-using-C
avl_tree.cpp
#include<stdio.h> #include<stdlib.h> // AVL Tree // b. Write a program to insert, delete and print datas from AVL Tree insertion in C Program struct node{ int nomor; int height; node *left, *right; }; int max(int x, int y){ return(x > y) ? x : y; } int get_height(struct node* Node){ if(!Node) return 0; retu...
ALGO
0.999475
3.419122
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-10-01T15:18: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": "515a1bee62fd...
342aed6c-2dd6-45e9-add7-79d26f4e1da2
M4MD24/Algorithms-and-Problem-Solving-Level-2-by-Programming-Advices
src/_3_problems_from_21_to_30/_3_4_problem_24/Problem24.cpp
#include <iostream> using namespace std; int readPositiveNumber() { int number; do { cout << "Enter positive number:" << endl; cin >> number; } while (number < 1); return number; } short randomNumber( const short FROM, const short TO ) { return rand() % (TO - FROM + 1) + FROM; ...
ALGO
0.919671
4.194848
{ "github_metadata": { "branch": "master", "commit_count": 86, "repo_created_at": "2025-04-22T05:38:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "414e9a409...
bd6766ea-6e14-4bf9-ac1f-ffd2e77e8c6c
Jussick/Codes
jianzhiOffer/32-从1到n整数中1出现的次数.cpp
//C++ file /*********************************************** # # Filename: 32-从1到n整数中1出现的次数.cpp # # Author: luhg - <EMAIL> # Description: --- # Create: 2019-03-26 13:56:10 #**********************************************/ #include<iostream> using namespace std; int numberOf1Between1Andn(int num) { ...
ALGO
0.999597
4.285039
{ "github_metadata": { "branch": "master", "commit_count": 65, "repo_created_at": "2021-12-24T07:56: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": "f3c67199e...
4753e1a3-c7e4-402c-b753-f9d6994d561e
Alpine-DAV/ascent
src/examples/proxies/laghos/laghos_solver.cpp
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights // reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for effic...
ALGO
0.980193
5.711896
{ "github_metadata": { "branch": "develop", "commit_count": 1179, "repo_created_at": "2017-02-08T19:21:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 211, "forks": 68, "issues": 194, "pull_requests": 5 }, "file_meta": { "content_id": "a9...
dfdbadb3-e9fc-420f-b2b1-8f7bc9562d88
dquangminh/DSA-Basics
Greedy/WATERJUG.cpp
#include <stdio.h> #include <deque> #include <utility> #include <set> #define min(a,b) a<b?a:b using namespace std; int min_steps(int a_gallon, int b_gallon, int c_gallon) { // su dung a lam binh lay nuoc // binh b nhan nuoc int steps = 1; // lam day binh a int a = a_gallon; // so nuoc o binh a in...
ALGO
0.999976
5.156404
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2018-06-08T16:21:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f64a26de...
01d63cda-20eb-465f-a52e-108279366d1a
yirenWang/progparallel
01-SIMD/valeur_abs/src/main.cpp
#include <chrono> #include <random> #include <iostream> #include <float.h> #include <immintrin.h> #include <math.h> void print_vector(float *v, int size) { for (int i = 0; i < size; i++) { std::cout << v[i] << std::endl; } } int main(int argc, char *argv[]) { unsigned long int size = atoi(argv...
ALGO
0.99795
5.31261
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2019-02-09T11:37: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": "4b1a5b6e3...
c02d78b9-5d5b-4399-a063-4c2519b0bcc8
LeeGyeongHwan/Algorithm_Student
acm_1057.cpp
/* ACMICPC 문제 번호 : 1057 문제 제목 : 토너먼트 풀이 날짜 : 2020-03-13 Solved By Reamer */ #include <iostream> #include <vector> using namespace std; int main() { int people, A, B; int count = 1; cin >> people >> A >> B; while (1) { //cout << "A : " << A << ", B: " << B << ", count : " << count << ", pe...
ALGO
0.999696
3.540604
{ "github_metadata": { "branch": "master", "commit_count": 692, "repo_created_at": "2019-09-04T05:54:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4c4591c2...
00f96240-9f0f-4668-8b8c-01f360cc912d
JRW2252/OldProjects
C++/Netbeans/MonteCarlo/main.cpp
/* * File: main.cpp * Author: <NAME> * * Created on September 24, 2015, 4:45 PM */ /* approx_pi_darts.cpp Parallel_HW5 Created by <NAME> on 9/22/15. Purpose: simulate throwing darts within a square at random locations. the darts will approximate the value of pi, by calculating the total darts in circle...
ALGO
0.999489
5.358877
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2016-11-18T16:27:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "04f3db8967...
38792155-61d3-4a1c-be6c-26d722e2dd1b
JackBai0914/Competitive-Programming-Codebase
cookoff202010_codechef/f.cpp
/* * * * * * * * * * * * * * * * * * * * * @author: <NAME> * @date: 2020-10-18 18:15:50 * @description: * /Users/jackbai/Desktop/OI/cookoff202010_codechef/f.cpp * * @notes: * g++ -fsanitize=address -ftrapv f.cpp * * * * * * * * * * * * * * * * * */ #include <bits/stdc++.h> #defin...
ALGO
0.999947
4.609263
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-04-14T23:11: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": "0e9eff38d12d...
9771f5fb-f8c8-45d4-8a49-50d168ae2492
gitrider/wxsj2
EngineSDK/ThirdParty/VSInclude/cgal/OpenNL/linear_solver.h
/* * author: <NAME>, INRIA, project ALICE * website: http://www.loria.fr/~levy/software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundation * * This library is distrib...
ALGO
0.997181
7.309081
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2015-08-26T14:38:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 15, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a464ef037...
7c3940d9-17c3-4314-865e-7741f47473cc
SlowerPhoton/DES-Arduino
DESReduced/bits.ino
// the real integer pow int ipow(int base, int exp) { int result = 1; while (exp) { if (exp & 1) result *= base; exp >>= 1; base *= base; } return result; } // returns the value of n-th int from an array of bytes bool bitValue ( byte* bytes, size_t n ) { size_...
ALGO
0.999032
3.960022
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2016-01-18T15:19: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": "11dd09ca0...
217eedb7-d261-4850-b07d-7d4015c12b79
LonelyClover/4_sem_Cpp
M3/M3.cpp
// FINISHED // #include <iostream> #include <cmath> class Rect { private: int x, y; unsigned int wd, hd; public: Rect() { x = 0; y = 0; wd = 1; hd = 1; } Rect(int x_, int y_, unsigned int wd_, unsigned int hd_) { x = x_; y = y_; wd = wd_; ...
TOOL
0.969855
4.289155
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2022-01-26T18:02: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": "b9f627846...
d5ff098a-d178-4e30-b708-b7d3d80492d6
lsw0208/ProgrammingCJUAE101-2023
p.476-1130/main.cpp
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> void swap(const char* type, void* pa, void* pb) { if (strcmp(type, "int") == 0) { int temp = *(int*)pa; *(int*)pa = *(int*)pb; *(int*)pb = temp; } else if (strcmp(type, "double") == 0) { double te...
ALGO
0.998738
4.735057
{ "github_metadata": { "branch": "main", "commit_count": 54, "repo_created_at": "2023-09-07T07:25:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 16, "pull_requests": 0 }, "file_meta": { "content_id": "c6ed4bd952...
0af21216-b271-475e-8dce-b939730d31fb
RBJH/SWExpertAcademy
D3/1230.cpp
// 1230. [S/W 문제해결 기본] 8일차 - 암호문3 #include <iostream> #include <vector> using namespace std; int N; int main() { for (int t = 1; t <= 10; t++) { cin >> N; vector<int> v; int password = 0; for (int n = 0; n < N; n++) { cin >> password; v.push_back(password); } cin >> N; ...
ALGO
0.999033
3.684855
{ "github_metadata": { "branch": "master", "commit_count": 181, "repo_created_at": "2019-08-12T05:20: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": "f4a46e9d...
85128a1f-551f-47d8-9175-995823795799
Miskat362/Data_Structure_Cpp
Heaps/HeapTerminology.cpp
#include <iostream> #include <vector> #include <string> #include<queue> using namespace std; class Heap { vector<int> vec; // max heap public: void push(int val) { // O(log n) vec.push_back(val); // fix heap int x = vec.size() - 1; // child index int parIdx = (x - 1) / 2;...
ALGO
0.999045
5.4367
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2025-04-20T17:44: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": "9c582b92fd7...
08a88db0-23c6-4155-9bf2-f16dc5dad802
gwanryo/baekjoon
1922/1922.cpp
#include <iostream> #include <vector> #include <map> #include <algorithm> using namespace std; struct job { long pre, post, cost; job(int _pre, int _post, int _cost) : pre(_pre), post(_post), cost(_cost) {} inline bool operator < (const job& j) const { return (cost < j.cost); }; inline bool operator > (const job&...
ALGO
0.999958
4.378588
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-02-16T23:37: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": "6bc7937ba1c9...
7a42f304-b661-47e6-829f-de34ae7de8de
NandiniMehta0603/450
Graph/1. BFS of graph.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: // Function to return Breadth First Traversal of given graph. vector<int> bfsOfGraph(int V, vector<int> adj[]) { // unordered_map<int,vector<int>> new_adj; // for(int i=0;i<adj-...
ALGO
0.999982
6.552569
{ "github_metadata": { "branch": "main", "commit_count": 334, "repo_created_at": "2023-03-27T12:12: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": "1f853f5f7b...
00a39101-a018-46eb-a37c-cbcfc1c8cee5
kaiperez76/CS-31
Project5/game.cpp
// // main.cpp // Project 5 // // Created by <NAME> on 11/4/22. // #include <iostream> #include <cstring> #include <cctype> #include "utilities.h" using namespace std; const char WORDFILENAME[] = "/Users/kaiperez/desktop/CS31/Project5/words.txt"; int matchGold (const char hiddenWord [], const char probeWord [])...
ALGO
0.933245
4.178034
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-10-02T19:31: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": "42874073d127...
f21d1dfb-9263-46ff-a50c-d13f63ec4418
yuika-sama/code-ptit-solutions
C++/cpp0337.cpp
#include <bits/stdc++.h> #define faster() {ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);} #define endl '\n' #define precision(x) setprecision(x) << fixed using namespace std; main(){ faster(); int t; cin >> t; while (t--){ string s; cin >> s; int da[26] = {0}; int l=0, res = INT_MAX; int t1 = 0, t2...
ALGO
0.999965
3.945613
{ "github_metadata": { "branch": "main", "commit_count": 70, "repo_created_at": "2023-08-02T23:34:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "848cbae57b9...
61621460-27ed-4196-ad79-f2475a8cfc0a
wazxser/Online-Judge
CCF/201703-2.cpp
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <string> #include <cstring> #include <memory.h> #include <stack> #define INF 0x3f3f3f3f using namespace std; int n, m; int num[1010]; int main(){ while(~scanf("%d", &n)){ for(int i = 1; i <= n; i++){ num[i]...
ALGO
0.999994
3.351088
{ "github_metadata": { "branch": "master", "commit_count": 75, "repo_created_at": "2016-08-22T00:22:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fc34d5261...
4784ab9b-bd2e-4856-9e4c-51c3df41c14b
amandanish882/Polygot
C_Cpp/Introduction to C++ for Financial Engineers source code/Chapter02/TestInequalities.cpp
// TestInequalities.cpp // // Main program (Console-based) to test Max and // Min functions. // // (C) Datasim Education BV 2006 // #include <iostream> // Console input and output using namespace std; // I'll talk about this later #include "Inequalities.hpp" int main() { // Prompt the user for input. Console outp...
ALGO
0.927615
4.47573
{ "github_metadata": { "branch": "master", "commit_count": 102, "repo_created_at": "2020-07-18T19:05:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fd60de18...
29841a2c-352f-4e6f-b0e1-9cec5208cec3
nishitkshah/My-Codeforces-Submissions
Page-017-sol/003-sol/555B_1_d3.cpp
//22:32 15-12-2018 to 22:41 15-12-2018 //23:02 15-12-2018 //23:31 15-12-2018 //23:34 15-12-2018 //23:39 15-12-2018 #include<cstdio> #include<algorithm> #include<set> #include<utility> using namespace std; #define RE(a, b, c) for(int a=(b); a<(c); a++) #define SI(a) scanf("%d", &(a)) #define SL(a) scanf("%I64d", &(a)...
ALGO
1
3.106711
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-08-05T01:51:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "57e64f893a...
90a0d4b1-8cc9-4421-8086-df0b26e645b8
nasa/astrobee
localization/vive_localization/src/vive.h
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with t...
TOOL
0.952438
6.650607
{ "github_metadata": { "branch": "master", "commit_count": 551, "repo_created_at": "2017-08-29T23:16:13.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1170, "forks": 343, "issues": 13, "pull_requests": 11 }, "file_meta": { "content_id": "96...
948fe2dc-e68c-44b8-a59b-b6705f62f1f5
simulahmed003/DensityBasedTrafficControlSystem
lastUpdate.ino
#include <Servo.h> int EnPin[4] = {46, 47, 48, 49}; int ExPin[4] = {50, 51, 52, 53}; int ServoPin[4] = {2, 3, 4, 5}; int En[4] = {0, 0, 0, 0}; int Ex[4] = {0, 0, 0, 0}; int Num[4] = {0, 0, 0, 0}; int EnSTATE[4] = {0, 0, 0, 0}; int ExSTATE[4] = {0, 0, 0, 0}; int EnTOGGLE[4] = {0, 0, 0, 0}; int ExTOGGLE[4] = {0, 0, 0, 0...
TOOL
0.923769
4.56748
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-10-29T19:29:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e62e83219e43...
04c54ca0-3311-4c75-aee0-644ea5b168ba
villagereach/mScan
sandbox/BBTest/ImageProcessing.cc
#include "cv.h" #include "cxcore.h" #include "highgui.h" #include "ImageProcessing.h" #include <string> #include <iostream> #include <fstream> #include "./ImageProcessing.h" using namespace std; using namespace cv; #define DILATION 8 #define BLOCK_SIZE 3 #define DIST_PARAM 500 Mat comparison_vectors; PCA my_PCA; ve...
ALGO
0.975902
4.312944
{ "github_metadata": { "branch": "master", "commit_count": 461, "repo_created_at": "2011-06-14T23:37:12.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c3bab8eb2...
8ca06446-833a-4369-a2b5-58b5882ca8eb
hrhabib07/cpp_for_data_structure
2025/5.May_25/Last_week/all_qeue/D_Come_a_Little_Closer.cpp
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; vector<pair<int, int>> monsters(n); for (int i = 0; i < n; ++i) { cin >> monsters[i].first >> monsters[i].second; } // Compute orig...
ALGO
0.999934
5.01439
{ "github_metadata": { "branch": "main", "commit_count": 296, "repo_created_at": "2024-12-19T07:59: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": "5920397383...
99e1c128-53cf-4c7d-8c5c-fa0cd1af3278
rahul616902/Data-Structure
online editor/anagram.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: // Function is to check whether two strings are anagram of each other or not. bool areAnagrams(string& s1, string& s2) { map<char, int>mp1; map<char, int>mp2; ...
ALGO
0.998037
5.97526
{ "github_metadata": { "branch": "main", "commit_count": 61, "repo_created_at": "2024-10-11T10:44: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": "d528ce3e679...
dfa09514-3089-4242-97b7-7e7028f55a92
csh1668/ProblemSolving
ps_cpp/solved_baekjoon/18439_LCS 6.cpp
#define USE_AVX2 #include <bits/stdc++.h> #ifdef USE_AVX2 #pragma GCC target("avx2") #include <immintrin.h> #endif using namespace std; typedef unsigned long long int ll; constexpr int MAXN = 1'010; template <size_t SIZE> struct my_bitset { static constexpr size_t LEN = (SIZE >> 6) + 1; alignas(32) ll B[LEN...
ALGO
0.999987
4.551616
{ "github_metadata": { "branch": "main", "commit_count": 84, "repo_created_at": "2024-04-28T12:39:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7180ba96933...
f353a479-002d-4d0d-8179-a5ac28a10ede
m265052/si204
lab11/part2.cpp
//<NAME> m265052 //Lab11 pt2 11APR24 //fractals, cantor set working #include <iostream> using namespace std; void repeat(string, int); void cantor_row(int length); int main() { cout << "size: "; int length; cin >> length; //string ...
ALGO
0.999554
3.967955
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2024-01-11T15:54: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": "efef4ef3faf...
2663d585-1815-4b4b-ac10-e0ba77b8a06e
xahiru/CPP_YNU_SPRING_2025
ubaydulloh_43/session_3/8_Find_Third_Largest_String.cpp
#include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; int main() { string arr1[] = {"abcd", "abcde", "abcdef", "abcdefg", "abcdefgh"}; int size1 = sizeof(arr1) / sizeof(arr1[0]); cout << "Array elements: "; for(int i = 0; i < size1; i++) { cout <...
ALGO
0.999461
4.949162
{ "github_metadata": { "branch": "main", "commit_count": 1337, "repo_created_at": "2025-02-26T02:25:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 21, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "8bacc7d5...
bbeee17e-3dbd-4cbc-8293-3fc6ab978d8c
salonigupta1/Codeforces
codeforces/1472/A.cpp
#include <iostream> using namespace std; #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define FIO \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); int main() { ...
ALGO
0.999618
3.840343
{ "github_metadata": { "branch": "master", "commit_count": 235, "repo_created_at": "2021-01-18T11:07: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": "19b79c11...
98cc9f9d-75b6-49f9-bbd0-037bde604694
kristiyantodorov/engineering-academy
binary_search.hpp
/* * binary_search.hpp * * Created on: Dec 3, 2019 * Author: Kristiyan */ #ifndef BINARY_SEARCH_HPP_ #define BINARY_SEARCH_HPP_ #include <vector> std::vector<int> haystack = {-4, 3, 7, 12, 18, 23, 64}; // O(log N) time complexity int binary_search(int needle) { int left = 0, right = haystack.size(); //...
ALGO
0.999772
5.892986
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-12-03T22:06: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": "57c52acd7b...
1ed257b3-d28d-48b6-a14c-d2dd35637856
MakinoRuki/Codeforces
R914/1904C.cpp
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <unordered_map> #include <cmath> #include <set> #include <map> #include <queue> #include <random> #include <ctime> #define N 300005 #define M 1502 #define eps 1e-7 using namespace std; typedef long long ll; const ll...
ALGO
0.999901
3.883005
{ "github_metadata": { "branch": "master", "commit_count": 3630, "repo_created_at": "2017-11-19T03:14: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": "d989884...
81d7f05f-9697-419b-ac2c-69e69e97221b
Gecode/gecode
gecode/int/nvalues/bool-eq.hpp
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * <NAME> <<EMAIL>> * * Copyright: * <NAME>, 2011 * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * Permission is hereby granted, free of charge, t...
ALGO
0.98219
7.293166
{ "github_metadata": { "branch": "master", "commit_count": 5620, "repo_created_at": "2015-11-06T07:33:39.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 309, "forks": 77, "issues": 40, "pull_requests": 9 }, "file_meta": { "content_id": "79f6...
ddd209df-1f8b-4a8b-abc1-f54f249bae5e
karygauss03/Competitive-Programming
Dynamic Programming/TRT-SPOJ.cpp
//KARYGAUSS03 //------------------------------------------------------------------------------ ///////// .///// (((((( ,##### /////////// ******////////((, (((((((((( ########## ///////////********////////((( (((((((((((( ############ /...
ALGO
0.999958
3.522142
{ "github_metadata": { "branch": "main", "commit_count": 58, "repo_created_at": "2021-04-20T20:53:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ac38d46b4b6...
d42eb4fe-6fe2-4fb0-b1b6-540bf52e1fa0
LorenzoTettamanti/LABTNDS
Esercizio 10/Esercizio 10.2/main.cpp
#include <iostream> #include <cmath> #include <iomanip> #include <vector> #include "Seno.h" #include "IntegralMC.h" #include "print_buffer.h" #include "/home/runner/Lezione-11-Tettamanti164/root/include/TH1F.h" #include "/home/runner/Lezione-11-Tettamanti164/root/include/TApplication.h" #include "/home/runner/Lezione...
ALGO
0.999002
4.723592
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-09-17T12:59:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "057b71229c5e...
01b3a0a2-f443-4f31-93bc-09bb33c1d9a6
anilharish/LCPP
Chapter3/decimal_to_binary.cpp
#include <iostream> #include <cmath> long checkdigit(long number, long divider); long numberinput(); long getdivider( long number); int main () { long input {},power{},divider{}; long spacing{1}, checkspacing{}; input = numberinput(); power = getdivider (input); divider = std::pow( 2, power); std::cout <...
ALGO
0.999902
5.108088
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2018-08-22T20:17: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": "6921a4c4f9...
cb5ce1b8-f09c-46d5-8c52-14e0318cdb3e
ishandutta2007/codeforces-e
erray/normal/1374/D.cpp
#include<bits/stdc++.h> using namespace std; template<typename st, typename nd> string to_string(pair<st, nd> P); string to_string (const string& Str) { string r; r+= (char) 34; r+= Str; r+= (char) 34; return r; } string to_string (const bool& B) { return (B ? "true" : "false"); } string to_string (const char& ...
ALGO
0.999933
3.620381
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:34: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": "084889289b95...
6c328e0b-990e-4e87-bb0d-b2e97dad2b19
ArsenyPogosov/olympiad_programs
codeforces/p-двоичные числа.cpp
//source: //status: coding #include <bits/stdc++.h> using namespace std; //#define f_io #pragma region switch_io #ifdef f_io: ifstream fin("input.txt"); ofstream fout("output.txt"); #define cin fin #define cout fout #endif #pragma endregion long long hc = 31; long long n, p; long long cp(long long x) { long long r...
ALGO
0.99987
3.549293
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-04-24T16:00: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": "babeffe229...
d1eae119-031e-4a95-a337-e7d2ef95ea7d
ishandutta2007/codeforces-a
atreus/normal/679/A.cpp
#include <bits/stdc++.h> using namespace std; bool isprime(int n){ for (int i = 2; i <= sqrt(n); i++) if (n % i == 0) return false; return true; } int main() { ios_base::sync_with_stdio(false); for (int i = 2; i < 8; i++){ if (!isprime(i)) continue; cou...
ALGO
0.99954
3.483554
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d2bc7060a4d4...
21142ece-c8c6-48c2-9a0a-f6aaa9f52332
jjjghu/Code
大三上/演算法/作業/hw2 2DRanking/2DRanking.cpp
#include <iostream> #include <fstream> #include <vector> #include <algorithm> #include <iomanip> using namespace std; struct Point { double x, y; int rank; }; void heapify(vector<Point> &arr, int n, int i, bool (*comp)(const Point &, const Point &)) { int largest = i; int left = 2 * i + 1; int righ...
ALGO
0.999942
4.380873
{ "github_metadata": { "branch": "master", "commit_count": 214, "repo_created_at": "2023-10-26T02:36:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f284ec49...
0f64ef49-e655-4ec6-b583-cd69c843075f
ahmedemam/problem-solving-coach-academy
sheet2-complexity-analysis/H-Palindrome-with-leading-zeros.cpp
#include <string> #include <iostream> #include <algorithm> #include <bits/stdc++.h> using namespace std; int main() { string number; cin >> number; string reverseNumber = number; reverse(number.begin(), number.end()); if (number == reverseNumber) { cout << "Yes" << endl; } int count = 0; int len...
ALGO
0.99988
4.182239
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2022-10-26T11:33: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": "0cb5b57a0797...
d0d96656-67a3-4ebe-af34-8a3aa31b383a
msung99/Algorithm_AND_Implementation
스택/W3_P4.cpp
#include <iostream> #include <string> using namespace std; struct node { node* next; int data; }; class Stack { private: node* topNode; int n; public: Stack(); int size(); bool empty(); int top(); void pop(); void push(int data); }; Stack::Stack() { topNode = NULL; n = 0; } int Stack::size() { return n...
ALGO
0.999865
4.254482
{ "github_metadata": { "branch": "main", "commit_count": 964, "repo_created_at": "2022-03-05T04:18: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": "e8e9908189...
e9980b34-2151-408f-8d3e-6d4e9cd693db
Amigomust/XCPC-Template
graph/network_flow/dinic_spfa.cpp
struct edge { int from, to; LL cap, cost; edge(int u, int v, LL c, LL w) : from(u), to(v), cap(c), cost(w) {} }; const int N = 2000; struct MCMF { int n, m = 0, s, t; std::vector<edge> e; vi g[N]; int cur[N], vis[N]; LL dist[N], minc; void init(int n) { for (int i = 0; i ...
ALGO
0.998869
4.123108
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2024-10-27T13:24: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": "136dcd60def...
4c88ea53-6799-4ca0-9c34-014ce5242994
Jay-LJH/LMAPF
im_function_PIBT_1/src/rhcr_warehouse.cpp
#include "rhcr_warehouse.h" RHCR_warehouse::RHCR_warehouse(int seed, int num_of_robots, int rows, int cols, int env_id, vector<vector<int>> py_map, vector<vector<int>> station_map, std::string project_path) : RHCR_class_pibt_learn(seed, num_of_robots, rows...
ALGO
0.974732
4.410523
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2024-10-08T08:10:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2b8f61956...
043a9ca1-259c-480e-bd2f-cbc25f6c87a0
mooncollin/C_plus_plus-Helpful-Libraries
src/cmoon/ranges/zip.ixx
export module cmoon.ranges.zip; import <ranges>; import <functional>; import <utility>; import <iterator>; import <type_traits>; import <tuple>; import <concepts>; import <algorithm>; import <compare>; import <memory>; import cmoon.tuple; import cmoon.math; import cmoon.utility; import cmoon.concepts; namespace cmoo...
TOOL
0.988388
4.164322
{ "github_metadata": { "branch": "master", "commit_count": 104, "repo_created_at": "2019-10-19T05:47:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 10, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "260c2d7...
091dd243-40e2-4578-aea0-d5733a0bfb61
superxkooda/Hello-the-game
fstream/tree.cpp
#include "tree.h" using namespace std; template <class T> template <class X> tree<T>::node<X>::node(node<X> *p, string init) { parent = p; type=init; children(); } //first node's parent should be 0 template <class T> template <class X> tree<T>::node<X>::node(string init) { parent =0; type=init; ...
ALGO
0.977985
3.354878
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2012-07-20T07:46: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": "86e37bb8a7...
55411363-cd12-4e7d-97bd-d2661ee31d41
twisthl/AlgoIII
tp2/ej1/ej1.cpp
#include "ej1.h" Ej1::Ej1(int idOrigen, unsigned int cantEnlaces, vector<Enlace> &enlaces){ this->idOrigen = idOrigen; this->cantEnlaces = cantEnlaces; this->enlaces = enlaces; this->dijkstra = NULL; } double Ej1::resolverPlanDeVuelos(int idDestino){ timespec ts_beg, ts_end; clock_gettime(CLOCK_PROCESS_CPUTIM...
ALGO
0.998825
3.811917
{ "github_metadata": { "branch": "master", "commit_count": 271, "repo_created_at": "2014-08-22T05:23: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": "331d7c67...
4bc9eb0c-0f82-42f3-b389-80b4b43b929e
ArghyaB118/Guide2ICPC
HackerRank/pairSocks.cpp
/* There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. Example: n = 7 ar = [1, 2, 2, 1, 1, 3, 2] There is one pair of color and one of color. There are three odd socks left, on...
ALGO
0.999966
5.522812
{ "github_metadata": { "branch": "master", "commit_count": 30, "repo_created_at": "2019-07-24T05:16:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e14c0b124...
5b130eef-089e-4ecc-92e4-b1a6a566040c
yhwu/rsicnv
src/alglib/specialfunctions.cpp
/************************************************************************* Copyright (c) <NAME> (ALGLIB project). >>> SOURCE LICENSE >>> 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 (www.fsf.org); ...
ALGO
0.995816
5.381351
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2013-10-21T15:01:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 2, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "58f015b949...
4ac324ca-b729-49d1-a69a-be128f572f24
zuhaib786/CompetitiveWork
USACO/Silver/Custom-Comparators/Out-Of-Sorts/OutOfSorts.cpp
#include<bits/stdc++.h> using namespace std; using lli = long long int; using pii = pair<lli, lli>; using vc = vector<lli>; #define ff first #define ss second #define FOR(i,n,k) for(int i = 0; i<n; i+= k) const int maxN = 1e5 + 5; pii arr[maxN]; pii cp[maxN]; void setIO(string name) { cin.tie(0)->sync_with_stdio(0)...
ALGO
0.999985
4.196569
{ "github_metadata": { "branch": "main", "commit_count": 27, "repo_created_at": "2022-04-16T12:03: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": "e822304c711...
476d7369-6789-448b-9fe4-073c29141aac
ishandutta2007/codeforces-i
ilovevoi/normal/1631/B.cpp
/*#pragma GCC optimize("Ofast") #pragma GCC optimization("unroll-loops, no-stack-protector") #pragma GCC target("avx,avx2,fma")*/ #include <bits/stdc++.h> using namespace std; #define ll long long #define pll pair<ll,ll> #define ff first #define ss second #define pb push_back #define endl "\n" #define F(i,a,b) for (...
ALGO
0.99979
4.100786
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T05:39:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "db3588f36759...
55a8ac0f-da18-4ea4-b539-cc6706425dac
xavierbeast68/CodeStudio
Contest/Weekend Contest 81/Ninja And The Cities.cpp
//* https://www.codingninjas.com/studio/contests/weekend-contest-81/8894371/problems/23842 #include <bits/stdc++.h> using namespace std; /* Time complexity: O(K * Log(K)) Space complexity: O(K) Where ‘K = N + M’ and ‘N’ and ‘M’ is the lengths of arrays ‘A’ and ‘B’, */ // DSU datastructure class. class D...
ALGO
0.999924
5.189346
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2023-07-01T19:50:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aa21db675f86...
98527458-6dbe-4666-9b9e-42640e9cf060
MinaFaried3/Junior-Training-Sheet-Dr-Mostafa-Sad
B-problems/code_forces/InnaandNewMatrixofCandies.cpp
#include <set> #include <map> #include <array> #include <list> #include <iomanip> #include <cmath> #include <climits> #include <string> #include <vector> #include <queue> #include <stack> #include <complex> #include <sstream> #include <iostream> #include <fstream> #include <algorithm> #include <numeric> #include <utili...
ALGO
0.999526
3.610985
{ "github_metadata": { "branch": "main", "commit_count": 52, "repo_created_at": "2022-10-20T18:29:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2995254e713...
f8677026-8d6b-466d-9efc-1967748ed45f
shivansh2502/Competitive-Programming
codechef/long/feb_2020/ChefandRailwayStations.cpp
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define ll long long bool isPerfectSquare(ll x){ long double sr = sqrt(x); return ((sr - floor(sr)) == 0); } int main(){ ios::sync_with_stdio(false); cin.tie(0); ll t; cin>>t; while(t--){ ll n,m; cin...
ALGO
0.99996
4.179101
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2020-01-16T12:54:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3af491609...
3ad51213-56de-4fd8-81b5-e563bdfb83eb
rafazardo/UriExercisesSolutions
Beginner/1048.cpp
#include <iomanip> #include <iostream> #include <math.h> using namespace std; int main() { double nSal,nRea; cin >> nSal; if (nSal >= 0 && nSal <= 400.00) { nRea = (15.00/100.00)*nSal; cout << fixed << setprecision(2) <<"Novo salario: " << nSal + nRea << endl; cout << fixed <...
ALGO
0.999273
3.661008
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2021-11-23T18:02: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": "64f9fae28c4...
3f56a147-25a5-4456-9f16-332946e6c780
BookmanHan/thedox
appc_sky_line.h
#include "lib_import.h" class appc_sky_line_conjecture { public: vector<double> operator()(vector<double>& re) { vector<double> v_re; v_re.resize(4); for(int cnt=0;cnt<re.size();cnt++) { v_re[cnt%4] += v_re[cnt]; } return v_re; } bool operator()(const vector<double>&src ,const vector<double>&des) ...
ALGO
0.998546
4.272766
{ "github_metadata": { "branch": "thedox_egg", "commit_count": 1, "repo_created_at": "2011-08-06T08:53:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "21a35c...
0de57ef1-7ae5-4f0d-9c32-24e4d0aa31aa
dornhege/navigation_trajectory_planner
freespace_mechanism_heuristic/src/freespace_mechanism_heuristic.cpp
#include "freespace_mechanism_heuristic/freespace_mechanism_heuristic.h" #include <sbpl/utils/key.h> #include <sbpl/utils/utils.h> #include <stdio.h> #include <assert.h> #include <math.h> #include <stdlib.h> #include <fstream> #include <ros/ros.h> namespace freespace_mechanism_heuristic { HeuristicCostMap::HeuristicC...
ALGO
0.982876
4.968028
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2016-08-11T09:35:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c2cac05553...
82692012-ec50-4922-b3d5-5ee06a9e6ccf
mamb0-o/COMP4603
w3/Lab3P2/Lab3P2/BST<T>.hpp
// // BST<T>.hpp // Lab3P2 // // Created by GUW06 on 2023-02-02. // #ifndef BST_T__hpp #define BST_T__hpp #include <stdio.h> template <typename T> class BST { private: struct TreeNode { T element; TreeNode<T>* left; TreeNode<T>* right; TreeNode(T element) : element(element), lef...
ALGO
0.991714
5.39247
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-02-13T02:14: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": "c63d8e44ef36...
4134bc94-7486-4007-925c-e5f82795f1f6
kunalbhatia-868/Leetcode
Search in Rotated Array 2 - GFG/search-in-rotated-array-2.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: bool Search(int N, vector<int>& A, int Key) { // Code here int start=0; int end=A.size()-1; while(start<=end) { int mid=start+(end-start...
ALGO
0.999879
5.640338
{ "github_metadata": { "branch": "main", "commit_count": 907, "repo_created_at": "2022-02-14T16:02:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ff0a3daa95...
01411826-1b66-4216-9448-883dda6daff6
JunBinLiang/OI
dp/提高/单调队列优化DP/1088-旅行问题.cpp
#include <iostream> #include <vector> #include <string> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <algorithm> #include <cmath> #include <cstring> #include <queue> #include <list> using namespace std; using ll = long long; const int N = 1000000 * 2 + 10; pair<int, int> a[N...
ALGO
0.999919
4.23386
{ "github_metadata": { "branch": "main", "commit_count": 780, "repo_created_at": "2022-07-07T05:53:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "83994f7077...
3469e976-321f-4078-8f72-89bd967377ea
NulAsh/LCA
src/DRegZ/LNMatrix.cpp
/* License Codes Algorithms (LCA) Code written by <NAME> (<EMAIL>) Copyright (C) 2003-2009 GBE 322241 Software PR Usage of this code is subject to some restrictions, read LICENSE.TXT for details */ // LNMatrix.cpp: implementation of the LNMatrix class. // ///////////////////////////////////////////////////////////...
TOOL
0.992696
4.434452
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-08-28T14:00: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": "0c8fe2fd0f...
94c76082-d905-4b8d-9c4f-da2eb9890a21
Yawn-Sean/Daily_CF_Problems
daily_problems/2025/03/0320/personal_submission/cf910c_hum.cpp
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector<int> cnt(10), can(10, 1), vis(10), idx(10); iota(idx.begin(), idx.end(), 0); for (int i = 0; i < n; i++) { string s; cin >> s; int t = 1; for (int i = s...
ALGO
0.999748
4.709279
{ "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": "e4ed...
f7103a92-ab8c-4643-aae9-4a2625795fb6
utsavdubey724/Competitive-programming
Leetcode/C++/Easy/500_findWords.cpp
/* Problem: 500. Keyboard Row Date: August 18, 2021 Author: <NAME>, <EMAIL> Difficulty: Easy Source: https://leetcode.com/problems/keyboard-row/ Question: Given an array of strings words, return the words that can be typed using letters of the alphabet on only one row of American keyboard like the ima...
ALGO
0.99929
5.973556
{ "github_metadata": { "branch": "main", "commit_count": 326, "repo_created_at": "2021-01-06T08:25:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6797f216b5...
6bd355d0-9078-48fa-8755-42e1cd47acea
XxlGrace/EasyX_Snake
贪吃蛇游戏3/贪吃蛇代码完整版.cpp
//实现游戏界面,两项控制,加速功能,背景图片 #include <graphics.h> #include <conio.h> #include <deque> #include <iostream> #include <cmath> #include <ctime> #include <tchar.h> #include <windows.h> #include <mmsystem.h> #pragma comment(lib, "winmm.lib") // 链接Windows多媒体库 using namespace std; const TCHAR* BG_MUSIC = _T("G:/CPP大作业/贪吃蛇游戏3/音乐/(...
TOOL
0.945171
5.373429
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-06-19T02:49:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ca2859b83b38...
02f334ab-5f86-4a87-81ad-77c500a33b48
fitacek/container_library
src/avl_tree.cpp
#include "../include/avl_tree.hpp" #include <iostream> AVLTree::AVLTree() {} AVLTree::~AVLTree() { clear(); } size_t AVLTree::size() const { return nodeCount; } bool AVLTree::empty() const { return nodeCount == 0; } bool AVLTree::insert(const int key, const int value) { std::cout << ">>insert(" << ...
ALGO
0.998831
5.650908
{ "github_metadata": { "branch": "main", "commit_count": 65, "repo_created_at": "2025-05-10T17:46:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "070e16cb8c9...