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
bc01881f-3f16-4b5d-8386-2e0814ffcfe5
md-jonayed/Phitron_Course
Semester 1/DSA/Module 9 (dubly linkedlist)/5.completeDeleteOperation.cpp
#include <bits/stdc++.h> using namespace std; class Node { public: Node *prev; int value; Node *next; Node(int value) { this->prev = NULL; this->value = value; this->next = NULL; } }; void deleteHead(Node *&head) { Node *deleteNode = head; head = head->next; d...
ALGO
0.999984
4.468307
{ "github_metadata": { "branch": "main", "commit_count": 141, "repo_created_at": "2023-06-09T17:07: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": "5f957e2e6b...
25205554-7e4c-43b7-a194-738f24470508
Rainboylvx/bookData
算法篇/搜索/深度优先搜索/A星/luogu_p1379.cpp
#include <bits/stdc++.h> using namespace std; /* 目标状态 */ const char dst[] = "123804765"; int dst_int=123804765; int dis[10][10]; int fx[][2] = { {0,-1}, {0,1}, {1,0}, {-1,0} }; set<int> vis; //close_list bool in_map(int x,int y){ if( x>= 0 && x <= 2 && y >=0 && y<=2) return 1; return 0; } struct no...
ALGO
0.999917
3.962803
{ "github_metadata": { "branch": "master", "commit_count": 382, "repo_created_at": "2019-02-26T05:30:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 127, "pull_requests": 0 }, "file_meta": { "content_id": "69d156...
39fd4d03-d1cf-457c-b6e1-2aa05156622d
uni-mbing/ode_solver
src/ode_solver.cpp
#include <CLI/CLI.hpp> #include <Problem.h> #include <Solver.h> #include <iostream> int main(int argc, char **argv) { CLI::App app{"ODE Solver App"}; // Definiere eine optionale Eingabe für eine Zahl std::string solverType = "RK4"; app.add_option("-s,--solver", solverType, "Input solver type:...
ALGO
0.987523
5.896087
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2025-03-02T16:08: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": "46ca73f4d8f...
70d35ca6-53ac-48be-b2cc-641bc23fa0f3
raphael-group/machina
src/spruce/perfectphylograph.cpp
/* * perfectphylograph.cpp * * Created on: 25-sep-2015 * Author: <NAME> */ #include "perfectphylograph.h" namespace gm { PerfectPhyloGraph::PerfectPhyloGraph(const PerfectPhyloMatrix& A) : _A(A) , _G() , _root(lemon::INVALID) , _charStateToNode(_A.n(), NodeVector(_A.k(), lemon::INVALID)) , ...
ALGO
0.941564
5.596905
{ "github_metadata": { "branch": "master", "commit_count": 54, "repo_created_at": "2017-05-23T20:40:10.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 36, "forks": 12, "issues": 7, "pull_requests": 0 }, "file_meta": { "content_id": "99b8048e...
c96ef719-3562-4355-ae94-06054f138897
leonlau373/CLRS-solution
Chapter 4/Problem 4.5 Good or Bad Chips/main.cpp
/* Name: <NAME> (nya10) Notes: This is not a solution to the problem, but I'm just merely do a game based on this problem. If you can figure out the strategy, you can win all the time. */ #include <iostream> #include <cstdlib> #include <ctime> #include <vector> #include <string> using namespace std; void print_arr(v...
ALGO
0.998857
3.652674
{ "github_metadata": { "branch": "main", "commit_count": 66, "repo_created_at": "2021-12-22T09: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": "e0c6ed8584e...
97af615e-a38b-4109-bb00-9e6ff92ccf8b
jensecj/code-challenges
hackerrank/algorithms/dynamic-programming/hard-the-coin-change-problem.cpp
/* tags: dp, dynamic programming, coin change task: the classic coin change problem */ #include <iostream> #include <vector> #include <unordered_map> using namespace std; long make_change_dp_iterative(long dollars, vector<long>& coins, unordered_map<long,long>& cache) { for(long i = 0; i < coins.size(); i++) { ...
ALGO
0.999989
5.096046
{ "github_metadata": { "branch": "master", "commit_count": 100, "repo_created_at": "2018-02-02T15:52:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2bd34ee9...
ebe2e93b-f2aa-4cbb-9ae9-b29a20299a9d
saudjavaid2003/DSA-c-important-questions
binarytree.cpp/binarytree_creation_traversal.cpp
#include<iostream> #include<queue> using namespace std; class node{ public: int data; node*left=NULL; node*right=NULL; node(int data){ this->data=data; this->left=NULL; this->right=NULL; } }; node* createbinarytree(node*root){ int data; cout<<"enter the data"<<end...
ALGO
0.999976
4.185619
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-09-21T15:01: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": "237d91d36a3f...
1a06cff1-5a71-4502-92d1-a1df4cf29a27
JaeHyunLee94/Problem_Solving
acmicpc.net/Problem_1991_트리 순회.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int conv(char a) { if (a >= 65 && a <= 90) return a - 65; else if (a == 46) return 26; else return -1; } char invert(int a) { if (a >= 0 && a <= 25) return a + 65; else if (a == 26) return '.'; else return 0; } int find_index(const ...
ALGO
0.99997
3.752
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2019-04-03T16:10:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "208ac49d9...
48eda407-3f82-4b50-9fe3-d30d8e6e55ef
FangGet/BundleFusion_Ubuntu_Pangolin
include/FreeImage/include/CGAL/Mesh_3/Cell_criteria_visitor_with_balls.h
// Copyright (c) 2009 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 3 of the License, or (at your op...
ALGO
0.969814
6.326297
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-06-29T03:53:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 132, "forks": 34, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "f958394...
63801482-5854-4646-9138-5cfde081c7a7
JohnWStockwellJr/OpenSeaSeis
src/cs/su/main/suhrot.cc
/* Copyright (c) Colorado School of Mines, 2011.*/ /* All rights reserved. */ /* SUHROT: $Revision: 1.7 $ ; $Date: 2011/11/16 22:58:31 $ */ #include "csException.h" #include "csSUTraceManager.h" #include "csSUArguments.h" #include "csSUGetPars.h" #include "su_complex_declarations.h" #include "cs...
ALGO
0.964682
4.525955
{ "github_metadata": { "branch": "master", "commit_count": 36, "repo_created_at": "2016-03-01T18:08:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 50, "forks": 20, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "15a2003...
b8e503c0-f146-4a93-85b3-7095d1ce97ae
foxleezh/AOSP
app/src/main/cpp/platform/art/runtime/java_vm_ext.cc
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
TOOL
0.915344
7.392949
{ "github_metadata": { "branch": "master", "commit_count": 104, "repo_created_at": "2017-10-04T08:55:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1167, "forks": 188, "issues": 10, "pull_requests": 0 }, "file_meta": { "content_id": "db...
1c4e6fbc-e77d-41ed-8e1c-777b2915d262
patrick14796/Smartphone-project-CPP
MobilePhone.cpp
#include "MobilePhone.h" /*DEFAULT CONSTRUCTOR*/ MobilePhone::MobilePhone() { this->anwser = '\0'; this->PhoneNumber = 0; } /*DESTRUCTOR*/ MobilePhone::~MobilePhone() { } string MobilePhone::model() { return string(); } /*PHONE NUMBER*/ int MobilePhone::number() { return PhoneNumber; } void MobilePhone::dial(int n...
TOOL
0.912635
3.457582
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2020-09-09T10:08: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": "122efd00e5...
7546482f-2579-4230-b2c9-c8248aeb7525
lsmd23/Algorithm
HM11/src/matrix_parallel_revised.cpp
#include <iostream> #include <cstdlib> #include <vector> #include <chrono> #include <omp.h> // omp_set_num_threads(omp_get_max_threads()); // Set the number of threads to the maximum available void print_matrix(const std::vector<std::vector<int>> &matrix) { for (const auto &row : matrix) { for (const ...
ALGO
0.999694
5.421655
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-07-04T12:17:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4a26bd0a4f52...
a6fc9a18-dac6-40d8-913b-094e8142208f
SBU-YCX/LeetCode
Easy/1608 Special Array With X Elements Greater Than or Equal X/1608_2.cpp
// Topic : 1608. Special Array With X Elements Greater Than or Equal X // Author : YCX // Time : O(NlogN + logN) // Space : O(logN) class Solution { public: int specialArray(vector<int>& nums) { sort(nums.begin(), nums.end()); int l = 1, n = nums.size(), r = n - 1; if (nums[0] ...
ALGO
0.999967
5.335858
{ "github_metadata": { "branch": "main", "commit_count": 597, "repo_created_at": "2021-10-03T19:53: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": "44612e46f6...
5cde6ad0-3f07-4c2d-8594-f539fca039de
yulingtianxia/LeetCode
LeetCode/LeetCode/2 Add Two Numbers.cpp
// // 2 Add Two Numbers.cpp // LeetCode // // Created by 杨萧玉 on 15/2/10. // Copyright (c) 2015年 杨萧玉. All rights reserved. // #include "commonheader.h" /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class...
ALGO
0.998696
5.53846
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2015-02-10T16:14:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bb81faa78...
be73f68c-629a-4917-95f3-bc7c2276a16c
wangxiaohei1005/C.Fighting
C++/C++/exam.cpp
/*#include <iostream> #include <vector> #include <algorithm> using namespace std; class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param matrix int整型二维数组 * @param matrixRowLen int matrix数组行数 * @param matrixColLen int* matrix数组列数 * @return int整型 */ // int maxValue(int** matrix, int matrix...
ALGO
0.999975
4.480608
{ "github_metadata": { "branch": "master", "commit_count": 144, "repo_created_at": "2019-10-18T13:36:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d2572a75...
5c779cfb-64e5-49b1-88f7-ea294eed0853
edenmese/cs124-dsa-inclass-assignments
Week 6 In Class (ArrayList)/Week 6 In Class (ArrayList)/searchSortAlgorithms.h
#include <iostream> #include "searchSortAlgorithms.h" using namespace std; // QuickSort template <typename T> void swap(T list[], int first, int second); template <typename T> int partition(T list[], int first, int last); template <typename T> void recQuickSort(T list[], int first, int last); template <typename T> ...
ALGO
0.999856
4.659989
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2025-06-09T17:58:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f3db7c04ccda...
0e9d5e0b-1549-41ee-a788-26dee1681b1a
GilgameshxZero/altair
usaco/2015-january-gold/3.cpp
#include <algorithm> #include <bitset> #include <limits> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <fstream> #include <functional> #include <map> #include <queue> #include <utility> #include <set> #include...
ALGO
0.999649
3.852567
{ "github_metadata": { "branch": "master", "commit_count": 485, "repo_created_at": "2021-08-08T21:45:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "181b1ad4...
eb45fbe5-b5d8-49bf-83d6-9cd87d372c95
ishandutta2007/codeforces-f
fairywinx/normal/1027/D.cpp
// #define GLIBCXX_DEBUG #include <iostream> #include <vector> #include <unordered_map> #include <set> #include <unordered_set> #include <ctime> #include <queue> #include <assert.h> #include <iomanip> #include <deque> #include <map> // #include <cmath> #include <bitset> #include <algorithm> // #define int long long #...
ALGO
0.999769
3.925644
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:43: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": "0eae9fececec...
320761d0-becd-4941-8413-a90f4dc88ab7
DuashMahat/cplusplus
proj04/proj04.cpp
#include<iostream> using std::cout; using std::cin; using std::endl; using std::boolalpha; #include<string> using std::string; // meta, strictly increase bool metadrome (string n , long base ) { // METADROME............ bool is_metadrome = true; //cout << n.size() << endl; for (unsi...
ALGO
0.999793
3.85709
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-03-28T20:36: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": "4542d010e5...
aa944842-94ab-4b5b-88bf-0dd42f9a096a
rudemora/FAL
juez14/juez14/juez14.cpp
// juez14.cpp : Este archivo contiene la función "main". La ejecución del programa comienza y termina ahí. // #include <iostream> #include <vector> #include <algorithm> #include <fstream> int resolver(std::vector<int>& v) { std::sort(v.begin(), v.end()); int max = 0; long long int cont = 1; int num = v[0]; for (...
ALGO
0.998996
4.4402
{ "github_metadata": { "branch": "master", "commit_count": 30, "repo_created_at": "2023-11-29T08:35:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e9c59781e...
d5a7c865-77d1-4f25-9d57-2ee598889912
Md-Nasiat-Hasan-Fahim/Problem-Solving-with-C
.acmx/solutions/Codeforces - Codeforces Round 764 (Div. 3)/C_Division_by_Two_and_Permutation.cpp
#include<bits/stdc++.h> using namespace std; #define FastIO ios_base::sync_with_stdio(false), cin.tie(0) #define endl '\n' #define int long long #define all(x) x.begin(),x.end() #define pb push_back #define YES cout<<"YES\n" #define NO cout<<"NO\n" #define check(x) cout << (#x) << " is " << (x) << endl; const int mod ...
ALGO
0.999979
3.904148
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-07-05T03:33: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": "a1de06a74cc4...
74a8c11e-2a7e-4cf5-83d7-3a28bd63701f
korca0220/Algorithm_study
ACMICPC/SWtest/Problem/Review/dummy.cpp
#include <iostream> #include <vector> #include <string> #include <cstring> #include <algorithm> using namespace std; int N; int dx[] = {0,1,0,-1}; int dy[] = {1,0,-1,0}; int main(){ ios::sync_with_stdio(false); cin >> N; vector<vector<int>>map(N+1, vector<int>(N+1, -1)); int a; cin >> a...
ALGO
0.999671
3.237221
{ "github_metadata": { "branch": "master", "commit_count": 404, "repo_created_at": "2019-05-03T04:26:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "48307943...
a3490a6e-b0ee-4062-ab9d-0f3351b76775
IvannaVeselovska/OOP_LAB_07.1
LAB7/LAB7/Main.cpp
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string> #include <vector> #include <fstream> #include <algorithm> #include <time.h> using namespace std; template <typename T> int checkSum(T); int main() { int t1 = time(NULL); string in_file = "input.txt"; string out_file = "output.txt"; ifstream inp...
ALGO
0.996221
3.836352
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-05-27T20:11:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6da6a424a3...
ca7ab010-6a6d-4b30-a5a5-c8b245215874
kzawora/PolyphaseMergeSort-Cpp
main.cpp
#include "PolyphaseMergeSort.hpp" #include "helpers.cpp" #include <iostream> int main(int argc, char *argv[]) { std::string filename; int size; if (argc > 1) { if (std::string(argv[1]) == "-i") { if (argc > 2) filename = std::string(argv[2]); else { ...
ALGO
0.988878
5.106122
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2018-10-22T19:44: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": "785011a41...
a1fa1f5e-5c09-4119-b439-45c5a21f4b41
ishandutta2007/codeforces-s
sdya/normal/755/F.cpp
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <cstring> #include <string> #include <queue> #include <set> #include <map> #include <bitset> #include <cmath> #include <stack> #include <ctime> #include <unordered_map> #include <unordered_set> #include...
ALGO
0.999857
3.384114
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:07: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": "c8f89c0e8fd4...
5b25419e-921a-43ee-afd4-a81fbec518be
celeritas-project/GeoModel
GeoModelCore/GeoGenericFunctions/GeoGenericFunctions/ConstTimesFunction.h
//==========================================================================// // Imported from the QAT library (qat.pitt.edu) by the copyright holder // // <NAME>. Software licensed under the terms and conditions of the // // GNU Lesser Public License v3. // //========...
TOOL
0.936373
6.893897
{ "github_metadata": { "branch": "celeritas", "commit_count": 2685, "repo_created_at": "2023-07-05T14:31:04.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 4, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "92d9b...
b31278fb-adfb-44cf-a32a-e12cfb779364
AlexandarVarbanov02/TicTacToe
tic_tac_toe_computer.cpp
#include "tic_tac_toe_computer.hpp" #include <iostream> #include <utility> #include <array> #include <chrono> #include <thread> void print(std::array<std::array<char, 3>, 3> board) { for (auto arr : board) { for (auto elem : arr) { std::cout << elem << " "; } std::cout << "\n";...
ALGO
0.99681
5.729857
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-07-09T09:56:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "00fe584c7329...
36f28332-aad9-4a80-939a-2206f160271f
danielkrakowiak/Engine1
Engine1/BVHTreeBuffer.h
#pragma once #include <vector> #include "float3.h" namespace Engine1 { class BVHTree; class BVHNode; // BVH (Bounding Volume Hierarchy) tree stored in contiguous memory (vector) for faster access. // Can be sent to GPU and used for ray traversal or can be also used by the CPU. class BVHTreeBuffe...
ALGO
0.941677
6.692075
{ "github_metadata": { "branch": "master", "commit_count": 384, "repo_created_at": "2015-10-29T11:03:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 37, "forks": 4, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "9cd30be...
dcc9d61d-7c93-4db1-9085-1c6d5105d6c8
cp-shen/unity_renju_game_AI_module
Native_Ai_Module_2_Normal/main_normal.cpp
#include<stdio.h> #include<stdlib.h> #include<iostream> #include "jsoncpp/json.h" #include "header.h" using namespace std; int chessData[15][15];//棋盘信息,电脑棋子为-1,玩家为1; int order;//步数 void ComputerDown(char *json_out); bool computercolor;//false黑色,true白色 int parseJSON(const char* jsonstr) { Json::Reader reader; Json::V...
ALGO
0.991501
3.7099
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2018-05-22T03:47: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": "0e26bfb2e...
ac1cb8a2-7f45-4327-a919-6804c66d0270
KanaSukita/LeetCode
medium/34. Search for a Range.cpp
// Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. // Your algorithm's runtime complexity must be in the order of O(log n). // If the target is not found in the array, return [-1, -1]. // For example, // Given [5, 7, 7, 8, 8, 10] and target value 8...
ALGO
0.999987
6.080495
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2018-02-13T01:53: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": "e8a7d4f93...
39b24543-2afc-4b69-b368-137c43b2f35f
im2781975/Algorithm-base
Class/Graph/Bellman Ford 1.cpp
#include <iostream> #include <vector> #include <climits> using namespace std; struct Edge { int source, destination, weight; }; // Function to perform Bellman-Ford algorithm void bellmanFord(vector<Edge>& edges, int numVertices, int source) { vector<int> distance(numVertices, INT_MAX); distance[source] = 0;...
ALGO
0.99999
5.084979
{ "github_metadata": { "branch": "main", "commit_count": 806, "repo_created_at": "2023-09-21T17:45: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": "e1b652d8b3...
33c75104-76bd-4e5d-a01a-aeb4432360e7
drhodes/gts
trash/TwoThree/RedBlackBasic.h
///////////////////////////////////////////////////////////////////////////// // // File: RedBlackBasic.h // // $Header: $ // // // This implementation is based on <NAME>'s version of red-black // trees: // // http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_rbtree.aspx // // A red-black tree conforms to ...
TOOL
0.932221
6.341964
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2013-04-05T14:12:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d0f2d31d5...
4ff9f945-e58d-4c47-9d17-d484c1b6a732
sh19910711/contest-old
source/math/matrix_2x2.cpp
// @desc 2x2の行列を操作するクラス template <class T> class Matrix2x2 { public: T mat[2][2]; Matrix2x2() {}; Matrix2x2( T a, T b, T c, T d ) { mat[0][0] = f(a), mat[0][1] = f(b), mat[1][0] = f(c), mat[1][1] = f(d); } friend Matrix2x2 operator *( const Matrix2x2& left, const Matrix2x2& right ) { return Matr...
ALGO
0.99765
5.611861
{ "github_metadata": { "branch": "master", "commit_count": 222, "repo_created_at": "2013-02-24T12:37:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 21, "pull_requests": 0 }, "file_meta": { "content_id": "d9672c0...
8af85253-869d-4a10-9e7d-6aac879cdcf3
Navinkumar22/Programming
Files part 2.cpp
/* Files Exercise 2 Problem Write a program that reads a comma delimited CSV file with four columns and returns the average of each column in the file. Assume that the CSV files used will only contain 3 rows and 4 columns. Expected Output The CSV file looks like the one below. 1,5,10,30 19,15,10,15 10,4,-2,15 You may a...
TOOL
0.980183
6.271504
{ "github_metadata": { "branch": "main", "commit_count": 185, "repo_created_at": "2022-07-21T13:05: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": "0cad17f865...
a3c6def2-cabe-49de-99f9-c1ac40411fa0
krishnaanaril/UVA
657.cpp
/* <NAME> Date : 23/07/2016 21:47:44 Author : <NAME> Problem : 657 - The die is cast Status : Accepted */ #include <bits/stdc++.h> using namespace std; typedef long double ld; typedef long long ll; typedef pair<int,int> pii; typedef pair<ld,ld> pdd; typedef vector<int> vi; typedef vector<ld> vd; typedef pair<l...
ALGO
0.999915
4.085863
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2014-10-12T18:34: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": "8fa00841a...
d12a5a32-9f0e-4849-9205-e6036386705c
ermine27/atcoder
joi2013ho/joi2013ho1.cpp
#include <bits/stdc++.h> using namespace std; #define _overload2(a,b,f,...) f #define _overload3(a,b,c,f,...) f #define _rep1(i,n) for(int i = 0; i < (int)(n); ++i) #define _rep2(i,s,n) for(int i = (int)(s); i < (int)(n); ++i) #define rep(...) _overload3(__VA_ARGS__, _rep2, _rep1)(__VA_ARGS__) #define _repe1(i,n) for(...
ALGO
0.999995
4.089701
{ "github_metadata": { "branch": "main", "commit_count": 124, "repo_created_at": "2022-05-16T12:56:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "552b728e8d...
a9086df8-7b86-4616-b98e-65173c2630a2
ishandutta2007/codeforces-m
marckess/normal/1207/G.cpp
#include <bits/stdc++.h> #define endl '\n' #define fi first #define se second #define MOD(n,k) ( ( ((n) % (k)) + (k) ) % (k)) #define forn(i,n) for (int i = 0; i < n; i++) #define forr(i,a,b) for (int i = a; i <= b; i++) #define all(v) v.begin(), v.end() #define pb emplace_back using namespace std; typedef long l...
ALGO
0.999646
4.03194
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-06-06T01:03:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c6abe313c9b9...
84a5c162-7267-4078-83de-74e6e2d46185
anurag-shekhar/Competitive-Programming
CodeJam/2021/QualificationRound/Reversort/Reversort.cpp
#include<bits/stdc++.h> using namespace std; typedef long long int ll; void reverse(vector<ll> &A, int i ,int j) { while (i<j) { int temp = A[i]; A[i] = A[j]; A[j] = temp; i++; j--; } } ll solve(ll n, vector<ll> &A) { ll sum = 0; for(int i = 0; i<n-1; i++) ...
ALGO
0.999904
4.620346
{ "github_metadata": { "branch": "master", "commit_count": 408, "repo_created_at": "2021-05-07T22:33:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 7, "pull_requests": 0 }, "file_meta": { "content_id": "d36c6fbb...
ea346964-26b8-4a08-ac27-d4f5c3b65784
AlaminPu1007/leet-code
Leet-Code/320. Valid Parenthesis String/678_Valid_Parenthesis_String.cpp
#include <bits/stdc++.h> using namespace std; class Solution { public: bool checkValidString(string s) { int len = s.size(); stack<char> openBracket, startSign; for (int i = 0; i < len; i++) { if (s[i] == '(') { openBracket.push(i); ...
ALGO
0.999132
4.685611
{ "github_metadata": { "branch": "master", "commit_count": 1102, "repo_created_at": "2022-06-13T15:42:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1552a58...
efff94a5-3ce3-4ede-9a80-210b1e275425
utkarsh-ub/summer_of_bitcoin
Using_C++/main.cpp
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <algorithm> using namespace std; int calc_rows() //function to calculate total number of rows { int rows=0; ifstream file("mempool.csv"); //input file stream to read input from mempool file. string line; while (g...
DATA
0.982827
3.888168
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-06-17T09:10:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5a32084a6e19...
7c786611-894e-4b91-b874-b533d3f26237
natsunoshion/Parallel_Final_Research
特殊高斯/SIMD/特殊高斯并行AVX-512.cpp
#include <bits/stdc++.h> #include <immintrin.h> using namespace std; // MAXM:最大行数,MAXN:列数 const int MAXM = 10000; const int MAXN = 8399; // 使用bitset进行存储,R:消元子,E:被消元行 bitset<MAXN> R[MAXM]; bitset<MAXN> E[MAXM]; // 被消元行行数 int m = 4535; // 找到当前被消元行的首项 int lp(bitset<5> temp) { int k = 4; while (temp[k]==0 && k...
ALGO
0.999901
3.80483
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2023-06-28T02:54:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "454a21054f...
d119731d-98a1-4ea7-82a0-37dd20d57412
dorezyuk/dpose
dpose_goal_tolerance/src/dpose_goal_tolerance/dpose_goal_tolerance.hpp
/* * MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
TOOL
0.985274
6.737541
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2020-12-02T08:43: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": "251400cf8...
e2c1fdb3-e1fc-4230-8cb6-c125b0792786
lmarchesoti/programming_challenges
1104/05/src/main.cpp
#include <iostream> #include <algorithm> #define N_JOBS 1002 #define MAX_R 10001 using namespace std; /* data structures */ /* global variables */ int ratio[N_JOBS]; int jobs[N_JOBS]; /* function prototypes */ // compares jobs according to fee/day bool cmp(const int, const int); /* debug */ int main(){ int t; ...
ALGO
0.999525
3.270926
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2015-11-01T20:21:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9b94dd4e1...
7d7a35ff-abba-4c8c-9bba-a5805b5bd02f
rlhduong/practice
codeforces/981/c.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll inf = std::numeric_limits<long long>::max(); int n; vector<int> edges[100001]; bool seen[1000001]; void dfs(int& start, int u); int main() { cin >> n; for(int i = 0; i < n - 1; ++i) { int a,b; cin >> a >> b; e...
ALGO
0.999897
4.002434
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-01-04T10:09: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": "8fafb869a3dc...
164c4ee3-f314-4d4c-89c1-74828c822e36
NVIDIA/tensorflow
tensorflow/contrib/tensor_forest/kernels/v4/grow_stats.cc
// Copyright 2017 The TensorFlow 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 b...
ALGO
0.980699
7.342185
{ "github_metadata": { "branch": "r1.15.5+nv23.03", "commit_count": 64202, "repo_created_at": "2020-05-13T21:34:32.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1146, "forks": 178, "issues": 41, "pull_requests": 9 }, "file_meta": { "conten...
1c932a2b-0b16-4eae-8570-28e8d995008d
mindspore-ai/models
research/recommend/mmoe/infer/mxbase/src/main.cpp
/* * Copyright (c) 2022. Huawei Technologies Co., Ltd * * 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...
DATA
0.924707
5.733125
{ "github_metadata": { "branch": "master", "commit_count": 4305, "repo_created_at": "2021-10-15T06:38:37.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 362, "forks": 101, "issues": 13, "pull_requests": 2 }, "file_meta": { "content_id": "f86...
6a6aebec-c823-420e-919c-b148481a8fc2
jikongabc/test-jikong
P5937.cpp
#include <iostream> #include <algorithm> #include <cstring> #include <string> #include <vector> #include <queue> #include <deque> #include <map> #include <set> #include <unordered_map> #include <cmath> #define inf 0x3f3f3f3f using namespace std; using LL = long long; using ULL = unsigned long long; typedef pair<int, in...
ALGO
0.999954
3.844699
{ "github_metadata": { "branch": "main", "commit_count": 329, "repo_created_at": "2024-01-31T07:12:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fc9c7e0bdf...
1e8f5dd8-9ca0-41c2-b781-cb148e563c56
mhdnazrul/comparative-programming-solutions
vjudge-solutions/Bootcamp_Fall_24 Week 3 Contest/E.cpp
#include <iostream> #include <vector> #include <cmath> using namespace std; using ll = long long; void solve() { int n; cin >> n; vector<int> V(n); for (int i = 0; i < n; i++) { cin >> V[i]; } int total = 0; for (int i = 0; i < n; i++) { total += V[i]; } if (abs(total) > n || (n % 2 != 0 ...
ALGO
0.999758
4.497708
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2025-03-03T00:51:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fe7a2af2b4a...
eb8fa5b7-24df-49bf-900e-81fd3b0292e8
ishandutta2007/codeforces-i
irkstepanov/normal/762/C.cpp
#include <bits/stdc++.h> #define all(a) (a).begin(), (a).end() #define sz(a) (int)(a).size() #define pb push_back using namespace std; typedef long long ll; typedef pair<int, int> pii; int main() { //ifstream cin("input.txt"); //ofstream cout("output.txt"); ios_base::sync_with_stdio(false); cin.ti...
ALGO
0.999967
3.620786
{ "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": "9bb211959c22...
c7a22cb5-3de5-4cfe-8ab3-f032582fb22f
f-zyj/ACM
按 OJ 分类/HDU/f-HDU-2833-WuKong/f-HDU-2833-WuKong/main.cpp
// // main.cpp // f-HDU-2833-WuKong // // Created by ZYJ on 2016/12/9. // Copyright © 2016年 ZYJ. All rights reserved. // /* * dp大法好 * 题意: * 给定一个无向图,和两对起点终点,求两条最短路上的最多公共交点数。 * 反证法容易验证相交公共点比连续!! * 那么我们假设存在2组数据 s1,e1,s2,e2; * 我们用dp[i][j] 代表 从点i到点j最短路上最多有多少个点! * 那么 map[s1][i] + map[i][j] + map[j][e1] = m...
ALGO
0.999918
4.71994
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2018-05-18T16:14:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 199, "forks": 55, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d71dfb...
14e64e32-bda5-470c-84ed-502d69424b38
klb3713/aoapc-book
TrainingGuide/exercises/ch4/01-BasicProblems/UVa12300.cc
// UVa12300 Smallest Regular Polygon // 陈锋 #include <cstring> #include <cstdio> #include <cassert> #include <cmath> #include <algorithm> #include <vector> using namespace std; typedef long long int64; struct Point { double x, y; Point(double x=0, double y=0):x(x),y(y) { } }; typedef Point Vector; Vector operat...
ALGO
0.999313
3.966165
{ "github_metadata": { "branch": "master", "commit_count": 198, "repo_created_at": "2013-09-22T01:26:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 181, "forks": 56, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "45cbb...
d435f90d-6cd1-441f-a576-469df088c039
thanhchuc-hcmue-it46/lap-trinh-can-ban-cpp
cpp/sap_xep_so_tang_dan_theo_ham.cpp
/* Chuc lap trinh */ // sắp xếp tăng dần trong hàm #include <iostream> using namespace std; void soTangDan(int a[100], int n); int main() { int n; cin>>n; int a[100]; for (int i = 0; i < n; i++ ) { cin>>a[i]; } soTangDan(a, n); return 0; } void soTangDan(int a[100], int n) {...
ALGO
0.999958
4.663451
{ "github_metadata": { "branch": "main", "commit_count": 70, "repo_created_at": "2020-11-12T16:03:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35b36eb4680...
def7e57b-ac1e-4ae8-b28c-8eee28d625a2
yuvaroshit/ncrwork
ncrwork/C++/Assignment-1/question-5/question-5/Source.cpp
#include <iostream> using namespace std; class Distance2; class Distance1 { float mt; int cm; public: void getdata(); void display(); friend Distance1 add(Distance1, Distance2); }; class Distance2 { int feet; float inches; public: void getdata(); void display(); friend Distance1 add(Distance1, Distance2); };...
TOOL
0.900676
3.385173
{ "github_metadata": { "branch": "master", "commit_count": 94, "repo_created_at": "2019-02-01T05:45: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": "a21cf6f99...
0cf9e3c9-0d9d-487b-af77-85fefaf43f27
Xie-Minghui/ACM
素数环.cpp
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn = 21; bool color[maxn] ; int A[maxn],vis[maxn]; void es_prime(int n){ for(int i = 2;i <= maxn;i++){ for(int j = i+1;j <= maxn;j++){ if(A[j] % i == 0){ color[j] = false; } } } } bool isprime(in...
ALGO
0.999848
3.656109
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-06-12T06:49: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": "12219497bf5d...
cabfeb24-0ed1-479b-bd56-64b80b789133
ardRiriy/cp-libs
codeforces/Round1023_div2/d.cpp
#include <bits/stdc++.h> #include "input.hpp" using namespace std; // using namespace atcoder; #define all(v) v.begin(),v.end() #define resort(v) sort(v.rbegin(),v.rend()) using ll = long long; using ull = unsigned long long; using vll=vector<ll>; using vvll = vector<vector<ll>>; using P = pair<ll,ll>; using vp=vect...
ALGO
0.999887
5.125955
{ "github_metadata": { "branch": "main", "commit_count": 699, "repo_created_at": "2024-02-03T20:19:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "a711fbde48...
f6c63c32-3d6f-4080-98f4-483afb26b14e
thenameisvir/LeetCode
0112-path-sum/0112-path-sum.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.999971
5.697989
{ "github_metadata": { "branch": "main", "commit_count": 1850, "repo_created_at": "2024-06-19T03:51: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": "80424bd0f...
33bccf77-f006-45b5-a4f4-d6fdc0063029
zuoqing1988/ZQCNN
3rdparty/include/ZQlib/ZQ_FindCorners.h
#ifndef _ZQ_FIND_CORNERS_H_ #define _ZQ_FIND_CORNERS_H_ #pragma once #include "ZQ_DoubleImage.h" #include "ZQ_GaussianPyramid.h" #include "ZQ_Vec2D.h" #include "ZQ_BinaryImageProcessing.h" //#include "ZQ_ImageIO.h" #include "ZQ_MergeSort.h" #include "ZQ_SVD.h" #include <time.h> namespace ZQ { class ZQ_FindCorners {...
ALGO
0.996398
4.592902
{ "github_metadata": { "branch": "master", "commit_count": 956, "repo_created_at": "2018-05-04T05:30:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2218, "forks": 505, "issues": 88, "pull_requests": 0 }, "file_meta": { "content_id": "d7...
ae2dbf37-aef1-4e0b-a23e-79609c781945
tingluotw/leetcode
490_the_maze.cpp
/* Problem: * There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling * up, down, left or right, but it won't stop rolling until hitting a wall. When the ball stops, it could * choose the next direction. * Given the ball's start position, the destination and the maze, ...
ALGO
0.999979
5.487124
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2020-07-07T04:27: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": "58094b043...
aa7b926f-9861-4f22-a8b8-d60eb6f791d9
thijser/ARGAME
MirrorServer/Server/markerrecognizer.hpp
/* * Copyright 2015, Delft University of Technology * * This software is licensed under the terms of the MIT license. * See http://opensource.org/licenses/MIT for the full license. * * */ /** * @file markerrecognizer.hpp * @brief Contains implementation of mirrors::MarkerRecognizer. */ #ifndef MARKER_RECOGNIZER_HPP #...
ALGO
0.99039
6.590105
{ "github_metadata": { "branch": "master", "commit_count": 2157, "repo_created_at": "2015-04-20T07:12:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6b7b228...
fa54364a-439b-4838-b51d-7b00692cb521
anas20023/Code-Forces
CFs/B_Vanya_and_Lanterns.cpp
//////////////// <NAME> ///////////////// // Test Case Less Template || // || // || // BANGLADESH UNIVERSITY OF B...
ALGO
0.998886
3.425858
{ "github_metadata": { "branch": "main", "commit_count": 494, "repo_created_at": "2023-11-08T19:38:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "540eb09639...
181dbd29-44c4-4b40-88e2-a47e060b72f5
jokergoo/HilbertCurve
src/std_utils.cpp
#include <Rcpp.h> using namespace Rcpp; double size(NumericVector x) { return sqrt(x.size()); } NumericVector c_vec(NumericVector x1, NumericVector x2, NumericVector x3) { int n1 = x1.size(); int n2 = x2.size(); int n3 = x3.size(); int n = n1 + n2 + n3; NumericVector x(n); int offset = 0; for(int i = 0; i ...
TOOL
0.936758
5.228723
{ "github_metadata": { "branch": "master", "commit_count": 288, "repo_created_at": "2015-06-30T16:13:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 42, "forks": 5, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "08f3cf4...
7d0b3bf5-fd3f-4c24-a4bd-0e560f121b7c
DanFuchs96/Bitzkrieg
chessnode.cpp
/////////////////////////////////////////////////////////////////////////////////////////////////// /// PROGRAMMER: <NAME> /// CLASS/SECT: CS5400A - ARTIFICIAL INTELLIGENCE /// ASSIGNMENT: CHESS GAME ASSIGNMENT: PART #4 /// DATE: 4/12/18 /// DESC: Class implementation file for class "ChessNode". ///////////////////////...
ALGO
0.903856
5.08776
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2018-04-22T05:35: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": "220cd5f460...
c087fd8d-dded-44ef-82f7-8ff1c69c3250
Nelaty/Rumble3D
Rumble3D/src/RigidBodyEngine/CollisionResolution/InterpenetrationResolver.cpp
#include "R3D/RigidBodyEngine/CollisionResolution/InterpenetrationResolver.h" #include "R3D/RigidBodyEngine/RigidBody.h" #include <algorithm> namespace r3 { void InterpenetrationResolver::resolve(FixedSizeContainer<Contact>& collisionData, const real timeDelta) { adjustPos...
ALGO
0.999164
5.575775
{ "github_metadata": { "branch": "master", "commit_count": 148, "repo_created_at": "2018-08-09T17:16:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "38a2277f...
b16375dc-a786-46e1-82c3-27f7be23fcef
duckMann3/led_array_mini_projects
arduinoFFT/music_visualizer.cpp
#include<Arduino.h> #include<arduinoFFT.h> #include<FastLED.h> #define unsigned int uint #define unsigned long ul_int #define SAMPLES 64 // Set number of samples for FFT (must be 2^N) #define SAMPLING_FREQUENCY 40000 // Sampling frequency (Hz) #define SOUND_PIN A0 // Analog pin conn...
ALGO
0.936822
5.181736
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2024-10-01T15:21:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e9497f3cd9b...
f33d8040-6f17-4d05-9182-bc0cb1d39747
JulianHarris831/cpsc2430-
lab6/lab6.cpp
//<NAME> //lab6.cpp //DESCRIPTION: Program loads a given list of books (class) into an array, // using hashed ISBN codes as indexes to sort. Prints any collision // and displays full shelf at the end. //ASSUMPTIONS: None, program is automated with no user input #include <iostream> using nam...
ALGO
0.986309
3.860714
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2021-07-09T18:20: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": "74c621eb6721...
cb70bd60-daa9-409c-9215-5073c8493a0e
ysbaekFox/Alogorithms
BFS/boj_7562.cpp
#include <stdio.h> #include <cstring> #include <queue> int dy[8] = { -1, 1, -2, 2, -2, 2, -1, 1 }; int dx[8] = { -2, -2, -1, -1, 1, 1, 2 ,2 }; int testCase; int N; bool visited[300][300]; int BFS(int startY, int startX, int endY, int endX) { if ( ( startX == endX ) && ( startY == endY ) ) { return 0; } ...
ALGO
0.999923
4.705255
{ "github_metadata": { "branch": "main", "commit_count": 105, "repo_created_at": "2022-01-01T03:59: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": "fb9ac2ed06...
ba8b21d0-ee2a-423a-8a85-1eb4ea72459d
ananyachauhan02/DSA_Practice
Questionss/Q136.Predecssor&SuccessorBST.cpp
// predecessor and successor in BST - codestudio // approach - 1 - recursive // TC - O(n) , SC - O(n) void solve (Node* root , int key , int &pred , int &succ) { if (root == NULL) { return ; } solve(root -> left , key , pred , succ) ; if (root -> data < key ) { pred = root -> dat...
ALGO
0.999999
5.490811
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-04-02T17:47: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": "7dd832a5747b...
26080fea-5f83-4b02-b24e-47041ea09029
minhquanhbt/MiniProject-PBL2
Project/Huffman.cpp
#include <bits/stdc++.h> #include"trans.h" #define MAX_TREE_HT 256 using namespace std; map<char, string> codes; map<char, int> freq; struct Tree { char data; int freq; Tree *left, *right; Tree() { left = right = nullptr; } Tree(char d...
ALGO
0.999715
3.946006
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2021-08-02T14:47: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": "db339179f2c5...
bed714a6-a7b4-4ac6-9bf2-f75d2c67b641
cykunz/CS116-2017-clea-kunz
Exercise1/src/Neuron.cpp
#include <iostream> #include <cmath> #include "Neuron.hpp" #include <vector> #include <fstream> using namespace std; Neuron::Neuron(vector<double> time, vector<double> pot, double potential, int spikes, double present, bool refractory) : time_(time), potentials_(pot), membrane_potential_(potential), spikes_(spikes)...
TOOL
0.958712
4.261982
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2017-10-02T08:52: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": "8d71c81f3...
f11ef311-0cc2-441b-91b2-8b6ed25659c6
hosua/leetcode-solutions
c++/regex_matching.cc
#include <bits/stdc++.h> using namespace std; // TLE class Solution { public: bool isMatch(string s, string p) { return isMatchUtil(s, p); } private: bool isMatchUtil(string s, string p){ if (p == "" and s == "") return true; bool match = (s != "") and (p[0] == s[0] or p[0] == '.'); // Kleene-star ...
ALGO
0.999897
4.544199
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2022-11-08T07:17: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": "f6023b1166dc...
c20186d5-c3d0-44db-958d-7d61692fcf11
VladFear/LinkedList
list.hpp
#include <iostream> #include <stdexcept> template <typename T> class LinkedList { private: template <typename A> class Node { public: Node<T>* next; T data; }; size_t list_size = 0; Node<T>* head = nullptr; Node<T>* tail = nullptr; public: LinkedList(); ~LinkedList(); void push_back(T data); void ...
TOOL
0.935186
5.067578
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2019-01-28T09:47: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": "1d03b6d7e...
c61317c6-da52-43f7-873f-1ebe548ed795
maxcomfort/CSE100
repos/lab12/lab12/lab12.cpp
//lab12.cpp //Max Comfort //Prelab //Question 1.) //Output: 10, 80, 68. This program display the numbers in the array if after //using the modulo % 2, it equals 0. 10%2=0. 11%2=1, 67%2=1, 80%2=0, 68%2=0. //Question 2.) //Output: Flagstaff. //This loop compares the length of each city in the array from index 0 to in...
ALGO
0.969605
3.920377
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2023-09-07T18:58: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": "b78789c9904...
b896274e-507f-4111-beaa-64c7728c54c3
hosua/leetcode-solutions
c++/number_of_good_paths.cc
#include <bits/stdc++.h> using namespace std; class UnionFind { private: int V; vector<int> rep; vector<size_t> sizes; public: UnionFind(size_t sz){ V=sz; rep = vector<int>(V, 0); sizes = vector<size_t>(V, 1); for (int i = 0; i < V; i++) rep[i] = i; } int find(int x){ if (x == rep[x]) return x;...
ALGO
0.99994
5.146095
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2022-11-08T07:17: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": "a5f3f83dfc87...
ce221f34-17f0-47d4-a66c-4079f3dbd114
xiaozhang521/NiuTrans.ST
source/s2t/Fbank.h
/* NiuTrans.NMT - an open-source neural machine translation system. * Copyright (C) 2020 NiuTrans Research. 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 * * h...
ALGO
0.986184
6.427902
{ "github_metadata": { "branch": "main", "commit_count": 147, "repo_created_at": "2023-09-18T02:54:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "848c1b984e...
3c63bfcc-340f-42b8-9072-b7e2a6292456
FANGDEI/DSA
QuestionSet/Leetcode/C-Puls-Puls/653. Two Sum IV - Input is a BST.cpp
/* * @Author: FANG * @Date: 2021-10-13 11:22:06 */ /** * 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) {} * TreeNo...
ALGO
0.999995
6.263974
{ "github_metadata": { "branch": "main", "commit_count": 207, "repo_created_at": "2021-07-29T01:29:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aed4da6b62...
d20c1bc2-cc5d-46c2-90b1-c7bbb10837d5
614984177/Code
ACMer/Codeforces/Codeforces Round #559 (Div. 2)/B.cpp
#include <bits/stdc++.h> using namespace std; const int MAXN = 3e5 + 5; const int INF = 0x3f3f3f3f; int n, a[MAXN], pre[MAXN], suf[MAXN]; int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) scanf("%d", &a[i]); for (int i = 1; i <= n; i++) pre[i] = max(pre[i - 1], a[i]); for (int i = n; i >= 1; i-...
ALGO
0.999954
3.581208
{ "github_metadata": { "branch": "master", "commit_count": 312, "repo_created_at": "2019-03-23T09:56: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": "e19bb9aa...
ff7e9e91-c69a-4559-93ca-57e2c743f45f
Se7s0/rolling-hashes
main.cpp
#include <cmath> #include <array> #include <vector> #include <cstdlib> #include <ctime> #include <algorithm> #include <limits> #include <utility> #include <stdexcept> #include <sstream> #include "rollingHashes.h" #include <fstream> #include <cstring> #include <sstream> #include <assert.h> #include <queue> #incl...
ALGO
0.999741
4.635106
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2024-08-03T14:28:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "243d803632...
10959d7a-c63a-4ae1-9724-3766f83c4760
chaoswork/onlinejudge
cses/SalaryQueries.TLE2.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 <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cst...
ALGO
0.999269
3.875719
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2016-03-01T03:55: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": "363b51274...
01cba1c2-601e-45cd-a7d0-b0346fdbaae5
marksman2op/cp
Graph Theory/Kahn's topological sort.cpp
// Kahn’s algorithm for Topological Sorting vector<int> tsort; bool kahn() { // Returns true if topological sort exists, else false priority_queue<int> pq; // To find any topological sort // priority_queue<int, vector<int>, greater<int> > pq; // To find lexographically smallest topological sort for...
ALGO
0.999975
5.179255
{ "github_metadata": { "branch": "master", "commit_count": 187, "repo_created_at": "2020-03-01T21:21: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": "aa6f2845...
48399cf9-1ea4-4d28-8e5f-2499d6486cb0
realharshgautam/Leetcode
2067-maximum-number-of-points-with-cost/maximum-number-of-points-with-cost.cpp
class Solution { public: int r, c; vector<vector<long long>> dp; vector<long long> left, right; long long f(int i, int j, vector<vector<int>>& points){ if (i==0) return dp[i][j]=points[i][j]; if (dp[i][j]!=-1) return dp[i][j]; if (j==0) right_left_max(i, points); return d...
ALGO
0.999902
5.533972
{ "github_metadata": { "branch": "main", "commit_count": 770, "repo_created_at": "2024-03-19T01:18:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cccb913e9...
0c3f732d-e252-4eeb-bc44-573f2af7cdde
ahmad-kashkoush/PS
codeforces/A._Single_Push.cpp
// // Created by ahmed-kashkoush on 2/13/23. //والله يابني مانا عارف ادينا بنهبد //كود بلا هدف, تكبييييير // Problem Link --> /**symbols @! --> important and and write it down */ #include<bits/stdc++.h> #define el '\n' #define ll long long #define reset(v, d) memset(v, d , sizeof(v)) #define all(s) s.begin(), s....
ALGO
0.999961
4.013144
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2022-09-27T11:29: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": "d994d5c3a8c...
1ae58714-7506-4f80-89c2-d456340ec03a
anshul45-github/Leet-GFG-360
Heaps/Task_Scheduler.cpp
// https://leetcode.com/problems/task-scheduler/ #include<bits/stdc++.h> using namespace std; // Approach 1 - Using Priority Queue class Solution { public: int leastInterval(vector<char>& tasks, int n) { int ans = 0; vector<int> v(26, 0); for(char &ch : tasks) v[ch - 'A']++; ...
ALGO
0.999977
6.893206
{ "github_metadata": { "branch": "main", "commit_count": 764, "repo_created_at": "2024-08-15T05:38:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d80f5b2d65...
5756a320-dbb2-4f17-851a-f58d03a65d06
zcoderz/cppAlgorithms
trees/InOrderBinaryTreeIterator.h
// // Created by <NAME> on 9/15/22. // #ifndef CPPALGORITHMS_INORDERBINARYTREEITERATOR_H #define CPPALGORITHMS_INORDERBINARYTREEITERATOR_H #include <vector> using namespace std; class BinaryTreeNode { public: int value; BinaryTreeNode *left; BinaryTreeNode *right; BinaryTreeNode(int value) { t...
ALGO
0.999477
6.784889
{ "github_metadata": { "branch": "master", "commit_count": 185, "repo_created_at": "2021-10-20T00:44:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1de7ea83...
82f4f376-4917-4c70-ae49-bd11c89cb8be
Highcodger-10/solutions
Data Structures And Algorithms/Stacks/stack_pushpop.cpp
//simple stack implementation using C++ #include<iostream> #include<cstdlib> #include<cstdio> #include<process.h> #define MAXSIZE 5 using namespace std; int stack[MAXSIZE]; int top = -1; int isfull(){ if(top == MAXSIZE - 1 ){ return 1; } else{ return 0; } } int isempty(){ if(top == -1){ return 1;...
ALGO
0.961759
3.749355
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2021-12-08T16:32: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": "a8cd09403e36...
d963add5-5f14-4c8e-bb1a-3f525d2f8cc4
meavik/C-
DataStructure_Algorithms/Array/deleteElement.cpp
#include<iostream> using namespace std; void display(struct Array); void del(struct Array*,int); struct Array{ int *A; int size; int length; }; int main(void){ Array a; cout << "Enter the size of the array: "; cin >> a.size; a.A = new int[a.size]; a.length = 0; int n; cout<<...
ALGO
0.972345
3.69996
{ "github_metadata": { "branch": "master", "commit_count": 154, "repo_created_at": "2020-06-21T16:40: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": "fffea011...
e6616f67-e048-4f48-a4ff-f0970a8a8fb9
ySalaun/LineSfM
third_party/openMVG/numeric/numeric.h
// Copyright (c) 2007, 2008 libmv authors. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, ...
ALGO
0.994122
5.791975
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2017-03-20T07:52:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 132, "forks": 46, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "11de33...
eb25df4d-e851-4b7e-8b78-5eb6d7e12657
charan-003/Matrix-Multiply
matrix_multiply.cpp
#include <iostream> #include <vector> #include <ctime> #include <omp.h> // Include OpenMP header using namespace std; double calculateTime(clock_t start, clock_t end) { return static_cast<double>(end - start) / CLOCKS_PER_SEC; } int main() { int n; cout << "Enter matrix size: "; cin >> n; // Ini...
ALGO
0.999948
5.641996
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-11-25T11:10: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": "df9e8b94f9fb...
04d88d79-2ed9-4c0d-bb44-95a4137a9df9
Cruvadio/Projects
Maze/Maze/Maze.cpp
// Maze.cpp: определяет точку входа для консольного приложения. // #include "stdafx.h" #include <stdio.h> #include <iostream> #include <cmath> #include <array> #include <iomanip> #include <string> #include <windows.h> #define TIME 500 using namespace std; enum direction { RIGHT, LEFT, UP, DOWN }; struct position...
ALGO
0.994768
3.176895
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-01-28T17:46: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": "42973affe8...
a5d7e100-2f75-4e91-b63b-b0ea05399de2
chaixiang2002/newrepo
cpp/sorce_screen/mainw.cpp
#include <algorithm> #include <iostream> #include <ostream> #include <string> #include <system_error> using namespace std; struct student { int num; std::string name; int math_score; int english_score; int datebase; void add(int nu, std::string na, int m, int e, int d) {} }; struct listt { student S[1000...
TOOL
0.981064
3.517199
{ "github_metadata": { "branch": "master", "commit_count": 66, "repo_created_at": "2021-09-08T13:21:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "e8a445a4b...
36a45d96-8194-4c53-846a-a85897d21c5b
Spirit-act/morse
morse.cpp
#include <iostream> #include <string> #include <map> using namespace std; const string version = "0.1.3"; map<char, string> mcodes{ { 'a', ".-" }, { 'b', "-..." }, { 'c', "-.-." }, { 'd', "-.."} , { 'e', "." }, { 'f', "..-." }, { 'g', "--." }, { 'h', "...." }, { 'i', ".." }, { 'j', ".---" }, { 'k', "-.-" ...
TOOL
0.996691
4.643072
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-08-18T09:43:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "545538cb42...
02056043-fd3d-42c0-80be-bbe9bc390d92
arkhadem/MVE
benchmarks/src/libraries/kvazaar/intra/scalar.cpp
#include "cstdint" #include "intra.hpp" #include "kvazaar.hpp" #include "scalar_kernels.hpp" #include <cstdint> void kvz_intra_pred_planar_generic(const int_fast8_t log2_width, const int_fast8_t width, const kvz_pixel *const ref_top, ...
ALGO
0.996269
5.788512
{ "github_metadata": { "branch": "main", "commit_count": 276, "repo_created_at": "2024-12-03T15:20:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aef4cfad9d...
ae6d0266-0b16-40cf-b531-e728ddae2002
automaticaddison/yahboom_rosmaster
mecanum_drive_controller/src/odometry.cpp
/** * @file odometry.cpp * @brief Implementation of odometry calculations for mecanum drive robots * * This implementation handles the unique kinematics of mecanum wheels to track * the robot's position and velocity in 2D space, including holonomic movement. * * Forward Kinematics Equations (all angular velociti...
ALGO
0.998457
7.252459
{ "github_metadata": { "branch": "main", "commit_count": 156, "repo_created_at": "2024-11-09T18:21:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 48, "forks": 13, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eef93fe4...
1cdb4d96-24ed-4e4a-9475-5be79b362200
JoanaMota/LearnCPP
Algorithms/Graphs/find_center_of_start.cpp
#include <iostream> #include <vector> #include <unordered_map> int findCenterSlower(std::vector<std::vector<int>> &edges) { std::unordered_map<int, int> vertices; for (int edge = 0; edge < edges.size(); edge++) { for (int vertice = 0; vertice < edges[0].size(); vertice++) { vert...
ALGO
0.999773
5.783621
{ "github_metadata": { "branch": "main", "commit_count": 130, "repo_created_at": "2020-12-06T18:46:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4f2ff0783d...
0d2f5239-c108-4fb0-90a9-3a9996e50ec9
Shivam-Bajpeyi/LeetCodes
515-find-largest-value-in-each-tree-row/515-find-largest-value-in-each-tree-row.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.999916
5.904094
{ "github_metadata": { "branch": "main", "commit_count": 1457, "repo_created_at": "2022-05-20T20:30:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "715955b08...
bea77fd2-2831-4a1e-a06e-6d3d77dc6c1f
lasiru1/Program-Logic-Using-Cpp
Book/Assignment_6/Gaddis_8thEd_Chap7_Prob01/main.cpp
//File: main.cpp //========================================================================== //Programmer: <NAME> //========================================================================== //Created: May 21, 2015, 11:51 AM //========================================================================== //Purpose: Larges...
ALGO
0.999887
4.974673
{ "github_metadata": { "branch": "master", "commit_count": 236, "repo_created_at": "2015-02-25T18:13: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": "c1035aa4...
c164f1b3-33ec-4e24-b989-e14505d51516
Ascnbeta/oi_code
luogu/P1379.cpp
#include <bits/stdc++.h> using namespace std; int f[5][5],ans[5][5]; int tmpx,tmpy; struct node{ int m[5][5]; int cnt,x,y; node(int a[][5],int p,int px,int py) { cnt = p; m[1][1] = a[1][1]; m[1][2] = a[1][2]; m[1][3] = a[1][3]; m[2][1] = a[2][1]; m[2][2] = a[2][2]; m[2][3] = a[2][3]; m[3][1] = a[3][1...
ALGO
0.999916
3.472738
{ "github_metadata": { "branch": "main", "commit_count": 119, "repo_created_at": "2025-01-08T11:30:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f408ae2d98...
0d7afc38-d004-476b-94dd-ff0c583b1cc3
s0metimes/aligothm
week6/17490_PutBridgeIlgamLake/17490_sihwan.cpp
#include<stdio.h> #include<utility> #include<queue> using namespace std; #define MAX 1000000 #define Pii pair<int, int> #define Edge pair<int, Pii> int parents[MAX+1]; int stones[MAX]; int roads[MAX]; long long totalStones; priority_queue<Edge> pq; int find(int a) { if(a == parents[a]) return a; else return...
ALGO
0.999979
3.689844
{ "github_metadata": { "branch": "master", "commit_count": 122, "repo_created_at": "2020-07-16T06:36: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": "638efee6...
cc37de45-86db-4ac4-ac50-9d2edf2a7a5a
rafiul-arefeen/CSE-4304
Lab_13/A_Find_The_Minimum.cpp
#include <bits/stdc++.h> class SegmentTree { private: int *segment; int n; std::vector<int> input; void init(int node, int b, int e) { if (b == e) { segment[node] = input[b]; return; } else { int left = node * 2; ...
ALGO
0.999935
5.14667
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2024-06-07T12:29:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35ac1b1e62...
2a7e66c6-027b-4a56-8522-03df581c7cbd
Courage003/-CrackYourPlacement
4-median-of-two-sorted-arrays/median-of-two-sorted-arrays.cpp
class Solution { public: double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) { int m = nums1.size(); int n = nums2.size(); /*//vector<int> temp(m + n); int i = 0; int j = 0; int k = 0; // Index for temp int size=(m+n); int idx1=(size...
ALGO
0.999997
6.195913
{ "github_metadata": { "branch": "main", "commit_count": 326, "repo_created_at": "2024-07-17T07:08: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": "6591fbe5dd...