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
18406dca-55ef-48e6-a975-6ca2e49e8862
ClickHouse/ClickHouse
src/Functions/array/arrayFill.cpp
#include <Columns/ColumnsNumber.h> #include <DataTypes/DataTypesNumber.h> #include <Functions/FunctionFactory.h> #include <Functions/array/FunctionArrayMapped.h> namespace DB { namespace ErrorCodes { extern const int ILLEGAL_COLUMN; } /** Replaces values where condition is met with the previous value that have...
TOOL
0.95817
7.007813
{ "github_metadata": { "branch": "master", "commit_count": 183246, "repo_created_at": "2016-06-02T08:28:18.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 41764, "forks": 7471, "issues": 4250, "pull_requests": 622 }, "file_meta": { "content_...
4ed6e434-967f-4308-a78a-730d2a21cd29
Chimsedibao/INFO2001_Cosolaptrinh
linersearch.cpp
#include <stdio.h> #include <algorithm> void linearseach (int a[], int n, int x){ for (int i =0; i <n; i++){ if( a[i]== x ){ printf ("Found"); return; } } } void binarysearch(int a[], int n, int x) { int l = 0, r = n - 1; while (l <= r) { int m = (l + r) / 2; if (a[m] == x) {...
ALGO
0.999877
4.543014
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2023-10-23T08:55:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bdfc62ce4248...
908b89c7-686f-4314-b1bf-f71655dbe6fa
zhangzisu/sources
_collection/LOJ/2763.cpp
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <map> #include <queue> #define MAXN 400010 #define MAXM 2000010 typedef long long lnt; const lnt INF = 0x3F3F3F3F3F3F3F3FLL; int n, m, k, p; std::map<int, int> px[MAXN], py[MAXN]; int head[MAXN], to[MAXM], val[MAXM], next[MAXM], tot =...
ALGO
0.999951
3.334435
{ "github_metadata": { "branch": "Online-Judge", "commit_count": 361, "repo_created_at": "2018-03-11T08:30:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "9c...
d1d2f4a3-0ab9-403b-a828-0b4997b7e8fa
Emandal21/Labirint
Labirint/labirint.cpp
#include "labirint.h" #ifndef LABIRINT_CPP #define LABIRINT_CPP Labirint::Labirint(string text) { ifstream fajl(text); int brRedova; int brKolona; fajl >> brRedova; fajl.get(); fajl >> brKolona; fajl.get(); if(brKolona < 0) throw "Neispravan broj kolona"; if(brRedova%2 =...
ALGO
0.976469
3.895449
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-03-14T15:40: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": "b3cf7cad62...
ddca8abf-e383-4240-b823-76523fc79379
wangx1996/Multi-Object-Tracking
track_ws/src/mot_tracking/src/hungarianAlg.cpp
#include "hungarianAlg.h" #include <limits> AssignmentProblemSolver::AssignmentProblemSolver() { } AssignmentProblemSolver::~AssignmentProblemSolver() { } track_t AssignmentProblemSolver::Solve( const distMatrix_t& distMatrixIn, size_t nOfRows, size_t nOfColumns, std::vector<int>& assignment, TMethod Method ) ...
ALGO
0.999961
4.999609
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2021-06-14T15:49:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 175, "forks": 60, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "f3ce086e...
267b00c0-fcdd-4a96-b110-b43a218bf61a
Kim-Junsik/Algorithm
algorithm_study/1449_수리공항승.cpp
// // 1449_수리공항승.cpp // algorithm_study // // Created by KimJunsik on 2020/07/06. // Copyright © 2020 KimJunsik. All rights reserved. // #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int N, L, input, start = 0, end = 0, num_tape = 0; cin >> N >> L; vector...
ALGO
0.999956
3.917982
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2020-08-05T06:42: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": "74cebf2c3...
d812ad1b-6bc5-4a2e-8f2d-982be8cc6776
kaushal028/DSA
LinkedList/circularoop.cpp
/*The following circular linked list has following operations:- 1)Push_front 2)Push-back 3)Pop_front 4)Pop_back 5)Insert at any position 6)Delete at any position 7)Print the list and also a size method that gives us the size of the list Feel Free to use any testcases*/ #include<iostream> using namespace std; class Nod...
ALGO
0.997614
5.690111
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2025-05-30T09:06: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": "0f06d6f397b...
a80c7e99-9383-40c5-a3cb-fe20d9f68c46
ishandutta2007/codeforces-d
deemo/normal/1251/D.cpp
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef long double ld; #define F first #define S second const int MOD = 1e9 + 7;//XXX const int C = 26;//XXX void add(int &x, int y){ x += y; while (x >= MOD) x -= MOD; while (x < 0) x += MOD; } int fix(int x){ whi...
ALGO
0.999953
3.802948
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:31: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": "1dd47b59617c...
0784792d-dafd-4267-8e89-29870f5a5b28
ManavA/stanford_self_driving_car_code
perception/point_cloud_mapping/include/point_cloud_mapping/sample_consensus/sac_model_normal_plane.h
/* * Copyright (c) 2009 <NAME> <rusu -=- cs.tum.edu> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * not...
ALGO
0.956864
7.545333
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-06-28T03:50:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 28, "forks": 417, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "86e0fed...
def1d80e-1b35-4f52-95ba-52426af09f32
dongyaosheng/PSK
CODE_DRIVER/PART - ROBOT_BROOKS (ETHERNET)/Phy_IO__BROOKS_ROBOT/Phy_IO__BROOKS_ROBOT/CObj__VacRobot_WAVEII__CALL_SUB_FNC.cpp
#include "StdAfx.h" #include "CObj__VacRobot_WAVEII.h" #include "CObj__VacRobot_WAVEII__DEF.h" #include "CObj__VacRobot_WAVEII__ALID.h" #include "math.h" #include "Macro_Function.h" #include "CCommon_DEF.h" //------------------------------------------------------------------------------------ int CObj__VacRobot_WAV...
TOOL
0.934409
5.156312
{ "github_metadata": { "branch": "main", "commit_count": 79, "repo_created_at": "2023-07-25T05:28: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": "cf49c7a9a66...
6743d2c0-196c-465f-a02c-9ac9544922fe
lgope/Problem-Solving-OJ
UVa-Online-Judge-Solutions/10311 - Goldbach and Euler.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define sc1(a) scanf("%lld",&a) #define sc2(a,b) scanf("%lld %lld",&a,&b) #define pf1(a) printf("%lld\n",a) #define pf2(a,b) printf("%lld %lld\n",a,b) #define mx 1000001 #define mod 10000007 #define Accepted 0 ll mark[mx], nprime; vector <ll> pri...
ALGO
0.999509
4.534101
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2019-12-17T16:45: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": "5e822f83a...
8b12cc4e-3e71-4980-908c-480b7bb47c15
mrcool20/cppcode
MyVector.cpp
#include<iostream> #include<bits/stdc++.h> using namespace std; template<typename T> class MyVector{ T *arr = NULL; int capacity = 0; int currSize =0; public: MyVector(){ arr = new T[1]; capacity = 1; currSize = 0; } void push_Back(int data){ if(currSize == capacity){ T* temp = new ...
TOOL
0.979787
4.055119
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-12-27T03:57: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": "afbd75feb6ca...
862b3d13-131d-4d03-a15d-8c4b8d1614bb
OpenXRay/xray
SDK/boost_1_30_0/libs/spirit/example/fundamental/calc/subrule_calc.cpp
/*============================================================================= Spirit v1.6.0 Copyright (c) 2002-2003 <NAME> http://spirit.sourceforge.net/ Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This so...
ALGO
0.953059
5.997211
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2019-03-21T12:57:05.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 104, "forks": 25, "issues": 0, "pull_requests": 3 }, "file_meta": { "content_id": "8778615f...
a2169eb3-f2c8-43ed-9926-883feca1ecd4
tugas-itb-erick/IF3230-Sistem-Paralel-Terdistribusi
Raft/src/raft_simulation.cpp
#include <raft_simulation.hpp> namespace raft { RaftSimulation::RaftSimulation(int cluster_size_){ cluster_size = cluster_size_; servers.resize(cluster_size+1); server_online.resize(cluster_size+1); for( int i = 1; i <= cluster_size; ++ i ){ servers[i] = Server( cluster_size, i, Sender(this,i) ); server...
ALGO
0.980361
5.09256
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2018-10-28T16:38:30.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cebc3030d6...
d9ca405a-fcc5-4b7e-94e9-548d41884e7c
kishan2k2/DSAandCP
DSA/GraphLUVDFS/dfsGraph.cpp
// For DFS from my knowledge only add on would be on removing the visited node list by sending the parent node. along with it. // This is especially true in tree but not in graph. // Doing operations around the recursive call of the dfs, either while backtracking or before it. // I will do it with visited array for ...
ALGO
0.999909
5.298253
{ "github_metadata": { "branch": "master", "commit_count": 132, "repo_created_at": "2023-10-01T14:37: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": "26b1dd37...
43fa8650-02dd-41d9-941d-2f15a03fda87
dustmddus/algorithm-study
백준/Gold/14503. 로봇 청소기/로봇 청소기.cc
#include<iostream> using namespace std; int n, m; int r, c, d; int board[51][51]; int dx[4] = { -1,0,1,0 }; int dy[4] = { 0,1,0,-1 }; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> n >> m; cin >> r >> c >> d; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { cin >> board[i][j]; } } ...
ALGO
0.999799
3.950194
{ "github_metadata": { "branch": "main", "commit_count": 141, "repo_created_at": "2022-04-22T05:35: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": "f3037e3805...
9d00db4d-7e8f-4b10-bdef-e1bfcff22538
AMorenoProjects/F.P
Sesión 10/Sesión10_Ejercicio39.cpp
//////////////////////////////////////////////////////////////////////////// // Fundamentos de Programación // ETS Informática y Telecomunicaciones // Universidad de Granada // Departamento de Ciencias de la Computación e Inteligencia Artificial // Autor: <NAME> /////////////////////////////////////////////////////////...
TOOL
0.924616
5.125978
{ "github_metadata": { "branch": "main", "commit_count": 48, "repo_created_at": "2024-11-17T17:46:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1c487f1d2db...
6c1cee71-4327-40c9-a2d4-edab610bf454
Ankit0225/Leetcode-and-gfg-solution
Subset II - GFG/subset-ii.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution { public: void subsets(int idx,vector<int> &arr,vector<int> &res,vector<vector<int>> &ans) { ans.push_back(res); for(int i...
ALGO
0.999166
6.519517
{ "github_metadata": { "branch": "master", "commit_count": 1756, "repo_created_at": "2022-01-16T16:05:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a6b5578...
753d35aa-204a-4111-8014-1ab23a792dff
LorenzoMaci/Programmazione-I
esami/Esami_fatti_bene/7Settembre2.cpp
/*scrivere una funzione che prenda in input un array di puntatori a caratteri A di lunghezza n, una stringa s, e uno short k e restituisca un valore booleano pari a true se l'Array A contiene almeno k coppie ordinate di caratteri distinti (a, b) tali che il carattere a appartenga alla stringa s e il carattere b non app...
ALGO
0.976624
3.635259
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2023-10-16T12:58: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": "271f02dc58...
0619df3f-f23b-427d-bc8e-29c694733bf3
hieupham1103/TINHOC
TRAIDONG/12-11/RANKING.cpp
#include<bits/stdc++.h> #define ii pair <int,int> #define fi first #define se second #define int long long #define double long double #define endl '\n' using namespace std; const int maxN = 1e4; const int maxPoint = 1e9; int a[maxN]; int b[maxN]; signed main(){ //freopen("input.INP", "r", stdin); //freopen("...
ALGO
0.999901
3.462544
{ "github_metadata": { "branch": "main", "commit_count": 406, "repo_created_at": "2021-08-20T03:38: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": "65d613e6de...
3f636da3-3084-4dbe-a822-0ef8bf24f565
gloria-utp/Sistema-de-Gestion-de-Hospital
gestion_gospital.cpp
#include <iostream> #include <string> class Paciente { public: int id; std::string nombre; int edad; std::string condicionMedica; int prioridad; // Prioridad de 1 (más alta) a 5 (más baja) Paciente(int id, std::string nombre, int edad, std::string condicion, int prioridad) : id(id), n...
ALGO
0.997345
6.747829
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2024-11-06T03:42:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5e32ed48573...
6bfef03c-51ef-4a8c-925d-30958044b3df
thenol/Leetcode
comprehension/1493. Longest Subarray of 1's After Deleting One Element.cpp
/* Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the resulting array. Return 0 if there is no such subarray. Example 1: Input: nums = [1,1,0,1] Output: 3 Explanation: After deleting the number in position 2, [1,1,1] cont...
ALGO
0.999989
5.715112
{ "github_metadata": { "branch": "master", "commit_count": 411, "repo_created_at": "2020-03-20T10:23: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": "be539d47...
9b42154e-5b09-4da2-9ded-7c9006f811a4
andrewei1316/OJSubmit
DATASOURCE_HDUSubmit/4738/4738_20150907-215529_187MS_25616K_AC.cpp
/*============================================================================= # Author: <NAME> # Last modified: 2015-09-07 17:24 # Filename: a.cpp # Description: =============================================================================*/ #include <map> #include <cmath> #include <queue> #...
ALGO
0.999976
3.918334
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-11-10T11:17:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1162a916b5...
355780cc-dadb-404e-b208-2ab7612784d2
ishandutta2007/codeforces-a
arthur.nascimento/normal/388/B.cpp
#include <iostream> #include <algorithm> #include <cmath> #include <assert.h> #include <stdio.h> #include <ctime> #include <cstdlib> #include <utility> #include <string.h> #include <vector> #include <queue> #include <stack> #include <set> #include <map> #define INF (1<<30) #define pii pair<int,int> #define pll pair<l...
ALGO
0.999887
3.018513
{ "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": "0f56482d5899...
df2c0a53-cd50-4223-bc4c-62c6dcd9d756
Ra1nWarden/Online-Judges
Codeforces/311/d.cpp
#include <cstring> #include <cstdio> #include <vector> #define MAXN 100005 using namespace std; map<int, vector<int> > adjList; int vis[MAXN]; map<int, int> cm; typedef pair<int, int> QueueNode; int main() { int n, m; scanf("%d %d", &n, &m); vector<int> dummy; for(int i = 1; i <= n; i++) { if(adjList.cou...
ALGO
0.999923
3.455222
{ "github_metadata": { "branch": "master", "commit_count": 208, "repo_created_at": "2014-04-02T05:35:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 38, "pull_requests": 0 }, "file_meta": { "content_id": "e1e583a...
724f9cb8-69d1-47ee-9d04-70e7c441d5c4
Jiratlap/GTJN
src/node.h
#pragma once #include <bits/stdc++.h> #include <iostream> using namespace std; /* Implement functions to support the struct Node including * 1. Print: display the value of Node. (Part 1.1) * 2. CreateNode: create the new node and return its pointer (Part 1.2) * 3. FreeNode: free the space pointed by node pointer. (...
ALGO
0.98965
4.373781
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-05-13T13:18:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b35c7da305e2...
f75e7805-5e6d-4b54-999f-73736cb5a3a2
WhiZTiM/coliru
Archive2/0d/d96bf83cb011ad/main.cpp
#include <stdio.h> typedef int ElementType; const char PRINTF_ELEMENT[] = "%d"; // %d als int dargestellt? typedef struct{ // Seite 11 int data; struct ListNode *next; // Pointer show next element type of data struct ListNode }ListNode; unsigned int sizeOfList(ListNode *list); ListNode...
ALGO
0.981801
3.559989
{ "github_metadata": { "branch": "master", "commit_count": 42630, "repo_created_at": "2016-04-21T16:34:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2662c7...
4658e559-444c-4035-b20e-37eda9087e7d
moriiism/srt
srtlib/crab/rl_crab_smth_pf_zal.cc
#include "rl_crab.h" #include "rl_crab_statval.h" #include "rl_crab_smth_pf_zal.h" void SrtlibRlCrabSmthPfZal::GetSkyNew( const double* const alpha_arr, const double* const beta_arr, const double* const mval_arr, double live_time_ratio_ave, int nsky, double mu, double* const sky_new_arr) { ...
ALGO
0.998751
4.487578
{ "github_metadata": { "branch": "master", "commit_count": 137, "repo_created_at": "2017-10-10T03:06:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b366d96e...
dd96a71a-3231-4f3f-81f1-41b72723fc85
s417-lama/ppopp21-preemption-artifact
lammps/src/KSPACE/pppm.cpp
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
TOOL
0.982678
3.45488
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2020-11-23T04:48:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cc891d81559...
f8fafd9c-6c8b-44af-954e-b7b028a21e69
TomandJery2021/ppp
lite/kernels/xpu/reduce_mean_compute.cc
// Copyright (c) 2019 PaddlePaddle 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...
TOOL
0.911463
7.04918
{ "github_metadata": { "branch": "290_bench_doc", "commit_count": 5481, "repo_created_at": "2021-06-22T08:53:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "...
01cdcf12-a426-4d1a-9511-152586297a90
runqis2/connect-four
connect-four/include/core/board.h
#include <string> #include <vector> namespace connect { enum class BoardState { NoWinner, Playerwins, AIwins, }; class Board { public: Board(); Board(std::vector<std::vector<int>> board, int player); void NewGame(); /** * Evaluates the state of the board. */ BoardState WinningMove(); vo...
ALGO
0.991546
4.597322
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2020-12-19T21:34: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": "8873127a1c8c...
00def003-bc47-4f00-a392-d6355e024af5
YYMatUCI/chickenscheme
a0/linkedlist.cpp
#include "linkedlist.hpp" /** * \brief Return the size of linked list starting from Node n. * \param n The head of desired linked list. * \return The length of linked list. */ int list_size(const Node* n) { int i = 0; while (n != NULL) { n = get_next(n); i++; } return i; } /** * \...
TOOL
0.964427
4.966276
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2024-05-04T22:10:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "91c6a6d063e...
8105bf32-7806-4f5b-8b7c-2e9a77198153
jiandingzhe/treeface
src/treeface/graphics/guts/Utils.cpp
#include "treeface/graphics/guts/Utils.h" using namespace treecore; namespace treeface { double clockwise_accum( const Geometry::HostVertexCache& vertices, IndexType i_begin, IndexType i_end ) noexcept { treecore_assert( i_end - i_begin > 2 ); treecore_assert( i_end <= vertices.size() ); double sum = 0....
ALGO
0.999774
6.414451
{ "github_metadata": { "branch": "master", "commit_count": 306, "repo_created_at": "2015-03-12T02:55:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "2e690779...
e9c6da6a-30d3-4406-8bf2-59989521aaf6
treymer/college-projects
RandomFrequency/main.cpp
/* ================================================================================= File: Question1_Project8 ================================================================================= Programmer: <NAME> Date: 10/30/2014 Class: CPSC 121 Time: TR 2:30pm, T lab Instructor: Dr. <NAME> Project: Project No. 8, Questi...
ALGO
0.999045
4.3939
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-12-03T14:05: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": "801131056a...
692afb92-ffd3-4e4e-b30f-ca7597d81bd7
HexHive/FuzzGen
src/coalesce.cpp
// ------------------------------------------------------------------------------------------------ /* * Copyright (C) 2018 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 ...
ALGO
0.970184
4.796188
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2019-11-01T10:03:31.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 305, "forks": 55, "issues": 8, "pull_requests": 1 }, "file_meta": { "content_id": "33aba24...
3f1f5a69-e9fc-4412-bfd3-83c60ad74c48
Jeija/spheretest
src/treegen.h
/* Minetest Copyright (C) 2010-2013 celeron55, <NAME> <<EMAIL>>, 2012-2013 RealBadAngel, <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License,...
TOOL
0.959915
6.233041
{ "github_metadata": { "branch": "master", "commit_count": 5905, "repo_created_at": "2016-10-06T17:05:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 169, "forks": 20, "issues": 7, "pull_requests": 0 }, "file_meta": { "content_id": "6439...
dae23029-5ce5-43f2-9428-b5811415e1ae
GoodBoyth/Maze_solution
stack_maze.cpp
#include <iostream> #define SIZE 100 #define BOR 5 using namespace std; /// footstep typedef struct Foot { int x; int y; } Foot; /// move direction typedef struct Direction { int x; int y; } Direction; /// save the footstep typedef struct Stack { Foot data[SIZE]; int base; int top; } Stac...
ALGO
0.999933
3.421306
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2017-04-09T10:58:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "78a1053ee1...
f1636606-ac1b-4095-885a-c5250df7c319
Bon-Developer/Indy7-rnb_control-bulletSim
controllers/Hybrid_Null/Hybrid_Null.cpp
#include <string.h> #include <Eigen/Dense> #include <iostream> #include "Hybrid_Null.h" using namespace RNB; using namespace Eigen; void ControlHybrid_Null::reset_control(Eigen::VectorXd &q0){ Eigen::VectorXd zerovec(mode==ControlMode::JOINT_CONTROL? JOINT_DOF : TASK_DOF); Eigen::VectorXd zerovec_task(TASK_DOF); z...
ALGO
0.999509
5.027466
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-06-11T01:28: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": "88e245caa2b8...
671ea402-c115-4bd6-b04e-ac2cf761f243
bigbighd604/Leetcode
src/valid-parentheses/solution.cc
#include <iostream> #include <map> #include <string> #include <vector> using namespace std; class Solution { public: bool isValid(string s) { int size = s.size(); // Empty string means 0 pairs if (size ==0) return true; // Odd number chars must be invalid if (size % 2 == ...
ALGO
0.997383
6.12357
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2015-01-12T00:39: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": "24a9c0af7...
920baed7-25f6-4042-ac60-b765ca3addfc
matoous/CTU-codes
PAL/5LCGvalue/main.cpp
#include <iostream> #include <vector> #include <cmath> #include <numeric> #include <limits> #include <algorithm> using namespace std; pair<int64_t, int64_t> gcdExtended(int64_t a, int64_t b) { if (a == 0) // default case return make_pair(0, 1); pair<int64_t, int64_t> gcd = gcdExtended(b % a, a); // sw...
ALGO
0.999981
4.285361
{ "github_metadata": { "branch": "master", "commit_count": 328, "repo_created_at": "2017-02-25T12:49:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 5, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "c48bc2f...
7f31c2fe-626b-4533-b6ed-5da95ef49062
Yeluorag/ACM-ICPC-Code-Library
CQU Summer/8-7 动态规划 IV/D - Perfect Service.cpp
#define LOCAL #include <iostream> #include <sstream> #include <cstdio> #include <vector> #include <queue> #include <map> #include <set> #include <stack> #include <string> #include <cstring> #include <algorithm> using namespace std; typedef long long LL; #define mem(a, n) memset(a, n, sizeof(a)) #define rep(i, n) for(in...
ALGO
0.999222
3.633998
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2016-07-29T14:40: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": "f24fe7d33...
02c2ccb9-be2f-46d6-8a21-75a3ebe59d37
RussFenenga/MagicSquare
MagicSquare/main.cpp
// // main.cpp // MagicSquare // // Created by <NAME> on 3/4/15. // Copyright (c) 2015 com. All rights reserved. // #include <iostream> #include <vector> #include "MagicSquare.h" using namespace std; int main() { int dim = 0; bool done = false; bool validRow = false; bool validCol = false; int...
ALGO
0.978764
4.528929
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-03-11T20:17: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": "9722899250...
e454d457-d764-4f48-8e3a-8f34dc752b2b
copyme/PHex-CPP
Mesher/Mesh.cpp
#include <Eigen/Dense> #include <iostream> #include <vector> #include <queue> #include <algorithm> #include <utility> #include <igl/PI.h> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/connected_components.hpp> #include <CGAL/Arrangement_with_history_2.h> #include <CGAL/Arr_linear_traits_2.h> #include ...
ALGO
0.99288
4.885172
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2021-07-26T13:58:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3aea52fbb...
71f3c1da-8fde-4662-99e0-3bd94123794e
ssafy11-study/algorithm
src/week4/15663_1조_김현우.cc
#include <iostream> #include <vector> #include <algorithm> #define fastio cin.tie(0)->ios_base::sync_with_stdio(0) using namespace std; int N, M, tmp, tgt[8]; bool selects[8]; vector<int> v; vector<vector<int>> result; void perm(int tgtIdx){ if(tgtIdx == M){ vector<int> temp; for(int i = 0; i < M...
ALGO
0.999902
3.750623
{ "github_metadata": { "branch": "main", "commit_count": 120, "repo_created_at": "2024-02-17T08:42:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d81c0e77a2d...
07d61ad2-fcdf-4894-9225-a1276621bf7a
faridulhaque/singly_linked_list
assignment/test_if_same.cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; class Node { public: int value; Node *next; Node(int value) { this->value = value; this->next = NULL; } }; void insert_tail(Node *&head, int v) { Node *newNode = new Node(v); if (head == NULL) { ...
ALGO
0.999954
4.019437
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-06-21T12:39: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": "f5c58e8d12e7...
afbe0add-5979-4c8e-a2a4-8f89207033ab
hajunsong/Controller
RobotSim/src/controlmain.cpp
#include "controlmain.h" static double temp = 0; ControlMain::ControlMain() { recurdyn_data1.clear(); recurdyn_data2.clear(); analysis_data_fk.clear(); analysis_data_ik.clear(); analysis_data_dy.clear(); memset(size1, 0, sizeof(unsigned int)*2); memset(size2, 0, sizeof(unsigned int)*2); ...
ALGO
0.907831
4.01115
{ "github_metadata": { "branch": "master", "commit_count": 53, "repo_created_at": "2019-09-04T13:39: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": "b094b3050...
c165ba5c-d640-4e69-b0a6-f8be1b8b788a
Saborit10/3N16M4-Team-Reference
old_codes/quadtree.cpp
/* Quadtree - Maneja queries en dos dimensiones. - Cambiar el neutro, el tipo del valor y la funcion de mezcla segun se requiera. - Se define el rectangulo de la forma o--c--o | | a b | | o--d--o - Un quadtree de valores enteros, cuya mayor dimension es n, tiene profundid...
ALGO
0.999786
4.047259
{ "github_metadata": { "branch": "template", "commit_count": 45, "repo_created_at": "2021-07-20T20:48:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "7940c7e...
7003d793-9343-4452-b700-7e4dbacf57a4
Garfie1dlnwza/Lab-Algo
Lab01/breathe.cpp
// Fractions calculator that finds GCD and LCM // Author: <NAME> // Last updated: Oct 2023 #include <iostream> #include <vector> #include <cmath> #include <iomanip> using namespace std; long long findGCD(long long x, long long y); long long findLCM(long long x, long long y); class RationalNumber { long long top...
ALGO
0.99975
6.050263
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-03-10T07:23:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "87853d17e666...
e38068f8-54db-457b-bc8e-2ee74e51a32b
AhzamZobairi-dev/Decode-DSA-Cpp-2.0-
Week2_Fundamental_of_programming_1/3.Loop_1/08.Problem_GP.cpp
/* GEOMETRI PROGRESSION (GP) A geometric progression or a geometric sequence is the sequence, in which each term is varied by another by a common ratio. -- a, ar, ar2, ar3, ar4, and so on. we will come across some main terms, which are denoted as: -- a = First term -- r = common ratio -- ar(n-1) ...
ALGO
0.996278
3.945673
{ "github_metadata": { "branch": "main", "commit_count": 188, "repo_created_at": "2023-10-27T16:04:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "941461bcd5...
0e2fb7cc-3f10-42d9-9541-892c025133db
kariskan/PS
백준/Gold/1790. 수 이어 쓰기 2/수 이어 쓰기 2.cc
#include <algorithm> #include <cmath> #include <iostream> #include <string> using namespace std; long long digit[12]; int main() { for (int i = 0; i <= 11; i++) { digit[i] = (i + 1) * (long long)pow(10, i) * 9; } int n, m; cin >> n >> m; long long sum = 0; for (int i = 0; i <= 10; i++...
ALGO
0.999862
3.609636
{ "github_metadata": { "branch": "main", "commit_count": 2510, "repo_created_at": "2022-02-28T01:02: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": "6f648e732...
ddbd0eab-2c3a-48c6-9cc0-58881234f9fa
Knackie/AdventOfCode2024
day05.cpp
#include <iostream> #include <fstream> #include <vector> #include <string> #include <unordered_map> #include <queue> #include <set> using namespace std; // Lire les règles et les mises à jour depuis un fichier void parseInput(const string& filename, vector<pair<int, int>>& rules, vector<vector<int>>& updates) { if...
ALGO
0.99996
5.595257
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2024-12-01T09: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": "8dc4df66b25...
c9d24724-894d-4200-93b1-0ad98f51a8a4
lorenzomoulin/Programacao-Competitiva
URI/grafos/1123.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for(int i = a; i < (b); ++i) #define trav(a, x) for(auto& a : x) #define all(x) x.begin(), x.end() #define sz(x) (int)(x).size() typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; #define MAXN 255 #define INF 0x3f3f3f3f vector<pii...
ALGO
0.999988
3.843826
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2019-03-14T12:07: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": "2e3fef965...
8a41ad97-45e1-4ad6-95af-ed1717fa8aa8
Ashishba0/SEM-1-DSL
polynomial.cpp
#include <bits/stdc++.h> using namespace std; // Represents the single polynomial class Node { public: int x; int y; Node *next; Node(int x, int y, Node *next) { this->x = x; this->y = y; this->next = next; } }; // Simply Prints the List to the Screen void printList(No...
ALGO
0.999539
4.937439
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-02-19T16:50: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": "da5d2300db94...
6d37be26-6825-451c-b59c-9e000a3392ca
WanchaoYao/SGM
spsstereo_128_optimized/SPSStereo.h
/* Copyright (C) 2014 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribu...
ALGO
0.993384
6.504071
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2016-03-31T12:42:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 101, "forks": 35, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "1cc6050...
ad8da4df-3034-416c-9cce-50e5381390d8
pavancos/AnalysisAlgos
DivideandConquer/binarySearch_Recursive.cpp
#include <iostream> using namespace std; bool binsearch(int *a, int l, int h, int k){ if (l <= h){ int m = (l + h) / 2; if (a[m] == k){ cout << m << endl; return true; } else if (a[m] < k) binsearch(a, m + 1, h, k); else binsearch(a, l, m, k); } } ...
ALGO
0.999883
5.341447
{ "github_metadata": { "branch": "main", "commit_count": 77, "repo_created_at": "2024-01-02T07:39: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": "64c792e283a...
21fb132c-cb7c-4a12-8988-1ced2ebe8e3f
Lucas-Blanger/Competitive-problems
C++/1509.cpp
#include <iostream> #include <unordered_set> #include <vector> #include <string> using namespace std; const int MOD = 1e9 + 7; int contarFormas(const string& palavra, const unordered_set<string>& dicionario) { int tamanho = palavra.size(); vector<int> dp(tamanho + 1, 0); dp[0] = 1; for (int i = 1; ...
ALGO
0.999837
5.7131
{ "github_metadata": { "branch": "main", "commit_count": 75, "repo_created_at": "2024-09-10T00:47: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": "94ade78ab21...
12a364e7-eb5d-435b-bee9-f6f56a7cbb35
RyoSci/AtCoder
くじかつ/20211025/d.cpp
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <vector> #include <map> #include <set> #include <string> #include <queue> #include <stack> using namespace std; #define MOD 1000000007 #define INF (1 << 29) #define EPS (1e-10) typedef long long Int; typedef pair<Int, Int> P; #define m...
ALGO
0.999958
3.949034
{ "github_metadata": { "branch": "master", "commit_count": 1005, "repo_created_at": "2020-06-25T03: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": "e45e090...
9cbf4e0a-3b4c-402f-a573-62ac1682424c
rainshowerr/Algorithm-study
백준/Gold/1600. 말이 되고픈 원숭이/말이 되고픈 원숭이.cc
#include <iostream> #include <queue> #include <tuple> #include <algorithm> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int k, w, h, map[200][200], visited[200][200][31]; int dx1[8] = { -1, -2, -2, -1, 1, 2, 2, 1 }; int dy1[8] = { -2, -1, 1, 2, -2, -1, 1,...
ALGO
0.999978
3.770681
{ "github_metadata": { "branch": "main", "commit_count": 491, "repo_created_at": "2022-03-27T16:07: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": "f73fef6882...
31b8db0b-b477-4e0b-b080-af2874577dc6
deluxDeepak/DSA
Graph/Traversal/02_bfs_tarversal.cpp
#include <bits/stdc++.h> using namespace std; vector<int> bfs_traversal(int v, vector<int> adj[]) { queue<int> q; vector<bool> visited(v, 0); q.push(0); visited[0] = 1; vector<int> ans; while (!q.empty()) { int node = q.front(); q.pop(); ans.push_back(node); ...
ALGO
0.999983
5.18903
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2025-02-18T13:38: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": "ce5aa8a397c...
b1d824b2-dd57-4d84-b3ef-264498038b18
Tunasss/CSES
Pizzeria Queries.cpp
#include <bits/stdc++.h> #include <unordered_map> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef string str; typedef pair <int, int> ii; #define file "TEST" #define st first #define nd second #define pb push_back #define lb lower_bound #define ub upper_bound #define er equal_range #d...
ALGO
0.999846
4.351885
{ "github_metadata": { "branch": "main", "commit_count": 56, "repo_created_at": "2022-06-01T11:44: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": "6b6fad17071...
aff07b9e-71ed-496c-9861-3057e044115a
version0chiro/Leet-Code-Solutions
Max Sum Subarray of size K - GFG/max-sum-subarray-of-size-k.cpp
// { Driver Code Starts #include<bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution{ public: int maximumSumSubarray(int K, vector<int> &Arr , int N){ // code here int sum = 0; int ans = INT_MIN; int i=0; for(i=0;i<K;i++){ sum+=Arr[i];...
ALGO
0.999919
6.183951
{ "github_metadata": { "branch": "main", "commit_count": 2860, "repo_created_at": "2021-03-26T07:35:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bda6d4ed3...
ccc38f29-3eef-4481-860c-8d8d6d99c621
meysam-bagheri/MercuryDPM
Kernel/CG/Coordinates/Base_XY_XZ_YZ.cc
//Copyright (c) 2013-2023, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
ALGO
0.972292
5.083825
{ "github_metadata": { "branch": "master", "commit_count": 772, "repo_created_at": "2024-09-06T11:58:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d07a7152...
e33ecf08-1b17-41da-824c-cb2e2858a650
Vyshnavi21504/Cpp
insertithposition_LinkedList.cpp
#include<iostream> using namespace std; class Node { public: int data; Node* next; Node(int data) { this->data = data; next = NULL; } }; void print(Node* head) { Node* temp = head; while (temp != NULL) { cout << temp->data << " "; temp = temp->next; } c...
ALGO
0.999968
4.447634
{ "github_metadata": { "branch": "main", "commit_count": 60, "repo_created_at": "2023-08-02T11:47: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": "d06213a6687...
6354c34d-6fa3-4e7f-b464-cbce2e6f6313
queuedq/ps
BOJ/20537/gap.cpp
#include "gap.h" #include <bits/stdc++.h> using namespace std; using lld = long long; using pll = pair<lld, lld>; const lld MX = 1e18; pll query(lld a, lld b) { lld mn, mx; MinMax(a, b, &mn, &mx); return {mn, mx}; } lld solve1(int N) { lld s = -1, e = MX+1; lld best = 0; for (int i=N; i>0; i-=2) { auto [p, q...
ALGO
0.9996
4.420076
{ "github_metadata": { "branch": "master", "commit_count": 824, "repo_created_at": "2018-05-26T14:07:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d6a8cb51...
a8a70fc5-679a-4124-bd46-38e3b880f03a
Grishmadeshmukh/DSA_cpp
7. DoublyLL.cpp
#include<iostream> using namespace std; class Node{ int data; Node *prev; Node *next; public: friend class List; Node(int d){ data=d; prev=NULL; next=NULL; } }; class List{ Node *head; public: void create(); void display(); void insert(); void...
ALGO
0.999441
4.23899
{ "github_metadata": { "branch": "main", "commit_count": 28, "repo_created_at": "2021-07-22T13:07: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": "0d10186db8f...
de29aab9-c900-4d8e-b79a-158c3e771984
ViiniciusK9/tasks
uva/uva_374.cpp
#include<bits/stdc++.h> using namespace std; #define DBG(x) cout << "[" << #x << "]: " << x << endl #define F(x) std::fixed <<std::setprecision(1)<<(x) typedef long long ll; ll exp_bin(ll a, ll e, ll p) { if (e == 0) { return 1; } if (e & 1) { return (a * exp_bin(a, e-1, p)) % p; }...
ALGO
0.999946
4.81884
{ "github_metadata": { "branch": "main", "commit_count": 279, "repo_created_at": "2021-10-14T23:48:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0329a44166...
2ba65fe6-3dbd-4ac7-8ab4-a207cdc52bba
quocbaolinux-beta/not-a-file
4425/tamgiac.cpp
#include <bits/stdc++.h> using namespace std; int main() { long long n, S; cin >> n >> S; long long x, y; cin >> x >> y; vector<long long> pts(n); for (int i = 0; i < n; i++) { cin >> pts[i]; } sort(pts.begin(), pts.end()); if (y == 0) { cout << 0...
ALGO
0.999954
3.707117
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2025-03-25T15:18: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": "3ba79f11785...
2404bd01-3094-4609-91de-8c7ddf3f1747
raincross7/code-similarity
codes/train_code/problem356/problem356_134.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; int N; vector<int> hist; // カードの分布 /* 異なる数字からなるk枚の組を、e列作成することを考える。 Ai を、横kマス 縦eマス に並べたい。 方法 Aをソートする Aを先頭から取り出し、左上から左下に向かって埋めていく。 同じ数字がe個連続したら、それ以降の同じ数字は捨てる Aとkが与えられたとき、k*eを埋め尽くせるeの最大値 をどうやって求めるか? Aのヒストグラム hist[i] 捨てた数 T = Σmax(0,...
ALGO
0.999972
4.14916
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07: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": "b11333731a5e...
054a1a85-a56e-4d02-90af-8183f11d2d87
jackschu/icpcPrep
adventofcode2021/13a.cpp
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdint.h> #include <...
ALGO
0.999345
3.973022
{ "github_metadata": { "branch": "master", "commit_count": 209, "repo_created_at": "2018-04-02T01:40:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "09e5d1a5...
180df578-c21f-4c5b-aff2-a54b416a812c
pdrsa/maratona
codeforces/lasalle2018/h.cpp
//JP - Not in Kansas Anymore #include <bits/stdc++.h> using namespace std; #define _ ios_base::sync_with_stdio(0);cin.tie(0); #define endl '\n' #define pb push_back // #define int ll typedef long long ll; const int INF = 0x3f3f3f3f; const ll LINF = 0x3f3f3f3f3f3f3f3fll; int32_t main(){ // _ int n; cin >> n; vect...
ALGO
0.999973
4.539188
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2020-05-06T13:38:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c20a82d62...
d069ab70-9eb0-4626-bc5b-17e9876ae068
Mtaylorr/Competitive-programming-Solutions
Farewell Round/IlluminationOptimization.cpp
// Mtaylor #include <bits/stdc++.h> using namespace std; #define pb push_back #define fi first #define se second #define mp make_pair #define endl '\n'; #define sz(x) ((int)(x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() void dbg_out() { cerr << endl; } template <typename Hea...
ALGO
0.999907
3.884567
{ "github_metadata": { "branch": "main", "commit_count": 1208, "repo_created_at": "2021-07-28T20:32:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 49, "forks": 7, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "90b95b5e...
1b93796d-ac59-484f-ac1b-2a301a702afa
royun0307/baekjoonstart
5439/5439.cpp
#include <iostream> #include <deque> #include <string> #include <algorithm> using namespace std; int main() { int t; cin >> t; while (t--) { string p, arr, tmp = ""; int size; bool front = true; bool isFlag = true; deque<int> deque; cin >> p; cin >> size; cin >> arr; for (int i = 1; i < a...
ALGO
0.99897
4.093717
{ "github_metadata": { "branch": "main", "commit_count": 51, "repo_created_at": "2024-02-01T14:46:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e05ba5ba634...
3d4a3036-e64c-469e-84fa-1ffa3f121204
duchenlong/Cpp
leetcode/一次编辑.cpp
class Solution { public: bool oneEditAway(string first, string second) { int n = first.size(); int m = second.size(); int t = n - m; if(abs(t) > 1) return false; // 线性做法 int cnt = 1; int i = 0, j = 0; while(i < n && j < m) { if(first[i] ==...
ALGO
0.99997
5.679313
{ "github_metadata": { "branch": "master", "commit_count": 1006, "repo_created_at": "2020-03-01T15:16:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 25, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "5735e...
decea1cb-23e2-41f0-ad3a-87f50043805e
sonak-dev/DSA-Practice
1_Array_FIle/02_STL/_2D_Vector.cpp
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main(){ // 2D Vector vector< vector<int> > arr = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, }; // Now how to print 2D vectors // for(int i=0; i<arr.size(); i++){ // for(int j=0; j<arr[i].size...
ALGO
0.999248
4.918316
{ "github_metadata": { "branch": "main", "commit_count": 70, "repo_created_at": "2024-01-18T09:09: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": "01397c0732a...
b7b87000-699f-458e-b49c-b2e721efd1f7
Babita1947/Leetcode-Contest
3_Feb_2024/3_Feb_2024.cpp
// Type of Triangle II #include<bits/stdc++.h> using namespace std; class Solution { public: string triangleType(vector<int>& nums) { sort(nums.begin(), nums.end()); for (int i = 0; i < nums.size() - 2; i++) { if (nums[i] + nums[i + 1] > nums[i + 2]) { if (nums[i] == n...
ALGO
0.999872
4.922317
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2023-11-12T05:13: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": "27ba9c35a65...
be5b4c89-2a86-4ab9-82aa-c8742f347f88
SheharyarDaym/Data-Structures-Algorithm
University Labs/Lab 4/Task3.cpp
#include <iostream> using namespace std; class Node { public: int data; Node *prev; Node *next; Node(int x = 0) : data(x), prev(NULL), next(NULL) {} }; class FrontMiddleBack { private: Node *front; Node *rear; public: FrontMiddleBack() : front(NULL), rear(NULL) {} void pushFront(int v...
ALGO
0.998556
4.523879
{ "github_metadata": { "branch": "main", "commit_count": 48, "repo_created_at": "2024-06-30T12:16: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": "dfa4c60b5f2...
a8fe44fb-40c5-4b6f-ae35-b150138ff871
ednunes/competitive-programming
judges/codeforces/exercises/decoding.cpp
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define what_is(x) cerr << #x << " is...
ALGO
0.999992
4.05136
{ "github_metadata": { "branch": "master", "commit_count": 78, "repo_created_at": "2018-05-08T00:15: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": "d8014538a...
373c7ba3-b578-4c18-9433-3a1d02a7a4dd
HieuGM/DSA_PTIT
DSA09019.cpp
#include<bits/stdc++.h> #define int long long #define pb push_back #define fi first #define se second #define pii pair<int, int> #define FULL(a) a.begin(), a.end() #define FOR(i, a, b) for(int i=a; i<=b; ++i) #define TIME (1.0 * clock() / CLOCKS_PER_SEC) #define HieuGM signed main #pragma GCC optimize("Ofast,03,unroll-...
ALGO
0.999991
4.75982
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-06-24T17:26: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": "461339794d84...
5092ac1a-7a19-4c6c-b874-9f7ff2d50705
ishandutta2007/codeforces-b
belonogov/normal/300/C.cpp
#include <cstdio> #include <iostream> #include <algorithm> #include <string> #include <cstring> #include <cassert> #include <ctime> #include <cstdlib> #include <cmath> #include <set> #include <map> #include <vector> #include <queue> using namespace std; #define fr first #define sc second #define mp make_pair #define ...
ALGO
0.999794
3.653251
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-04-11T01:05:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3ee1eb73a1f9...
777909ff-d48b-40f8-8e75-5bb916b90d75
JEDLTM/Programacion-estructurada
Proyecto Final/Fap9.h
//inclusión condicional #ifndef FAP9_H #define FAP9_H // Función que imprime mis datos personales void Fap9(); //Fin de la inclusion condicional #endif // FAP9_H #include <iostream> #include <cstdlib> // Para usar la funcion rand() using namespace std; // Funcion para mostrar una matriz cuadrada // Recibe la matr...
ALGO
0.966149
4.076759
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2025-02-04T10:41:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "65f70d334fa...
e07a965b-774c-4411-9d08-5bdd94175ba8
Zeeshan-20/Data-Structure-with-C-
Dsa with c++/stack_using_linkedLIST.cpp
// BY <NAME> Stack using LINKED LIST #include <iostream> using namespace std; #define max 100 class node { public: node *next; int info; }; node *push(node *top) { int data; node *ptr = (node *)malloc(sizeof(node)); cout << "enter element" << endl; cin >> data; ptr->info = data; ptr->nex...
ALGO
0.999256
4.273087
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2022-03-15T11:28:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "541c8097d5a6...
9475f7df-7b26-4a03-b6fb-5d31ab8346fb
RKThirteen/Algoritmica
graf_grade_flux.cpp
#include <bits/stdc++.h> using namespace std; ifstream f("graf.in"); int intra[1001],iese[1001],tata[1001],viz[1001],r[1001][1001]; int n,m,sol; bool ok=1; vector<int> a[1001]; vector<int> rez[1001]; vector<int> taietura; ///Complexitate: O(nm^2) ///se fol ford-fulkerson cu graf rezidual ///actualizari pe baza grafu...
ALGO
0.999336
3.194081
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-02-27T14:31:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b2deb6d39562...
dc0df7f0-d43f-4220-a4c4-21ece2e1f65b
lcrawlab/sme
src/genotype.cpp
/* * Substantial parts of this file were published under MIT license by other * authors. Find the original license notice below. */ /* MIT License * * Copyright (c) 2024 sriramlab * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fi...
ALGO
0.995945
6.352368
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2024-12-10T20:02:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 1, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "b3e8d6805d7d...
5102162d-e790-4698-b6b0-5b9af6f9e7b4
Rovaine/Parallel_Computing
DFS_Serial.cpp
#include <iostream> #include <vector> #include <ctime> class Graph { public: Graph(int vertices); void addEdge(int v, int w); void dfs(int startVertex); private: int vertices; // Number of vertices std::vector<std::vector<int>> adj; // Adjacency list void dfsUtil(int vertex, std::vector<bool>&...
ALGO
0.99987
6.785996
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-11-19T02:16:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "928e48b6c0a0...
2bfe173b-49a0-4e95-8123-202a1c3bf867
the-hyp0cr1t3/Codeforces-submissions
codeforces/1005/A.cpp
/** 🍪 the_hyp0cr1t3 🍪 16.09.2020 22:55:42 **/ #ifdef W #include "k_II.h" #else #include <bits/stdc++.h> using namespace std; #define aylmao cin.tie(nullptr)->sync_with_stdio(false); #endif #define pb emplace_back #define sz(x) int(x.size()) #define all(x) x.begin(), x.end() auto chmax = [](auto& A, auto&& B) { retu...
ALGO
0.999941
3.47826
{ "github_metadata": { "branch": "master", "commit_count": 1581, "repo_created_at": "2020-12-22T13:01:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cc66bc6...
0faeb703-0d0c-40bc-8cf0-80d11b5c26d6
ding-lab/msisensor
chi.cpp
/* * * Calculate the Chi-Squared P-Value * The functions: approx_gamma, igf and chisqr were from: * http://www.codeproject.com/Articles/432194/How-to-Calculate-the-Chi-Squared-P-Value * under the permission: * http://creativecommons.org/licenses/publicdomain * * */ #include <iomanip> #include <iostream> #incl...
ALGO
0.996255
4.083383
{ "github_metadata": { "branch": "master", "commit_count": 109, "repo_created_at": "2013-09-26T19:18:35.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 131, "forks": 54, "issues": 10, "pull_requests": 1 }, "file_meta": { "content_id": "32fed...
db1ee54e-fe09-40f0-b9e7-d5abb6856574
vineethm1627/CPP
C++ Fundamentals/02 Getting Started/onlineJudge.cpp
/* Online judge input and output given n numbers print their squares. input file : 3 1 2 3 output file : 1 4 25 Note : to provide input from a file, in the terminal ./onlineJudgee < input_file.txt > output_file.txt you just ne...
ALGO
0.969994
4.856422
{ "github_metadata": { "branch": "master", "commit_count": 630, "repo_created_at": "2020-09-22T19:11:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f832662...
f6c3d311-bdbc-4c00-9621-cba43f3066f0
ishandutta2007/codeforces-o
onionpringles/normal/1208/B.cpp
#pragma warning(disable:4996) #include <stdio.h> #include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <string.h> #include <stdlib.h> #include <assert.h> #include <cmath> #include <map> #include <array> #include <set> #include <queue> #include <complex> #include <iterator> #include <ra...
ALGO
0.999841
3.390601
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:45: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": "5e7a857e44f5...
c1e4bfa5-2d3c-4ba1-be88-0ee964aaefe9
madhavpcm/CompetitiveProgramming
CPP/Codeforces/DSA/E_OpenStreetMap.cpp
#include <iostream> #include <cmath> #include <algorithm> #include <limits> #include <numeric> #include <vector> #include <stdint.h> #include <set> #include <map> #include <string> #include <time.h> using namespace std; #define MOD 1000000007LL #define ll long long #define ull unsigned long long #define ld long doubl...
ALGO
0.999794
3.344822
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2020-08-02T09:19:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "88ee8fa7b...
4c6b5301-a084-472b-ad40-e89e35d3d36d
S4ltF1sh/CODE-PTIT-CPP
CPP0132.cpp
// ƯỚC SỐ NGUYÊN TỐ LỚN NHẤT #include <iostream> using namespace std; void Run() { long long n, Res = 0; cin >> n; if (n < 2) return; if (n % 2 == 0) { Res = 2; while (n % 2 == 0) { n /= 2; } } for (long long i = 3; i * i <= n; i += 2) ...
ALGO
0.99994
4.749502
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-12-27T07:04: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": "4f899af26785...
2167c50b-25f4-482c-88fa-a094c3fc975c
Justinarghyyy/NYU-Tandon-Bridge-2023
Week8/q3.cpp
void reverseArray(int arr[], int arrSize){ int temp , index_left , index_right ; index_left = 0 ; index_right = arrSize-1 ; while (index_left < index_right ) { temp = arr[index_left] ; arr[index_left] = arr[index_right] ; arr[index_right] = temp ; index_left ++ ; ...
ALGO
0.999448
4.939184
{ "github_metadata": { "branch": "main", "commit_count": 53, "repo_created_at": "2023-02-01T19:12:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f238d937151...
3458ad43-3c79-47e7-9a9b-255c7b4ed702
FlexodMR/Simpsons
game/libs/radmath/radmath/spline.cpp
/*=========================================================================== File: spline.cpp Description: Spline evaluators Owner: <NAME> Creation: Mar 18, 2002. Revisions: May 06, 2002 Added the SplineCurve Class for multi-segment curves ...
ALGO
0.999322
6.595807
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-10-01T21:14:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 10, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b2aeb4b0d5b...
a6bd1447-3341-42e2-b8a6-ed906043bfcc
v1otusc/algo_sum
[10] 数据结构/栈和队列/leetcode-20-valid-parentheses.cpp
/* * @Description: * 给定一个只由左右原括号、花括号和方括号组成的字符串,求这个字符串是否合法。 合法的定义是每一个类型的左括号都有一个右括号一一对应,且括号内的字符串也满足此要求 * * 左括号必须用相同类型的右括号闭合。 * 左括号必须以正确的顺序闭合。 * * @输入示例: * * {[]}() * ([)] * * @输出实例: * * true * false * * @输入输出说明: * * 输入是一个字符串,输出是一个布尔值,表示字符串是否合法。 * * @限制条件: * * NULL * * @题目思路: * 括号匹配是典型的使用栈来解决的...
ALGO
0.991358
6.0599
{ "github_metadata": { "branch": "main", "commit_count": 129, "repo_created_at": "2020-11-27T08:53:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4566f61d59...
4f41ba76-47d1-42c0-80c8-374d4a371a45
rusucosmin/cplusplus
Renovare/main.cpp
#include <fstream> #include <iostream> #include <vector> #include <bitset> #include <string.h> #include <algorithm> #include <iomanip> #include <math.h> #include <time.h> #include <stdlib.h> #include <set> #include <map> #include <string> #include <queue> #include <deque> using namespace std; const char infile[] = "r...
ALGO
0.999882
4.088052
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2014-02-06T08:06:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3161d3a08...
27a46d89-ba74-44c4-8264-e24bc00e13cc
LonelyGode/DataStructure
Pintia/Data Structure Exercise 1/7-7-UnivariatePolynomial.cpp
#include <bits/stdc++.h> using namespace std; typedef struct LNode { int coefficient; int exponent; struct LNode *next; } LNode, *LinkList; bool flag = true; void InitList(LinkList &L) { L = new LNode; L->next = NULL; } void CreateList(LinkList &L, int l) { LNode *p, *s, *r; r = L; f...
ALGO
0.999705
3.907031
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2019-04-08T02:19: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": "b5d9e95f6...
417fa3b6-bf88-44d9-bb88-eb972e22bd40
alibaba/GraphScope
analytical_engine/apps/flash/matching/mm-opt.h
/** Copyright 2020 Alibaba Group Holding Limited. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
ALGO
0.991416
5.49747
{ "github_metadata": { "branch": "main", "commit_count": 2271, "repo_created_at": "2020-10-28T03:19:33.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3461, "forks": 458, "issues": 418, "pull_requests": 28 }, "file_meta": { "content_id": "51...
0bcf903b-9c48-4be5-b1a4-d376c58f27e0
MSP07/LeetCode-Solutions-CPLUSPLUS
MergeNodesInBetweenZeroes.cpp
/*approach simple iteration since first node is 0 we keep dummy pointer/node at second node and start we keep another pointer/node for summing up values then we iterate till end till we reach another node with 0 we sum the values and when we reach the node with 0 we add the sum to dummy node and continue the...
ALGO
0.999988
4.999152
{ "github_metadata": { "branch": "main", "commit_count": 671, "repo_created_at": "2024-05-10T19:10: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": "aece771d80...
9c766da3-f405-49a9-a58b-9384fa180bda
mohsendb7008/Online-Judge-Solutions
Codeforces/UnusualMatrix.cpp
#include <bits/stdc++.h> using namespace std; int n, a[1003][1003]; inline bool equal(int i, int j){ for(int k = 0; k < n; k++) if(a[i][k] != a[j][k]) return false; return true; } inline bool equal_to_not(int i, int j){ for(int k = 0; k < n; k++) if(1 - a[i][k] != a[j][k]) ...
ALGO
0.999915
4.225425
{ "github_metadata": { "branch": "master", "commit_count": 50, "repo_created_at": "2020-10-07T18:13:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9d4a6527e...
a55af65b-8303-4c3c-85fc-eb9b930a9acb
Armenuhi-Qocharyan/ITC-8
Homework/Mary_Antonyan/C++/06_03_2017/Complex.cpp
#include <iostream> #include <cmath> void showComplex(const double& m_re, const double& m_im) { if (0 != m_re) { if (0 < m_im) { std::cout << m_re << " + i*" << m_im << std::endl; } else if ( 0 > m_im) { std::cout << m_re << " - i*" << fabs(m_im) << std::endl; } else...
ALGO
0.999723
4.454318
{ "github_metadata": { "branch": "master", "commit_count": 968, "repo_created_at": "2017-05-20T18:28:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "73b73fbd...
ea8cca81-89af-491e-a0a0-41d6ee77f36f
DoozyX/EIN-SOF
EIN-SOF/DOMASNO/DOMASNO STL/domasno_cas_5/domasno cas 5/zad2.cpp
#include <iostream> #include<string> using std::string; using std::cout; using std::endl; using std::cin; #include <list> // list class-template definicija using std::list; #include <algorithm> // se vklucuva bidejki se koristi algoritmot copy // prototip za function template printList template...
TOOL
0.969211
4.19664
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2017-07-25T17:07: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": "b7ab067c54...