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
e981bae9-c5b1-4bb0-b33e-21efd1fa960f
DaAlG/code_studying
jeehyun/개별문제/SW Expert Academy/2117_홈 방범 서비스.cpp
#include <iostream> using namespace std; int n, m; int map[20][20]; bool isWall(int x, int y) { return x < 0 || x >= n || y < 0 || y >= n; } int secure(int x, int y, int k) { int cost = k * k + (k - 1) * (k - 1); int cnt = 0; // 서비스 제공 가능한 집을 찾는다 int d[] = { -1, 1 }; for (int i = 0; i < k; i++) { for (int ...
ALGO
0.999797
4.235857
{ "github_metadata": { "branch": "master", "commit_count": 1042, "repo_created_at": "2020-09-13T08:06:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6a0b379e...
5cf1b3c6-f71e-4498-8b58-4bc3b81b61b0
Joens-codes/beakjoon_ps
beakjoon_C++/DFS&BFS/beakjoon_18352(특정거리의 도시 찾기).cpp
#include <iostream> #include <queue> using namespace std; // 그래프, 방문 여부, 거리 저장 static vector<vector<int>> A; static vector<bool> visited; static vector<int> ans; // 입력 변수 static int N, M, K, X; void BFS(int node); int main() { cin.tie(nullptr)->ios::sync_with_stdio(false); cin >> N >> M >> K >> X; // 배...
ALGO
0.999987
5.19904
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2024-10-05T08:13:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f48d43393cc4...
4483a21a-790e-44d8-b3bb-c39268ef0a53
HiImKing1509/IT001_Introduce_Programing
04. Matrix C++/Bai033/Bai033.cpp
#include <iostream> #include <iomanip> #include <ctime> using namespace std; void Nhap(int[][100], int&, int&); void Xuat(int[][100], int, int); int TongDong(int[][100], int, int, int); int main() { int b[100][100]; int k, l, g; Nhap(b, k, l); cout << "Ma tran ban dau la: " << endl; Xuat(b, k, l); cout << "Nha...
ALGO
0.997249
3.933041
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2021-10-07T05:41: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": "0f66d1907b3d...
72b6fe33-edc7-4499-a75e-e08b21c8951e
BANGBANGROX/DS-ALGO-solutions
Largest_rectangle_of_1_swapping _columns_allowed.cpp
// { Driver Code Starts #include<bits/stdc++.h> using namespace std; // } Driver Code Ends //User function template for C++ class Solution { public: // Returns area of the largest rectangle of 1's int maxArea(vector<bool> mat[], int r, int c) { // code here vector<vector<int>> hist(r + 1, vect...
ALGO
0.999663
6.27073
{ "github_metadata": { "branch": "main", "commit_count": 90, "repo_created_at": "2021-10-04T18:11:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5486ffbc5b5...
f701da2d-d490-4ef8-8c67-6e3d2d96ba1c
nvtaveras/Codeforces-Solutions
Codeforces Round #234 (Div. 2)/E.cpp
#include <iostream> #include <string> #include <vector> #include <cstdlib> #include <map> #include <set> #include <algorithm> #include <cstring> #include <queue> #include <stack> #include <sstream> #include <cstdio> #include <ctime> #include <cctype> using namespace std; #define mp make_pair typedef long long llong; t...
ALGO
0.999968
4.334244
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-06-08T01:18:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "49496dbe2d...
5cd5178b-e9b4-417d-bb4d-112876372bfb
abdelrahman-0/adaptive-aggregations
micro-benchmarks/shuffle/heterogeneous/bench.cpp
#include "definitions.h" int main(int argc, char* argv[]) { gflags::ParseCommandLineFlags(&argc, &argv, true); /* --------------------------------------- */ adapt::Configuration config{FLAGS_config}; sys::Node node{FLAGS_nthreads + FLAGS_qthreads}; u16 node_id = node.get_id(); /* ------...
ALGO
0.977444
5.757075
{ "github_metadata": { "branch": "master", "commit_count": 472, "repo_created_at": "2024-07-22T23:34: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": "a50e59ca...
2a0cd2d6-4356-40c4-9b2a-31e2761b8508
phrock/acm
poj/2993/1.cpp
#include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <bitset> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstr...
ALGO
0.998771
3.884343
{ "github_metadata": { "branch": "master", "commit_count": 36, "repo_created_at": "2011-05-15T15:22:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bb68f6a73...
c5c874ba-c57d-4f9b-9346-805abffc6af4
ASSERT-KTH/Supersonic
predictions/submissions-aizu-cot-gpt4/Codenet/p02349/682047210/response_9.cpp
#include <cstdio> #include <vector> using namespace std; typedef long long ll; template <typename Monoid> struct LazySegmentTree { private: int N; vector<Monoid> node, lazy; public: LazySegmentTree(int sz = 0) { init(sz); } void init(int sz) { N = 1; while (N < sz) N <<= 1; node.reserve(2 *...
ALGO
0.999713
5.417658
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-02-03T10:33:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f0b230d61aef1...
b4b560c9-31bb-49ce-8001-d9aafc7b6a01
kholboevfozilbek/research
PROJECT2/CODE/AVL.h
#pragma once #include <iostream> #include <string> #include "BST.h" using namespace std; class AVL_Tree : public BinarySearchTree { public: AVL_Tree() = default; ~AVL_Tree() { /*cout << "AVL tree has been destroyed" << endl;*/ } int getBalanceFactor(node* root); int height(node* root); node...
ALGO
0.983326
4.74513
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-01-26T11:33: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": "91a8501518b1...
af63d22b-4b47-4e87-a73e-1a20241ab4c4
jenniferaubinais/ArduinoConvertor
Program/Convertor.ino
// <NAME> #include <Adafruit_GFX.h> #include <Adafruit_TFTLCD.h> #include <TouchScreen.h> #if defined(__SAM3X8E__) #undef __FlashStringHelper::F(string_literal) #define F(string_literal) string_literal #endif #define YP A3 // must be an analog pin, use "An" notation! #define XM A2 // must be an analog pin,...
TOOL
0.932835
5.050145
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2019-03-18T01:55:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1e4801d342...
9754cffd-3ad0-474d-8a79-a1d60d6a33cb
DoniOctopus/DDA
dda/Source.cpp
// Algoritma DDA #include <GL\freeglut.h> #include <GL\glut.h> #include <iostream> using namespace std; //identifier fungsi void init(); void display(void); void dda(void); // posisi window di layar int window_x; int window_y; // ukuran window int window_width = 480; int window_height = 480; // judul window ch...
ALGO
0.999689
5.741686
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-10-31T06:29: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": "b7e9acf0d7...
a8c14247-b1eb-4dcd-a6ed-d8eb00ce5f85
alecjacobson/gptoolbox
mex/segment_segment_intersection.cpp
#include "segment_list.h" #include <Eigen/Core> #include <iostream> #include <mex.h> #include <igl/C_STR.h> #include <igl/matlab/mexErrMsgTxt.h> #undef assert #define assert( isOK ) ( (isOK) ? (void)0 : (void) ::mexErrMsgTxt(C_STR(__FILE__<<":"<<__LINE__<<": failed assertion `"<<#isOK<<"'"<<std::endl) ) ) #include <ig...
ALGO
0.999241
5.362625
{ "github_metadata": { "branch": "master", "commit_count": 1649, "repo_created_at": "2014-02-21T13:46:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 655, "forks": 175, "issues": 60, "pull_requests": 14 }, "file_meta": { "content_id": "e...
23efe4cd-0e52-40a9-a2a9-144009cc3251
dmitrii-khizbullin/structured_bindings
structured_bindings.cpp
// Tutorial on how to use structured bindings of C++17 to // write more functional style code. // // <NAME>, 2020 // // This example shows how to create a lambda, instantly call it, // return multiple values from it and unpack them as const-s // in the caller scope, thus protecting from occasional modification. #incl...
TOOL
0.961608
6.565262
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2020-09-24T01:20:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 24, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b4f555b16...
36baa763-0ae9-45ad-a487-f013198169f2
Bholu22/Dynamic-Programming
MinimumCostOperations.cpp
/*Minimum cost to reach a point N from 0 with two different operations allowed Given integers N, P and Q where N denotes the destination position. The task is to move from position 0 to position N with minimum cost possible and print the calculated cost. All valid movements are: From position X you can go to position ...
ALGO
0.999713
3.979408
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2019-06-06T02:02:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1bfcca9e2...
9e9dc2b5-4924-4202-8779-78778b981a02
ginkgo/AMP-LockFreeSkipList
test/sorting/Reference/ReferenceQuicksort.h
/* * ReferenceQuicksort.h * * Created on: 21.04.2011 * Author(s): <NAME> * License: Boost Software License 1.0 (BSL1.0) */ #ifndef REFERENCEQUICKSORT_H_ #define REFERENCEQUICKSORT_H_ #include <functional> #include <algorithm> /* * */ namespace pheet { template <class Pheet> class ReferenceQuicksort {...
ALGO
0.99709
6.076477
{ "github_metadata": { "branch": "master", "commit_count": 38, "repo_created_at": "2014-06-05T13:32:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7754c8528...
0e4477b1-99b7-49a2-8ae9-3b0c6ec81ba5
arangodb/arangodb
3rdParty/boost/1.78.0/boost/compute/algorithm/iota.hpp
//---------------------------------------------------------------------------// // Copyright (c) 2013 <NAME> <<EMAIL>> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.github.com/compute ...
TOOL
0.928387
7.372732
{ "github_metadata": { "branch": "devel", "commit_count": 51986, "repo_created_at": "2011-10-26T06:42:00.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 13878, "forks": 857, "issues": 743, "pull_requests": 38 }, "file_meta": { "content_id": ...
f5ac93ae-9fd1-470f-a869-5abf1f3ebb8d
Ajinkya988/LBCodes
Program239.cpp
#include<iostream> using namespace std ; typedef unsigned int UINT ; bool CheckBit(UINT iNo ) { UINT iMask = 0X00102040 ; //Good UINT iResult = 0 ; iResult = iNo & iMask ; if(iResult == iMask ) { return true; } else { return false ; } } int main() { UINT...
ALGO
0.980171
3.744169
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-06-11T07:46:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b0f13d78daaf...
f8576dd9-ccb6-44d5-8b04-400ebefa5a32
Toavina00/Numerical-methods
Gradient Solver/src/Solver.cpp
#include "Solver.hpp" template <typename T> Solver<T>::Solver() { resolved = false; } template <typename T> Solver<T>::Solver(int dim, T** M, T* b) { resolved = false; fill(dim, M, b); } template <typename T> Solver<T>::Solver(string s) { resolved = false; fill(s); } template <typename T> Solve...
ALGO
0.94453
3.775795
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-06-17T08:30:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8b6fc2a7b76f...
e1fdc7f5-62f3-4f30-bc77-8779270c3543
Aarth-Tandel/DataStructures
Hacker Rank/BusStop.cpp
#include <bits/stdc++.h> #include <string> #include <iterator> using namespace std; bool isAtBusStop(int postion, int x[], n){ for(int i=0; i<n; i++){ if(positon == x[i]) return true; } return false; } double walkTime(double postion, double speed, double reachtime){ } double busTime...
ALGO
0.999874
3.648225
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-07-30T10: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": "382b7d27de...
1fe51c5f-bb8c-458f-bccd-f19ca87209c9
computingdolas/Elliptic-Solver-1-D-using-Stencil
Solver.cpp
#include <iostream> #include "Vector.h" #include "MatrixLike.h" #include "Matrix.h" #include "Stencil.h" #include <chrono> #define PI 3.141592653589793 template<typename T, class MatrixImpl> void solve (const MatrixLike< T, MatrixImpl >&A, const Vector<T>& b, Vector<T>& u) { const size_t numGridPoints = u.size( ); ...
ALGO
0.997423
5.021376
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2015-11-09T10:48: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": "4bf32a37e5...
4d42cd2a-2863-4972-b40d-b89d7e9df704
Chinesezjc/Solved-Problems
CodeForces/CF996D.cpp
//This Code was made by Chinese_zjc_. #include <iostream> #include <fstream> #include <iomanip> #include <algorithm> #include <vector> #include <bitset> #include <cmath> #include <queue> #include <stack> #include <list> #include <string> #include <cstring> #include <cstdio> #include <cstdlib> #include <cctype> #include...
ALGO
0.999848
3.415411
{ "github_metadata": { "branch": "master", "commit_count": 99, "repo_created_at": "2020-12-29T10:37: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": "052f8a09f...
a8af1422-f5ac-421d-97bb-2751d10fbadd
Kureii/RainTextCore
src/utils/rain_text_core_utils.cpp
//================================= Includes =================================== #include "utils/rain_text_core_utils.h" #include <Argon2.h> #include <cryptopp/sha3.h> #include <random> //================================= Namespace ================================== namespace rain_text_core::rain_text_core_utils { /...
TOOL
0.948905
6.472228
{ "github_metadata": { "branch": "master", "commit_count": 46, "repo_created_at": "2023-05-11T18:21: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": "3794e5c01...
e23f2785-f5c7-4067-a2b6-4660f7f2da5b
aslezar/CompetitiveProgramming
CodeForces/988/G2.cpp
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL_RUN #include "debug.cpp" #else #define debug(...) #define debugArr(...) #endif #define int long long #define all(a) (a).begin(), (a).end() #define rall(a) (a).rbegin(), (a).rend() #define sorta(a) sort(all(a)) #define sortd(a) sort(rall(a)) #define input(vec,...
ALGO
0.999983
5.017022
{ "github_metadata": { "branch": "main", "commit_count": 310, "repo_created_at": "2023-01-15T15:13: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": "f4cf8ccf96...
95a15616-511a-425b-b2f1-4b35a9c938c5
dengkeng/OpenHarmony-v5.0-Beta1
OpenHarmony/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/dns_param_cache.cpp
/* * Copyright (c) 2022 Huawei Device 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 applicable law ...
TOOL
0.919934
7.086925
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-08-25T09:17: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": "ac822f1d2016...
69d7d020-f110-40e1-b574-14ec1a34d84b
rajesh2k20/leetcodeQuestion
329-longest-increasing-path-in-a-matrix/329-longest-increasing-path-in-a-matrix.cpp
class Solution { public: int x[4]={0,1,0,-1}; int y[4]={1,0,-1,0}; bool isvalid(int r, int c, int n, int m){ if(r>=0 and c>=0 and r<n and c<m){ return true; }else{ return false; } } int helper(vector<vector<int>> & arr, vector<vector<...
ALGO
0.999994
5.934474
{ "github_metadata": { "branch": "main", "commit_count": 661, "repo_created_at": "2022-04-21T04:08: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": "dc0588d310...
46f202db-34c8-4c7d-87b2-ef912ed6e568
YuxiangYao/GeneFrustration
cpp_Source/c_LandscapeReshape.cpp
// Provided code adheres to C++ specifications rather than R! #include <stdio.h> #include <stdlib.h>// for itoa #include <iostream> #include <cstdio> #include <vector> #include <set> #include <iterator> #include <algorithm> #include <random> #include <cmath> #include <Rcpp.h>// The header offers a seamless integration ...
ALGO
0.999911
5.992544
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-05-14T13:31: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": "d49253aa2004...
b2d47589-cd11-439f-8138-743f95c61d97
DineshSirvicodes/Binary_Search-CPP_Solutions-
Find-Peak-Element.cpp
// Brute solution - TC O(n) int findPeakElement(vector<int> &arr) { int n = arr.size(); for(int i = 0; i<n ; i++){ if (( i == 0 || arr[i-1]<arr[i]) && ( i == n-1 || arr[i]>arr[i+1])) { return i; } } return -1; } // Optimal solution Binary search TC ...
ALGO
0.99999
5.68408
{ "github_metadata": { "branch": "main", "commit_count": 35, "repo_created_at": "2024-02-08T15:12:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f57d10fdfb9...
4087fcf0-bfe7-4aa0-9941-2b7350e5da75
algoguy1/DSA-problems
linked list/deletelast.cpp
#include<iostream> using namespace std; struct node { int data; node* next; node(int x) { data = x; next = nullptr; } }; void displayLinkedList(node* head) { node* curr = head; while (curr != nullptr) { cout << curr->data << " "; curr = curr->next; } co...
ALGO
0.997701
5.234583
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2023-04-04T11:46: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": "7cc612b599d...
3f3a49a8-30b8-4a01-a2bd-9da23b7da6a7
jwellton/StartingOutWithCpp
Investment_Amount.cpp
// Calculate Investment Amount // // Description: The program calculates the interest after a period of investment #include <iostream> #include <iomanip> using namespace std; // function prototype double future_investment_value( double amount, int months, double rate); double initial_investment_amount(); double annu...
ALGO
0.979096
4.012142
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2016-05-24T05:53:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9e1537142...
342cece0-e3b4-4b0c-b735-4fcac9a57d31
allanur/Olymp-Materials
ACM Timus Online Judge Solutions/1106. Two Teams.cpp
# include <iostream> # include <vector> # include <algorithm> using namespace std; int n,x; bool t1[109],t2[109]; int t[109],z; vector < vector < int > > v; int main () { cin >> n; v.resize(n+1); for (int i = 1; i <= n; i++) { while (cin >> x) { if (x==0) break; v[i].push_back(x); } } for (...
ALGO
0.999939
3.483588
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2018-03-29T12:31: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": "b3bec4399f...
ebcb9a59-7c7d-4791-8125-c2d1100a9dbc
DeepakGarg882001/Data-Structure-Algorithm
C++/Supreme/Week3/class2/rotateArrayInLeftBy1Element.cpp
// Leetcode Ques : 189 // Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. // Example 1: // Input: nums = [1,2,3,4,5,6,7], k = 3 // Output: [5,6,7,1,2,3,4] // Explanation: // rotate 1 steps to the right: [7,1,2,3,4,5,6] // rotate 2 steps to the right: [6,7,1,2,3,4,5]...
ALGO
0.999883
5.858992
{ "github_metadata": { "branch": "main", "commit_count": 32, "repo_created_at": "2021-11-26T17:30:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0ab5aebb954...
f8dfde15-df9d-4a67-8b5f-eb3a49fce9d5
BSF0124/BOJ
C++17/백준/Gold/21944. 문제 추천 시스템 Version 2/문제 추천 시스템 Version 2.cc
#include <bits/stdc++.h> using namespace std; string comm; int n,m,p,l,x,g; pair<int,int> level[100002]; set<int> prob[102]; set<int> prob2[102][102]; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> n; while(n--) { cin >> p >> l >> g; level[p] = {l,g}; prob[l]...
ALGO
0.999874
4.796448
{ "github_metadata": { "branch": "main", "commit_count": 130, "repo_created_at": "2025-05-15T03:37:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0fd4096518...
5c577fd5-97f6-4f26-b234-11c68296770b
Raynxxx/Contest
2014 多校训练/2014 多校 7/HDU 4938 Seeing People.cpp
/* ** HDU 4938 Seeing People ** Created by Rayn @@ 2014/08/15 */ #include <cstdio> #include <cstring> #include <cmath> #include <vector> #include <map> #include <set> #include <queue> #include <algorithm> using namespace std; typedef long long LL; typedef pair<LL, int> PLLI; const int MAXN = 100000 + 10; struct Person...
ALGO
0.999689
3.596823
{ "github_metadata": { "branch": "master", "commit_count": 75, "repo_created_at": "2014-10-30T04:01:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6097bafe0...
d2c95758-aedb-4016-bf2a-60e6fa343cd7
shihabsararrafid/cp-practice
Problem Solving/Upsolving/Corners.cpp
#include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; #define LetsGoCin() \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define li long #define ll long long #define ull unsigned long long #define baperBa...
ALGO
0.999957
4.0323
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-09-08T00:32: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": "48ca24066f89...
8fc04769-5295-45dc-ba67-3da17e378efd
saketh-are/algo-lib
graphs/graph.cpp
template<typename E> struct graph { int V, EC; vvi nbrs; vector<vector<reference_wrapper<E>>> edges; vector<E> edge_list; graph(int _V = 0, int _EC = 0) : V(_V), EC(_EC) {} graph(int _V, const vector<E>& __edge_list) : V(_V), EC(sz(__edge_list)), edge_list(__edge_list) { nbrs.resize(V),...
ALGO
0.998421
5.692888
{ "github_metadata": { "branch": "master", "commit_count": 355, "repo_created_at": "2015-06-17T02:49:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 171, "forks": 62, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "93197...
13d91519-9be1-41e0-a0a7-72b79d640689
akgmage/data-structures-and-algorithms
Graphs/dijkstras.cpp
/*Name : <NAME> Github username : Abhinavcode13 Repository name : data-structures-and-algorithms Problem : Implement Dijkstra's algorithm in C++ Issue Number : #947 Problem statement : Explanation of the below C++ code : In this implementation, we have a dijkstra function that takes a graph represented as an adjac...
ALGO
0.999983
6.288704
{ "github_metadata": { "branch": "main", "commit_count": 3839, "repo_created_at": "2021-02-21T17:38:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 150, "forks": 216, "issues": 17, "pull_requests": 0 }, "file_meta": { "content_id": "358a...
06d5b95f-6d63-4a25-8182-20115100a369
Matias-Lara/AlgocoTarea2_3-INF221
Algoritmos/dp.cpp
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <climits> using namespace std; #include "../CostosVariables/costos.h" using Matriz = vector<vector<int>>; // Función para calcular la distancia de Levenshtein con costos variables usando programación dinámica int edit_distance_DP(co...
ALGO
0.999858
4.838927
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2024-11-03T23:50: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": "119b5dd805b3...
a8d79478-3cb4-4f24-9861-2502f8452f50
arthuryangcs/ACM
Code/AC_HDOJ_arthuryang/4035.cpp
////////////////////System Comment//////////////////// ////Welcome to Hangzhou Dianzi University Online Judge ////http://acm.hdu.edu.cn ////////////////////////////////////////////////////// ////Username: arthuryang ////Nickname: ArthurYang ////Run ID: ////Submit time: 2014-08-29 18:16:25 ////Compiler: Visual C++ ////...
ALGO
0.999732
3.750916
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2014-11-25T13:20:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c9c2629c5...
a5173923-ee9c-4db0-8705-9d6b942d2520
JerryCoder745/HeapSortVisualizer
treevisualizer.cpp
#include "treevisualizer.h" #include <QResizeEvent> #include <cmath> #include <QLinearGradient> #include <QRadialGradient> TreeVisualizer::TreeVisualizer(QWidget *parent) : QGraphicsView(parent) { // 创建场景 scene = new QGraphicsScene(this); setScene(scene); // 设置视图属性 setRenderHint(QPainter::A...
ALGO
0.990265
5.648736
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-04-28T02:22:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "215d66d7d1ec...
226719ad-7228-4846-9fd2-abd2cd52654b
0xHansLee/dsstudy
chapter10/MergeSort.cpp
#include <iostream> void MergeTwoArea(int arr[], int left, int mid, int right) { int fIdx = left; int rIdx = mid+1; int i; int * sortArr = new int[right+1](); int sIdx = left; while(fIdx <= mid && rIdx <= right) { if(arr[fIdx] <= arr[rIdx]) sortArr[sIdx] = arr[fIdx++];...
ALGO
0.999978
5.476089
{ "github_metadata": { "branch": "master", "commit_count": 73, "repo_created_at": "2019-07-23T02:08: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": "8b58d0b90...
b6accbc3-67b1-4554-98cf-47f51ee299da
QuietkidAniket/Algorithms
arraydemo copy.cpp
#include <iostream> #include <array> // making the data type and the size of the array templatized for the function template<typename T ,size_t N> void print_arr(const std::array<T, N>& arr){ for(const auto x : arr){ std::cout << x << "\n"; } } template<typename T, size_t N> void print_arr_rev(const ...
TOOL
0.960451
5.224578
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2024-03-18T10:29:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9e645f2cb30...
55f30cbf-9569-40c3-9010-d4b61f51603a
ak852456/wa-bplustree
main.cpp
#include <iostream> #include <fstream> #include <ctype.h> #include "wa-bpt.h" #include "pcm.h" #define PADDING 40 // keyNums + numSlot + parent + childBlock[order] + boundary #define DEL_RATIO 100000 ...
ALGO
0.998507
3.175311
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2020-09-21T09:24:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a87d35a774...
5395c7c0-e6b3-4cda-a206-f8462ad00ecc
arunnaidu123/cheetah_lite
cheetah/modules/sps_clustering/Fof.h
/* * The MIT License (MIT) * * Copyright (c) 2016 The SKA organisation * * 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 *...
ALGO
0.997586
5.024447
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2024-08-26T14:19: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": "3e146f1dfa2...
5b1d71eb-69b6-418a-9b4b-2ff5f218a47e
khushisinha20/Data-Structures-and-Algorithms
Linked List/delete_the_middle_node_of_linked_list.cpp
//leetcode.com/problems/delete-the-middle-node-of-a-linked-list/ #include <bits/stdc++.h> using namespace std; struct ListNode { int val; ListNode *next; ListNode() : val(0), next(nullptr) {} ListNode(int x) : val(x), next(nullptr) {} ListNode(int x, ListNode *next) : val(x), next(next) {} }; cla...
ALGO
0.999768
6.068464
{ "github_metadata": { "branch": "main", "commit_count": 1108, "repo_created_at": "2022-01-02T07:13: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": "e3ea4967e...
93114f64-82a5-4bd8-bd1c-86dd0fa34132
eLecCap1taL/CPP
P10441/P10441.cpp
// Problem: P10441 [JOISC 2024] 乒乓球 (Day4) // Contest: Luogu // URL: https://www.luogu.com.cn/problem/P10441 // Memory Limit: 1024 MB // Time Limit: 2000 ms // // Powered by CP Editor (https://cpeditor.org) //%^~ // #pragma GCC optimize(3) // #pragma GCC optimize("Ofast") // #include <bits/stdc++.h> #include <cstdio>...
ALGO
0.999985
3.841676
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2025-05-25T11:29: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": "10a92b67752...
8cd6950f-774a-4c84-85b7-08a02bd91506
MeshInspector/MeshLib
source/MRMesh/MRCone3.h
#pragma once #include "MRLine3.h" namespace MR { // Base class for cone parameterization template <typename T> class Cone3 { public: Cone3() {} // inAxis -- apex position and main axis direction. For any cone point dot( point , direction ) >=0 // inAngle -- cone angle, main axis vs side // inHe...
TOOL
0.948681
5.869904
{ "github_metadata": { "branch": "master", "commit_count": 5624, "repo_created_at": "2021-12-30T12:20:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 647, "forks": 79, "issues": 36, "pull_requests": 14 }, "file_meta": { "content_id": "411...
457a4108-5de8-4264-9e2a-b1f6d01732db
wallevex/dsa
src/cache/lru_cache.cpp
// lru_cache.cpp // Created by huhaolong on 2025/4/9 16:59. #include "dsa/cache/lru_cache.hpp" void LRUCache::moveToTimelineEnd(int key) { ListNode* pos = cache[key]->pos; if (pos == tail) return; pos->prev->next = pos->next; pos->next->prev = pos->prev; tail->next = pos; pos->prev = tail; ...
ALGO
0.967358
6.535681
{ "github_metadata": { "branch": "main", "commit_count": 35, "repo_created_at": "2024-07-13T14:37:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a4b385f455a...
d088fbbf-dfd7-4fff-9fdc-a0eedd3d6772
11Zero/Monitor
代码1-Bridge_485/BCG/BCGPGridFilter.cpp
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of the BCGControlBar Library // Copyright (C) 1998-2014 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms and condi...
TOOL
0.956805
6.963562
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2016-11-23T13:21:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "358b7aac1d...
8fa870c9-7388-408e-91ea-46b0ffec07c4
ayush-tiwari57/competitive-programming
Atcoder/abc190/c.cpp
/* code of <NAME> codeforces- servermonk codechef- ayush572000 */ #include <bits/stdc++.h> #define ll long long #define endl "\n" //STL #define pb push_back #define lb lower_bound #define ub upper_bound #define mp make_pair #define all(v) v.begin(), v.end() //loops #define forn(i,a,b) for(int i=a; i<b; i++)...
ALGO
0.999974
4.157616
{ "github_metadata": { "branch": "master", "commit_count": 305, "repo_created_at": "2020-03-06T16:46:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2807bb0e...
14d7f51d-8358-4140-b1f2-a937502c8030
Xamilio/X-and-0
X and 0/X and 0.cpp
#include <iostream> using namespace std; void field(char mas[3][3]) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { cout << mas[i][j]; if (j < 2) { cout << " | "; } } cout << endl; if (i < 2) { cout << "----------"; cout << endl; } } } int examinationX(char mas[3][3...
ALGO
0.99804
4.362136
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2024-10-30T18:22: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": "bfb9386f27...
13ddf002-792c-4386-81cc-4457c841a9a0
akashghadge/CPP
DSA Questions/Strings/Interm/8 substring of 0 and 1.cpp
/* Given a binary string str of length N, the task is to find the maximum count of substrings str can be divided into such that all the substrings are balanced i.e. they have equal number of 0s and 1s. If it is not possible to split str satisfying the conditions then print -1. Example: Input: str = “0100110101” Ou...
ALGO
0.999984
4.217991
{ "github_metadata": { "branch": "master", "commit_count": 808, "repo_created_at": "2020-08-21T12:27: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": "b5fc6162...
346d8497-d08e-4709-af88-d8296a264be4
datahead8888/ExplicitDeformations
ImplicitMethods/Application.cpp
//Cloth simulation using implicit methods to implement springs for a grid of particles //Features: // *Implements springs between particles defined in an edge list using hooke's law with a damping component // *Has an earth gravity component to drag the cloth downwards // *Uses implicit methods, allowing for a higher s...
ALGO
0.994047
4.228523
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2015-06-26T21:55:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8817b8b7f...
ef7757e8-da40-4568-8395-4d4915270b35
yubinbai/pcuva-problems
UVa 10005 - Packing polygons/sol.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <stdio.h> #include <stdlib.h> #include <cmath> #include <string.h> using namespace std; typedef double coord_t; typedef double coord2_t; class Point { public: coord_t x, y; Point () { x = 0; y = 0; } ...
ALGO
0.99983
4.393619
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2013-05-08T15:36:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 50, "forks": 40, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "9ccd72d...
f3c68d8f-1db9-47a8-aebe-5549ce3515e3
yryrgogo/data-structure-algorithm
atcoder/ABC/2/abc126-c-re.cpp
// #include <bits/stdc++.h> #include <iostream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <numeric> #include <tuple> #include <map> #include <cassert> using namespace std; using vi = vector<int>; using vvi = vector<vector<int>>; using vvll = vector<vector<long long>>; using vll ...
ALGO
0.999243
3.741983
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2022-07-27T12:36: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": "3bc6e99f0ae7...
8bbe1abe-c3aa-41e9-813d-e5900cf5dfda
luzh0422/LeetCode
Solution807.cpp
// // Created by luzh on 2021/12/13. // #include "Solution807.h" int Solution807::maxIncreaseKeepingSkyline(vector<vector<int>> &grid) { int n = grid.size(); maxRow.resize(n, 0); maxColumn.resize(n, 0); for (int i = 0; i < n; i++) { int currRow = 0; int currColumn = 0; for (int...
ALGO
0.999987
6.568615
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2022-03-12T13:31: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": "c7d904b77e...
0daf58ea-b889-4c55-95a3-d2837faae42f
lorenzo-ferrari/cses
src/Graph Algorithms/1195-Flight Discount.cpp
#include <array> #include <queue> #include <vector> #include <iostream> using namespace std; #define int int64_t const int INF = 1e15; int32_t main() { int n, m; scanf("%ld %ld", &n, &m); vector <vector<array<int, 2>>> graph(n + 1); vector <vector<int>> dist(n + 1, vector <int> (2, INF)); vector <...
ALGO
0.999774
3.551363
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2021-12-22T21:25:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "d5b46065686...
9693e87e-07d6-468a-a99d-ecaadceb7ad6
metaphysis/Code
UVa Online Judge/volume003/395 Board Silly/program.cpp
// Board Silly // UVa ID: 395 // Verdict: Accepted // Submission Date: 2016-07-06 // UVa Run Time: 0.000s // // 版权所有(C)2016,邱秋。metaphysis # yeah dot net #include <bits/stdc++.h> using namespace std; char grid[8][8]; int steps[8][8][8], copies[8][8][8]; int offset[8][2] = {{0, -1}, {0, 1}, {-1, 0}, {1, 0}, {-1, -1}, ...
ALGO
0.999926
4.310148
{ "github_metadata": { "branch": "master", "commit_count": 1710, "repo_created_at": "2016-03-07T13:28:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 229, "forks": 50, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0dee...
4b4fbf3f-23cd-4b29-abe0-ac8ddab62c65
aleung27/Competitive-Programming
SPOJ-TOE2/solution.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define X real() #define Y imag() #define EPS 0.000000001 #define M_PI 3.14159265358979323846 #define CROSSPROD(a, b) (conj(a)*b).Y #define FASTIO ios::sync_with_stdio(false); template <class T> T gcd(T a, T b) { ...
ALGO
0.999949
3.880452
{ "github_metadata": { "branch": "master", "commit_count": 271, "repo_created_at": "2020-04-04T13:04: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": "d8282773...
23d26828-923f-4295-ad55-5638e5d4ceb7
idil21/Embedded_Projects
buzzer_controller/code.ino
int SOUND_DURATION = 500; int SILENCE_DURATION = 50; int MELODY[] = {1,2,3,4,4,4,4,3,3,3,2,2,2,1,4,4,4,4,3,3,3,2,2,1}; // another doorbell melody 1,2,3,4,4,4,4,3,3,3,2,2,2,1,4,4,4,4,3,3,3,2,2,1 int melodyLength = 0; int buzzerPin = 7; int buttonPin = 2; int buttonState = 0; int currentNote = 0; void setup() { pinMod...
ALGO
0.938537
5.230613
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-11-04T21:09: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": "64183a145e7c...
8842fd24-2f5c-4e70-b7eb-e0e0548a37c4
Andlon/crest
tests/experiments/experiment.hpp
#pragma once #include <crest/wave/solver.hpp> #include <crest/geometry/indexed_mesh.hpp> #include <crest/quadrature/simpsons.hpp> #include <crest/util/stat.hpp> #include <string> #include <cmath> #include <boost/optional.hpp> struct OfflineParameters { unsigned int oversampling; double mesh_resolution; ...
ALGO
0.969371
4.892488
{ "github_metadata": { "branch": "master", "commit_count": 216, "repo_created_at": "2016-09-16T09:49:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6aa44595...
4e64a615-915b-4f02-847e-d6cbeeaaf47b
randomize/random_array_dot
cpp/random_array_dot.cpp
#include <iostream> #include <iomanip> // #include <memory> // #include <algorithm> // #include <vector> // #include <list> // #include <unordered_map> #include <chrono> // for high_resolution_clock #include <eigen3/Eigen/Core> #include <eigen3/Eigen/Eigen> using namespace std; using namespace std::chrono; using ...
ALGO
0.977101
5.065866
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2018-11-03T21:02: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": "876c0778ed...
982ec1f6-ac4b-4198-826d-e944b9e2ef9d
abhikmr778/graph_implementations
articulationPoints_stronglyConnectedGraph.cpp
#include<iostream> #include<vector> #include<list> #define NIL -1 using namespace std; class Graph{ int V; list<int> *adj; // A recursive function that find articulation points using DFS traversal // u --> The vertex to be visited next // visited[] --> keeps tract of visited vertices // disc[]...
ALGO
0.999886
5.201686
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2021-08-15T13:35: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": "805aa89a6...
3c06b12a-7fbf-452c-bee3-deeac3123d4a
sohag-aust/Problem-Solving---UVA
PROBLEM SOLVING - UVA/P-10341 (NEWTON-RAPHSON PROBLEM).cpp
/// FINDING VALUE FROM EQUATION #include<bits/stdc++.h> using namespace std; const double EPS = 1e-7; int p,q,r,s,t,u; double f(double x) { //return ( (3*x) - cos(x) -1 ); return ( (p*exp(-x)) + (q*sin(x)) + (r*cos(x)) + (s*tan(x)) + (t*x*x) + u ); } double fd(double x) { //return ( (3) + sin(x) ); ...
ALGO
0.999758
3.648356
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2018-12-07T14:21: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": "0af65a78d...
f096b05b-7044-44d6-b030-936b1c536981
praesepe/study
leetcode/028-Implement-Strstr/lala_2.cpp
class Solution { private: vector<int> compute_failure_table(string needle) { vector<int> failure(needle.size(), 0); int j = 0; for (int i = 1; i< failure.size(); i++) { while (j > 0 && needle[i] != needle[j]) { j = failure[j - 1]; } if (needle[i] ...
ALGO
0.999959
5.536885
{ "github_metadata": { "branch": "master", "commit_count": 574, "repo_created_at": "2017-03-18T15:56: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": "34e89891...
9d6c6432-9cbc-40de-90fc-cb38d415580d
AjayShukla1212/CPP--Programs
Binary_Search_Recursive.cpp
#include <iostream> using namespace std; int bs(int a[],int start,int end,int x) { if(start>=end) { return -1; } int t; int mid = (start+end)/2; if(a[mid]>x) { t=bs(a,start,mid-1,x); } else if(a[mid]<x) { t=bs(a,mid+1,end,x); } else if(a[mid]==x) { return mid; } } int binary...
ALGO
0.999014
4.594183
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2020-06-08T08:46:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4bf20d24a...
67401999-af0a-434d-8ee1-1fe6420b3fed
yenthanh132/Codes
Topcoder/SRM 478/A.cpp
#include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <vector> #include <cstring> #include <string> #include <cmath> #include <ctime> #include <utility> #include <map> #include <set> #include <queue> #include <stack> #include <sstream> #define FOR(a,b,c) for (int a=b,_c=c;a<=_c;a++) #de...
ALGO
0.999956
3.396971
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-11-24T09:41:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8be7443b0e...
75652b2a-6f3b-423c-afcf-65c47fdd96cd
mynameischaos/leetcode
5/main.cpp
#include <iostream> using namespace std; class Solution { public: string longestPalindrome(string s) { //采用动态规划求解 //主要是自底向上求解,记录求解过程 int len = s.length(); int longest_begin_index = 0; int max_len = 1; //table[i][j]表示i到j是否为回文 bool table[1000][1000] = {false}...
ALGO
0.999979
4.095992
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2016-09-24T08:54:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d17b3acb7...
146c8ce2-4f8d-4a42-bc21-6754e04cd497
henriquerenno/TIN
globals.h
/* Copyright(c) 2021 This file is part of an implementation of the Delaunay triangulation written in C++ for standard C++ compilers. Please, feel free to redistribute and/or modify it, but without any warrant. The code was written as part of the Master's dissertation by <NAME> <<EMAIL>>, which is availa...
ALGO
0.999515
4.856564
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2021-07-17T00:14:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "068aec596383...
8a92857f-9d6e-446b-ac2d-feae057e21ba
LloydSSS/LeetCode
segment-tree-query.cpp
// http://www.lintcode.com/en/problem/segment-tree-query/ // 线段树查询 #include "lc.h" // Definition of SegmentTreeNode: class SegmentTreeNode { public: int start, end, max; SegmentTreeNode *left, *right; SegmentTreeNode(int start, int end, int max) { this->start = start, this->end = end; this...
ALGO
0.999596
5.977654
{ "github_metadata": { "branch": "master", "commit_count": 64, "repo_created_at": "2015-05-05T08:19:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aa74a0641...
e9d3302a-bc4f-4f20-b1d6-9031522e7ff9
yatharth811/Ladders
Project Euler/2.cpp
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef vector<ll> vi; typedef pair<ll, ll> pi; #define FAST ios::sync_with_stdio(0), cin.tie(0) #define rep(i,a,b) for(ll i=a;i<b;i++) #define per(i,a,b) for(ll i=a;i>b;i--) #define endl '\n' const ll MAX = INT_MAX; const ll MIN = INT_MIN; cons...
ALGO
0.999845
3.700342
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2022-11-27T06:57: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": "0dc7e35c87f...
577ebfa5-d197-43e1-bdb9-da4ce7f66d01
ishandutta2007/codeforces-t
tokusakurai/normal/1451/E2.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define rep2(i, x, n) for(int i = x; i <= n; i++) #define rep3(i, x, n) for(int i = x; i >= n; i--) #define each(e, v) for(auto &e: v) #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() #define rall(x)...
ALGO
0.999907
3.823022
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:27:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "960265ebf473...
fd4efb7d-0739-4f1a-9964-d9728af97ee5
ishandutta2007/codeforces-a
antony191/normal/1329/A.cpp
#include <bits/stdc++.h> #ifdef ONLINE_JUDGE #pragma GCC optimize("Ofast") #pragma GCC optimize("no-stack-protector") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("fast-math") #pragma GCC optimize("vpt") #endif using namespace std; typedef long long ll; typedef long double ld; const char el = '\n'; cons...
ALGO
0.999993
3.690148
{ "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": "dea9570c3178...
9ebd577c-6e15-494e-854d-385619f8a667
eliah-w/msgeq7effects
visualizer.ino
/* Created by: vanita5 <<EMAIL>> NeoPixel VU meter This is a port of the Adafruit Amplitie project. Based on code for the adjustable sensitivity version of amplitie from: https://learn.adafruit.com/led-ampli-tie/the-code Hardware requirements: - Trinket 5V 8MHz - Almost any NeoPixel product Software requir...
TOOL
0.934525
6.156242
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2017-01-08T21:33:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e170195e51...
0775864f-c911-4c2c-aa19-7471c768a9ef
ishandutta2007/codeforces-m
maripium/normal/1470/C.cpp
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N, K; cin >> N >> K; auto query = [&](int q) { cout << "? " << q+1 << '\n'; cout << flush; int ans; cin >> ans; return ans; }; int S = sqrt(N / 2); ...
ALGO
0.99982
3.395167
{ "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": "b171876a3747...
db8cb901-edb1-486f-b3b1-8b54c2934ba7
emilylin0426/OOP-ITSA
15.文字及字母出現次數.cpp
#include <iostream> using namespace std; int main(){ string line; while(getline(cin, line)){ int wordcnt=1; int alphcnt[26] = {0}; //int len = strlen(line)-1; for(int i=0; i<line.length(); i++){ if(line[i]>='A' && line[i]<='Z'){ alp...
ALGO
0.999234
3.125804
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-04-10T13:07: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": "45b4fd2f5f15...
d79300bb-50d5-45d5-ae51-118d953a7a81
akshay090703/gfg-practice-problems
Day 40/smallestGreaterElementArray.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; int *greaterElement(int arr[], int n); int main() { int t, n; cin >> t; while (t--) { cin >> n; int arr[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } int *b; b ...
ALGO
0.999918
5.371415
{ "github_metadata": { "branch": "main", "commit_count": 286, "repo_created_at": "2024-02-06T08:01: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": "bc5a7499bd...
1af45a02-6cec-4be8-ac25-b05b45406727
UnicornIsBlack/Leetcode_v1
91.DecodeWays/91.DecodeWays/main.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; class Solution { public: int numDecodings(string s) { if ( s.empty() ) return 0; int count = 0; vector<int> res(s.size(), 0); for ( int i = 0; i < res.size(); i++ ) { if ( i == 0 ) { if ( s[i] !...
ALGO
0.999576
4.507989
{ "github_metadata": { "branch": "master", "commit_count": 294, "repo_created_at": "2017-09-01T10:06: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": "2d868a8d...
4fd7992f-1397-41b3-80ec-ff3fa7c17a08
har5h5harma/Task_Scheduler
Task_Scheduler.cpp
#include <iostream> #include <queue> using namespace std; // Function to add task to scheduler void addTask(priority_queue<pair<int, int>>& tasks, int id, int priority) { tasks.push({priority, id}); } // Function to execute task with highest priority void executeTask(priority_queue<pair<int, int>>& tasks) { ...
ALGO
0.993005
6.478501
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-02-25T08:39:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9b1d46f68f8c...
2d8afa88-2283-41d5-911b-88ce7d4fae9e
coppermilk/C-Primer-Plus-5th-Edition
ch07/ch07ex06.cpp
#include <iostream> using namespace std; double fill_array(double * a, int size); void show_array(double * a, int size); void reverse_array(double * a, int size); const int array_size = 32; int main(){ double my_array[array_size]; int real_size = fill_array(my_array, array_size); show_array(my_array, real_size); r...
ALGO
0.985721
3.498832
{ "github_metadata": { "branch": "main", "commit_count": 286, "repo_created_at": "2021-07-28T19:48: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": "5a89eef4f0...
578353cf-9fe2-4045-a68e-2d2b85f0d5ca
evalenciEAFIT/retoHuffman
main.cpp
#include "huffman.h" #include <iostream> #include <string> int main(int argc, char* argv[]) { // Explicación de las opciones de CLI if (argc < 5) { std::cerr << "Uso: " << argv[0] << " -c|-d <archivo_entrada> -o <archivo_salida>\n"; std::cerr << "-c: Comprimir el archivo de entrada y guardar el...
ALGO
0.971407
5.156162
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-10-22T21:27: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": "c9cc1fa96fb9...
7af993db-d364-4b06-95f7-8754d994aa0f
kisssandoradam/infalglab
src/exercise-11.cpp
/* developer: <NAME> e-mail: <EMAIL> */ #include <iostream> #include <iomanip> #include <cstdlib> #include <stack> class Node { public: Node(int value = 0, Node *left = NULL, Node *right = NULL) { this->value = value; this->left = left; this->right = right; } int getValue() { return value; } void setVa...
ALGO
0.999372
4.896721
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2015-12-22T21:08: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": "5d94cb72ce...
f3a49a8b-e66c-4365-9d7f-00f016456ada
MilkClouds/Competitive-Programming
Codeforces/1547C.cpp
# pragma GCC optimize ("O3") # pragma GCC optimize ("Ofast") # pragma GCC optimize ("unroll-loops") #include <bits/stdc++.h> #define rep(i,a,b) for(int i = (a); i < (b); i++) #define rep2(i,a,b) for(int i = (b) - 1; i >= (a); i--) #define all(x) (x).begin(), (x).end() #define sz(x) ((int)(x).size()) #define pb push_bac...
ALGO
0.999696
3.723521
{ "github_metadata": { "branch": "main", "commit_count": 3514, "repo_created_at": "2021-02-23T16:44:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ae13964e9...
531db6f5-19d3-46f9-9690-e928d7fae44e
elben6exam/docker_raspberry_yolo
arm_docker/thirdparty/ComputeLibrary/src/core/NEON/kernels/arm_gemm/transforms/sve_transpose_interleave_3VL_1x4.hpp
/* * Copyright (c) 2021 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 ...
ALGO
0.901473
6.613401
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-08-05T13:35: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": "a2556cfc2867...
530e22d2-acc0-4884-952c-038511c9de12
NikhilRaj-2529/Dynamic-Programming
Vacation.cpp
#include<bits/stdc++.h> using namespace std; int dp[100001][4]; int solver(int ind,int n,vector<vector<int>> &arr,int prev){ if(ind >= n) return 0; if(prev != -1 and dp[ind][prev] != -1) return dp[ind][prev]; int maxi=0,p=0; for(int i=0;i<3;i++){ if(i!=prev){ p=arr[ind][i]+solver(ind...
ALGO
0.999982
4.75562
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2024-02-01T11: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": "0ec77dff97e5...
39560563-b0d5-4ff2-9cc4-a81dbc3e2232
dmkz/competitive-programming
mirea/cources/middle/blitz-2/A.cpp
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); // параллелограмм -- фигура, у которой противоположные стороны равны // то есть, либо это две равные палочки + другие две равные палочки // либо это 4 равные палочки // сначала набираем по 4 равны...
ALGO
0.999942
3.966197
{ "github_metadata": { "branch": "master", "commit_count": 2019, "repo_created_at": "2018-04-25T11:54:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 41, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f6a110...
d26a9fad-42fb-4657-ae78-3daf84f96013
liuchuo/LeetCode
C++/657. Judge Route Circle.cpp
657. Judge Route Circle Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place. The move sequence is represented by a string. And each move is represent by a character. The valid robot moves are R (Right), L (Le...
ALGO
0.999684
5.741602
{ "github_metadata": { "branch": "master", "commit_count": 354, "repo_created_at": "2016-04-01T13:53:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 534, "forks": 154, "issues": 5, "pull_requests": 4 }, "file_meta": { "content_id": "3b77...
a2846710-fcd6-4752-a8e8-a0abddf7f5cc
Ashwik/Leet-Code-Solutions
173-binary-search-tree-iterator/binary-search-tree-iterator.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.999865
5.848892
{ "github_metadata": { "branch": "main", "commit_count": 740, "repo_created_at": "2023-05-10T08:02: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": "1ae6425fca...
45104865-8593-461c-8d7d-81d9706b79fb
ShibhuRathore/Leetcode_dsa
0832-binary-tree-pruning/0832-binary-tree-pruning.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.9999
5.88603
{ "github_metadata": { "branch": "main", "commit_count": 1575, "repo_created_at": "2025-03-18T18:55:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a9648de7f...
9fa9966c-8e83-4fe6-8342-28d2ebd43bc0
gemsanyu/cvrpptpl-cppv2
cvrpptpl/src/heuristic/utils.cpp
#include "heuristic/utils.h" #include <algorithm> void insertNodeToRoute(int nodeIdx, int vi, int pos, const Cvrpptpl& problem, Solution& solution) { auto& distanceMatrix = problem.distanceMatrix; int demand = solution.destinationTotalDemands[nodeIdx]; solution.vehicleLoads[vi] += demand; solution.destination...
ALGO
0.999569
6.560997
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2025-05-21T00:24: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": "766fc73789...
e77f9d15-3d99-4b8c-b63a-3412a97708a5
tiankonguse/ACM
contest/sgu/vol5/538.cc
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <string> #include <vector> #include <queue> #include <set> #include <ctime> #include <map> #define inf 0x3f3f3f3f #define Inf 0x3FFFFFFFFFFFFFFFLL #define rep(i, n) for (int i = 0; i < (n); ++i) #...
ALGO
0.999414
3.581829
{ "github_metadata": { "branch": "master", "commit_count": 185, "repo_created_at": "2013-03-25T04:04:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 69, "forks": 40, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b12bca...
51652ca5-461c-4815-a714-772d362aa861
ASSERT-KTH/Supersonic
predictions/submissions-aizu-gpt35/Codenet/p00494/388338924/response_1.cpp
#include <cstdio> #include <cstring> char x[1000005]; int a = 0, b = 0, c = 0, d = 0, leng, maxi = 0; int main() { memset(x, 'A', sizeof(x)); scanf("%s", x); leng = strlen(x); while (a < leng) { if (x[a] != 'J') { a++; } else { while (x[a] == 'J') { b++; a++; } wh...
ALGO
0.998427
3.140049
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-02-03T10:33:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1763f7343b5cc...
986768fa-0f49-4c7a-baba-bb6c40f9d246
e4903180/leetcode
141_Linked_List_Cycle.cpp
#include<iostream> using namespace std; // Definition for singly-linked list. struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: bool hasCycle(ListNode *head) { ListNode* slow = head; ListNode* fast = head; while (fa...
ALGO
0.999204
6.304294
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2025-07-06T05: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": "4a5ff58f7...
a4da329b-2267-42b0-bc13-52da04273348
ishandutta2007/codeforces-p
purplecrayon/normal/1265/B.cpp
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; template<class T> using oset=tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; void fsc(int &x){ register int c; x = 0; c=getchar()...
ALGO
0.999475
4.07832
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:49:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "97e8ba8dd199...
04d7599e-0551-426f-94ff-e54b0722fed3
YoussefNSI/L3MI
Systèmes intelligent/DISTRIBUTION/MCTS.cpp
#include "MCTS.h" #include <limits> #include <algorithm> #include <fstream> #include <sstream> #include <stack> #include <unordered_map> #include <queue> #include <unordered_set> #include <regex> Noeud::Noeud(int state, std::shared_ptr<Noeud> p, int coup) : state_val(state), visite_count(0), total_reward(0.0), ...
ALGO
0.999833
5.312593
{ "github_metadata": { "branch": "main", "commit_count": 168, "repo_created_at": "2024-09-20T12:25: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": "a0bf39e936...
3ee9a940-b636-4b45-b238-a36d43689e9a
oxigen1um/calc
main.cpp
#include "std_lib_facilities.h" #include "Token.h" #include "Token_stream.h" #include "Variable.h" #include "Symbol_table.h" #include "constants.h" using namespace std; ostream& syncerr = *cerr.tie(); // synchronize cerr with cout and save it as link for further purposes Symbol_table variables; Token_stream ts; voi...
TOOL
0.979121
4.294933
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-12-02T15:29: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": "1933fe5cd4...
96d4e0b0-f13b-4a96-8eaf-4b3cbae0e949
kretzmoritz/Archive
Utility/tree/tree.h
////////////////////////////// // <NAME> // ToDo: // - Iterator_bfs ////////////////////////////// #ifndef TREE_H #define TREE_H #include <stack> #pragma warning(disable:4351) template<class T, unsigned int child_count> class Node; template<class T, unsigned int child_count, class U = Node<T, child_count>> class T...
ALGO
0.939024
4.384335
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2013-09-19T20:16:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b64081fdd...
ae6f8d9f-687e-4760-b575-5cbd79c40f3d
SakibulMowla/competitive-programming-solutions
Root/CF/Eugeny and Play List.cpp
#include <stdio.h> #include <string.h> #include <string> #include <stdlib.h> #include <math.h> #include <map> #include <vector> #include <queue> #include <stack> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; //ll bigmod(ll a,ll b,ll m) //{ // if(b == 0) return 1%m; // ll ...
ALGO
0.999894
3.116198
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2020-05-24T23:22:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8ab85e61e...
eb4e32ae-fbf8-4f8b-86a0-d2b13f76dcef
Pranav6197/AI_LAB
SUDOKU.cpp
#include <iostream> using namespace std; const int SIZE = 9; int grid[SIZE][SIZE] = { {5, 3, 0, 0, 7, 0, 0, 0, 0}, {6, 0, 0, 1, 9, 5, 0, 0, 0}, {0, 9, 8, 0, 0, 0, 0, 6, 0}, {8, 0, 0, 0, 6, 0, 0, 0, 3}, {4, 0, 0, 8, 0, 3, 0, 0, 1}, {7, 0, 0, 0, 2, 0, 0, 0, 6}, {0, 6, 0, 0, 0, 0, 2, 8, 0}, ...
ALGO
0.999927
6.915226
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2025-05-18T17:41:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7415d2c99e30...
f1910fee-fb48-4c46-8b2f-cbc59b2e8215
ngochahh2005/PTIT-code
CodePTIT-CPP/CodePTIT/CPP0118 - SỐ SPHENIC.cpp
#include <bits/stdc++.h> #define ll long long #define lmt 10000 using namespace std; bool sang[lmt+5]; int res[lmt+5]; void sangnt() { fill(sang, sang+lmt+5, true); sang[0] = sang[1] = false; res[1] = 1; for (int i = 2; i <= 100; i++) { if (!sang[i]) continue; res[i] = i; for (...
ALGO
0.999683
4.579208
{ "github_metadata": { "branch": "main", "commit_count": 41, "repo_created_at": "2024-03-16T15:50:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bfeb9e03d4a...
25b7db5d-eccd-4d8d-b35a-4d64c040e67e
hamzaarif12345/Data-Structures-and-Algorithms
Leetcode_143.cpp
/* 143. Reorder List Solved Medium Topics Companies You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following form: L0 → Ln → L1 → Ln - 1 → L2 → Ln - 2 → … You may not modify the values in the list's nodes. Only nodes themselves ...
ALGO
0.999997
6.424932
{ "github_metadata": { "branch": "main", "commit_count": 621, "repo_created_at": "2023-02-01T15:16:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "58ea30ec99...