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
f44e05a8-d918-4c35-909e-f726e684bd95
IEIAuto/AutoDRRT
src/autodrrt.application/perception/autoware.perception/compare_map_segmentation/src/voxel_based_approximate_compare_map_filter_nodelet.cpp
// Copyright 2020 <NAME>, Inc. // // 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...
ALGO
0.922336
7.092782
{ "github_metadata": { "branch": "main", "commit_count": 26, "repo_created_at": "2023-08-11T02:20:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 23, "forks": 14, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "36e97007f...
9d7a28c1-3221-4fda-a1c4-cea354305201
Sister20/if3230-tucil-siber
src/open-mpi/mpi.cpp
#include "mpi.h" // Matrix struct struct Matrix { double *data; int rows; int cols; // Constructor Matrix(int rows, int cols) : rows(rows), cols(cols) { data = new double[rows * cols]; } // Destructor ~Matrix() { delete[] data; } // Overload to access the matr...
ALGO
0.99996
5.476855
{ "github_metadata": { "branch": "main", "commit_count": 39, "repo_created_at": "2024-03-17T00:03:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cc2524fa42cc...
3d550d42-a0e1-48b1-9ba9-1558c1a12e29
yacineMahdid/algorithm-and-data-structures
circular_linked_list/main.cpp
#include <string> class Node{ private: /* data */ public: int data; // this could be anything Node* next; // pointer to the next node Node(int data_in); Node(); ~Node(); }; // Constructors Node::Node(){ } Node::Node(int data_in){ data = data_in; } /...
ALGO
0.998779
5.798655
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2018-11-14T04:11:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 10, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "1668e85...
32ece225-cc15-4194-a3f7-ef5c6fca4ac6
jsonlee0x01/leet
leetcode/2.cpp
/** * Definition for singly-linked list. * 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) {} * }; */ struct ListNode { int val; ListNode *next; L...
ALGO
0.999941
6.314336
{ "github_metadata": { "branch": "main", "commit_count": 90, "repo_created_at": "2021-07-23T15:02: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": "e73293f82e1...
75f9deb1-35fc-477d-8841-3fc4316ee418
rjenez/W266-final-project
data/programming-homework-dataset-plagiarism-detection/src/B2016/Z2/Z3/student4949.cpp
#include<iostream> #include<vector> #include<algorithm> #include<deque> using namespace std; bool jelprost(int x){ for(int i=2;i<x;i++){ if(x%i==0) return 0; } return 1; } int SumaDjelilaca(long long int x){ int suma=0; for(int i=1;i<=x;i++){ if(x%i==0) suma+=x; } return suma; } int BrojSavrsenihDjelila...
ALGO
0.995113
4.12456
{ "github_metadata": { "branch": "main", "commit_count": 125, "repo_created_at": "2022-02-09T00:45:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "83a7ca60df...
31f9329d-c194-499b-bc50-68885ad5ae0a
mrsac7/CSES-Solutions
src/1195 - Flight Discount.cpp
/* Problem Name: Flight Discount Problem Link: https://cses.fi/problemset/task/1195 Author: <NAME> (mrsac7) */ #include<bits/stdc++.h> using namespace std; template<typename... T> void see(T&... args) { ((cin >> args), ...);} template<typename... T> void put(T&&... args) { ((cout << args << " "), ...);} template<typena...
ALGO
0.999956
4.175603
{ "github_metadata": { "branch": "master", "commit_count": 66, "repo_created_at": "2020-05-06T08:18:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 394, "forks": 157, "issues": 1, "pull_requests": 4 }, "file_meta": { "content_id": "9a2e0...
7edcd1b7-ad63-4401-a514-127f346525d8
yosupo06/library-checker-problems
number_theory/enumerate_primes/gen/ten.cpp
#include <stdio.h> #include <vector> #include "../params.h" #include "random.h" using std::vector; // floor(sqrt(a)) long long floorSqrt(long long a) { long long b = a, x = 0, y = 0; for (int e = (63 - __builtin_clzll(a)) & ~1; e >= 0; e -= 2) { x <<= 1; y <<= 1; if (b >= (y | 1) << e) { b -= (y...
ALGO
0.998874
3.57733
{ "github_metadata": { "branch": "master", "commit_count": 3115, "repo_created_at": "2019-05-30T20:49:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 589, "forks": 137, "issues": 98, "pull_requests": 3 }, "file_meta": { "content_id": "23...
6866be16-668b-4347-a1c1-f23ecb0860ce
spmallick/learnopencv
3D-Gaussian-Splatting-Code/gsplat/gsplat/cuda/csrc/third_party/glm/glm/gtx/intersect.inl
/// @ref gtx_intersect namespace glm { template<typename genType> GLM_FUNC_QUALIFIER bool intersectRayPlane ( genType const& orig, genType const& dir, genType const& planeOrig, genType const& planeNormal, typename genType::value_type & intersectionDistance ) { typename genType::value_type d = glm::dot(dir...
ALGO
0.99248
6.773749
{ "github_metadata": { "branch": "master", "commit_count": 2579, "repo_created_at": "2015-02-17T08:00:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 22057, "forks": 11720, "issues": 229, "pull_requests": 48 }, "file_meta": { "content_id...
d6b91871-7c28-4e42-b8a8-960271cf36b7
emerencia/topcoder
SRMs/N-Z/StampsCollection_graph_notworking_small_errors.cpp
#include <string> #include <iostream> #include <sstream> #include <algorithm> #include <vector> #include <map> #include <set> #include <queue> #include <cmath> #include <utility> #include <climits> #include <limits> #include <cstring> #include <numeric> using namespace std; typedef long long LL; typedef pair<int,LL> PL...
ALGO
0.999765
4.211385
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-12-03T23:20: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": "e005e85bcd18...
89985b2a-d66e-49f5-9cee-139f693ad100
BigMacchia/ngSkinTools
ngSkinTools/mll/src/utils.h
#pragma once #include "maya.h" const double SMALL_NUMBER_LAMBDA = 0.000001; /** * checks if two numbers are close to each other (max allowed difference is SMALL_NUMBER_LAMBDA) * if second number is passed as a compile-time constant, speedup is expected */ inline bool isCloseTo(const double number,const double num...
TOOL
0.917164
5.864099
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2013-10-29T14:09:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 67, "forks": 43, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6bc88eb...
380c4943-ec23-4e80-a146-e2fb42774024
klimarissa17/algos19
biginteger.h
#include <iostream> #include <vector> #include <string> #include <algorithm> using std::vector; using std::string; const int kBase = 10; class BigInteger { private: static const int pw = 1; // 4; BigInteger mult(const int &a) const; public: vector <int> vec; bool negative; BigInteger(); BigInteger(string st...
ALGO
0.99876
3.848368
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2019-10-16T23:56:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 3 }, "file_meta": { "content_id": "1ce40c212...
555d61ca-14dc-47d9-b8bb-feff2ea119f0
smartzcy/My_vscode
C_learn/2023_7/2023_7_17/E.cpp
#include <bits/stdc++.h> using namespace std; const int maxn = 5e5 + 5; const int maxm = 2e6 + 5; int n, m; int idx = 0, sccnt = 0, top = 0; int dfn[maxn], low[maxn], du[maxn], all[maxn], id[maxn]; bool scc[maxn]; int etot = 0; struct edge { int y, nxt; } g[maxm]; int head[maxn]; void add(int x, int y) { ++etot...
ALGO
0.999775
4.129401
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2023-03-11T16:46: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": "2c6d7f279cb...
76aba06d-bc92-434a-880f-c92fe8785450
katthomp/CS389-hw2
cache_linear_lookup.cpp
//By <NAME> and <NAME> #include <stdlib.h> #include <stdio.h> #include <cstring> #include <cassert> #include <type_traits> #include "cache.h" using byte = uint8_t; using Cache = cache_obj; using Key_ptr = key_type; using Value_ptr = val_type; using Index = index_type; using Hash_func = hash_func; using Evictor = evic...
TOOL
0.959379
5.181146
{ "github_metadata": { "branch": "master", "commit_count": 63, "repo_created_at": "2018-11-30T02:12:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "209f2e594...
98038897-520a-4bca-8974-f15bd6b6232f
dipankardas011/DSA_GeeksforGeeks
Algorithms/SearchAlgo/a5.cpp
/*Kth smallest element in a row-wise and column-wise sorted 2D array | Set 1 Difficulty Level : Hard Last Updated : 05 Jun, 2021 Given an n x n matrix, where every row and column is sorted in non-decreasing order. Find the kth smallest element in the given 2D array. Example, Input:k = 3 and array = 10, 20, 30...
ALGO
0.999994
5.87727
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2021-07-24T14:53:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4848a79febb...
692ac56e-241b-41e4-923e-5c3eab75a48f
xiaopengsu/hungarianAlgorithm
main.cpp
//这就是匈牙利算法的流程,至于具体实现,我们来看看代码: https://zhuanlan.zhihu.com/p/96229700 //int M, N; //M, N分别表示左、右侧集合的元素数量 //int Map[MAXM][MAXN]; //邻接矩阵存图 //int p[MAXN]; //记录当前右侧元素所对应的左侧元素 //bool vis[MAXN]; //记录右侧元素是否已被访问过 //bool match(int i) //{ // for (int j = 1; j <= N; ++j) // if (Map[i][j] && !vis[j...
ALGO
0.999979
4.010857
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-05-12T06:01: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": "3b81eee292...
f5b4d4de-45df-4a42-83d0-85c9b721960f
cran/nortestARMA
src/polys/H2.cpp
/* Debut-Commentaires Nom de la fonction: H2 Entrees: n entier, longueur du vecteur x ; x, un vecteur de n nombres de type double Sorties: void Description: Calcul de H2(x), H2 etant le deuxieme polynome de Legendre Modifie le vecteur x dans le programme principal, en le remplacant par H2(x) Utilisation dans une ...
ALGO
0.999471
3.235815
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2016-05-04T16:14:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "09c92452623...
1f0123d2-a6f5-4b6f-81af-73da75abba4c
ishandutta2007/codeforces-a
aropan/normal/627/C.cpp
#include <iostream> #include <cstdio> #include <cassert> #include <ctime> #include <cmath> #include <cstring> #include <string> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <map> #include <set> using namespace std; #ifdef LOCAL #define dbg(x) cerr << #x " = " << x << endl; #includ...
ALGO
0.999828
3.425964
{ "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": "ce1e57a1c6c1...
189a66b6-7f03-4a92-93f0-c2f2518fb2eb
ZacharyOllivierre/CS1B
HW2B/2B2.cpp
// ============================================================================= // Attached: HW2B_Problem 2 // File: HW2B2 // ============================================================================= // // Programmer: <NAME> // Class: CS 1B // Instructor: <NAME> // // ==============================================...
ALGO
0.999226
5.067733
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2025-06-16T19: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": "c7026b3d917...
edfe9046-868a-44f9-90ea-b270fa04f490
thekannman/z_pmf
include/z_string.hpp
//Copyright (c) 2015 <NAME> // //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, publish, distribute,...
TOOL
0.933144
6.559303
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2015-05-02T05:52:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "20ea1765f8...
23a7faca-94ff-40ff-9490-c28abecaa36a
elemental/Elemental
src/lapack_like/factor/LU.cpp
/* Copyright (c) 2009-2016, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include <El.hpp> #include "./LU/Local.hpp" #include "./LU/Pan...
ALGO
0.99956
6.382392
{ "github_metadata": { "branch": "master", "commit_count": 3773, "repo_created_at": "2012-05-06T08:37:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 513, "forks": 110, "issues": 38, "pull_requests": 7 }, "file_meta": { "content_id": "567...
f82d97fc-011b-49bf-898d-b19c17efb3cf
Madcrafty/WarmUp
Othello/Othello/Othello.cpp
#include <iostream> #include <vector> typedef std::vector<std::vector<char>> OthelloBoardState; struct Direction { int x; int y; bool valid = true; }; std::vector<Direction> LoadDirections() { std::vector<Direction> directions; directions.push_back(Direction{ -1,-1,true }); // UL directions.pu...
ALGO
0.99503
5.69397
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2020-08-06T23:35: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": "ef85da628d...
a101b97b-e97d-4d2a-8370-7e32758fe972
kdally/n-dimensional-heat-equation-solver
cg.hpp
#ifndef HEAT_EQUATION_CG_HPP #define HEAT_EQUATION_CG_HPP #include "matrix.hpp" // Complex conjugate linear system solver template<typename T> int cg(const Matrix<T> &A, const Vector<T> &b, Vector<T> &x, const T& tol, int maxiter) { Vector<T> pk = b - A * x; Vector<T> rk(pk); T alphaK; Vector<T> ol...
ALGO
0.99824
5.091926
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-03-30T17:47: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": "bc6587f576...
1e42efa3-dc7e-4d45-abbe-b439c3685027
LEEJJingyu/algorithm
백준/Gold/17825. 주사위 윷놀이/주사위 윷놀이.cc
#include <iostream> #include <vector> #include <queue> #include <tuple> #include <algorithm> #include <cmath> using namespace std; int dice[10]; int board[] = { 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,0, //0~20 13,16,19, //21 22,24, //24 28,27,26, //26 25,30,35 //29 }; int mx = 0; bo...
ALGO
0.999822
4.162306
{ "github_metadata": { "branch": "main", "commit_count": 271, "repo_created_at": "2024-07-14T23:55: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": "a9b5629b4f...
ecc82176-d09d-4d1e-8f00-5299be503eaf
forneiss/Zadania
laczenie_tablic.cpp
#include <iostream> using namespace std; int main() { const int rozmiarTablicy = 3; const int rozmiarTablicyPolaczonej = 2 * rozmiarTablicy + 2; int *tablica1 = new int[rozmiarTablicy]; int *tablica2 = new int[rozmiarTablicy]; int *tablicaPolaczona = new int[rozmiarTablicyPolaczonej]; for (i...
ALGO
0.99469
4.649899
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2023-10-09T08:47: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": "3bd24a6c3f...
b9b7a7c9-b0e6-45fb-a41e-488ceef17bc8
BreezeLewis/CPP-CODE
2025.4/test_4.14/test_4.14/sort.cpp
#include <iostream> #include <vector> #include <random> #include <algorithm> #include <ctime> // 打印数组函数 void printArray(const std::vector<int>& arr, const std::string& message) { std::cout << message << std::endl; for (int num : arr) { std::cout << num << " "; } std::cout << std::endl; } // 在这...
ALGO
0.998842
5.66572
{ "github_metadata": { "branch": "code", "commit_count": 722, "repo_created_at": "2022-10-03T02:49:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bdc1aecbef...
abc66602-df41-4fd5-855b-cf0b466d28af
Phelixh/MTH_4600
HW5/StoVol.cpp
//////////////////////////////////////////////////////////////////////////////// // This program generates 10 stock price paths using a GARCH(1,1) // stochastic volatility model. Results are printed to the screen. The // current (stochastic) and long-run volatility are 30% annually. //////////////////////////////...
ALGO
0.998704
4.929009
{ "github_metadata": { "branch": "master", "commit_count": 156, "repo_created_at": "2023-05-14T08:37: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": "883118bb...
18b2facb-53ef-4353-afa3-3f661d95bcb3
raincross7/code-similarity
codes/train_code/problem495/problem495_403.cpp
#include <bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,b,a) for(int i=b;i>=a;i--) #define fori(a) for(auto i : a ) #define all(a) begin(a), end(a) #define set(a,b) memset(a,b,sizeof(a)) #define sz(a) a.size() #define pi 3.14159 #define ll long long #define ull unsigned long long #define pb push...
ALGO
0.999861
3.847764
{ "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": "5c0d16e36dc5...
cfecb2f5-f537-437a-addc-746f9169bedf
atul4sharma/hackerEarthProblems
list_practice.cpp
#include <iostream> #include <list> #include <cstdlib> using namespace std; int main() { list<int> l; list<int>::iterator iter; for(int i=0;i<10;i++) l.push_back(i); cout<<"LIST is : "<<endl; iter=l.begin(); while(iter!=l.end()) { cout<<*iter<<" "; iter++; }...
TOOL
0.940339
4.192142
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2016-02-04T16:52:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f5f8d0639...
cbf972c5-b9fa-4592-bf84-7f7d16196c1e
craft-coder/Softwareentwicklung-2022
src/Sphere.cpp
#include "Sphere.h" #include <cmath> namespace raytracer { Sphere::Sphere(Point3 center, double radius, std::shared_ptr<Material> material) : center_(center) , radius_(radius) , material_(material) { } std::optional<HitRecord> Sphere::hit(const Ray& ray, double tMin, double tMax) const { Vec3 oc = ra...
ALGO
0.905998
6.754285
{ "github_metadata": { "branch": "main", "commit_count": 34, "repo_created_at": "2022-04-20T07:53: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": "835819ef0f0...
30b6edc0-463a-4700-acf6-40f046b35f65
HARRISAMIN432/codeforces
collectingGames.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; vector<pair<int, int>> nums(n); for (int i = 0; i < n; i++) { int num; cin >> num; num...
ALGO
0.999992
3.902844
{ "github_metadata": { "branch": "master", "commit_count": 33, "repo_created_at": "2025-06-01T19:14: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": "769cfc902...
41e3399e-68bb-4057-a1af-04ffebb33353
Vermadeepakd1/Questions-Solved
19-remove-nth-node-from-end-of-list/remove-nth-node-from-end-of-list.cpp
/** * Definition for singly-linked list. * 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) {} * }; */ class Solution { public: ListNode* removeNthFr...
ALGO
0.999984
5.744708
{ "github_metadata": { "branch": "main", "commit_count": 728, "repo_created_at": "2025-01-27T14:36: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": "d0bfc486bd...
f5073fab-629a-4eb8-b968-113a4790ff29
ljb7977/Algorithm-Study
10254/main.cpp
#include <cstdio> #include <cstdlib> #include <algorithm> #include <cmath> #include <vector> using namespace std; struct vector2 { int x_i, y_i; double x, y; explicit vector2(double x_=0, double y_=0): x_i(x_), y_i(y_), x(x_), y(y_){} bool operator == (const vector2& rhs) const { return x == ...
ALGO
0.999917
3.635361
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2018-07-06T04:19:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "42708fcee...
febadc1c-b9dd-42ac-816a-52bb9da694b5
package57/Cby1
main.cpp
// Cby1 // the initial exploration of an array and array processing // this is a simplistic view of an array, and not actually practical in any real world situation // these simplistic view only get worse as we go deeper #include <iostream> using namespace std; int x; // typical index or subscript variable - a...
ALGO
0.995139
4.170557
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-03-25T12:25: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": "39fd73d4cb6f...
cf8247c2-4eab-4df5-a9e6-f7ddeb4e96c7
lballabio/QuantLib
ql/math/interpolations/kernelinterpolation.hpp
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2009 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modif...
ALGO
0.980487
7.353922
{ "github_metadata": { "branch": "master", "commit_count": 17543, "repo_created_at": "2015-12-17T16:29:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6151, "forks": 1964, "issues": 51, "pull_requests": 11 }, "file_meta": { "content_id":...
11f1fffb-a7db-4686-9c09-f38107834d68
Reec1e33/CSE-232
homework/Homework5/WordList.cpp
// WRITE YOUR CODE HERE #include "WordList.h" #include <iostream> bool AtListPosition(std::string const &wordList, std::string const &word, std::string::size_type position) { std::string checkWord; if (word == wordList){ return true; } bool commaBehind = (position + word.size() < wordList.size() && wordLis...
TOOL
0.985816
5.65738
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2024-11-07T16:47: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": "b1d9ccb0c67...
e415fb04-3e57-4c1d-834c-8231dcddaba2
CarlosDaniel111/competitive-programming
ICPC/LatinAmerica/GPMX/GPMX2023 Segunda Fecha/H.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using pi = pair<int, int>; using pl = pair<ll, ll>; using pd = pair<double, double>; using vi = vector<int>; using vb = vector<bool>; using vl = vector<ll>; using vd = vector<double>; using vs = vector<string>; using ...
ALGO
0.999992
4.228435
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2023-08-03T01:39:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f9b711263...
8bd84137-8be5-454f-bf77-4137c296fcf1
pmateusz/quake
src/main/multi_week_block_intervals_mip_model.cpp
#include "multi_week_block_intervals_mip_model.h" quake::MultiWeekBlockIntervalsMipModel::MultiWeekBlockIntervalsMipModel(const quake::ExtendedProblem *problem, quake::Forecast forecast, ...
ALGO
0.994102
5.954321
{ "github_metadata": { "branch": "master", "commit_count": 145, "repo_created_at": "2019-12-05T21:11: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": "fd6d8a2a...
8c232117-f427-47e3-9b91-d0ddb56d9f49
ishandutta2007/codeforces-t
tqyaaaaang/normal/711/C.cpp
#include <bits/stdc++.h> using namespace std; #define LL long long #define LD long double #define SC(t,x) static_cast<t>(x) #define AR(t) vector < t > #define lp(loop,start,end) for ( int loop = start; loop < end; ++loop ) #define lpd(loop,start,end) for ( int loop = start; loop > end; --loop ) #define lpi(loop,start,...
ALGO
0.999949
3.764286
{ "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": "8534e188625c...
6d92b5a0-d33b-4219-95dc-bbcbb79a7e71
dickynovanto1103/CP
Online Judges/UVA/CP3/4. Graph/Network Flow/Standard Max Flow Problems/tshirt.cpp
#include <bits/stdc++.h> using namespace std; #define inf 1000000000 #define unvisited -1 #define visited 1 #define eps 1e-9 #define mp make_pair #define pb push_back #define pi acos(-1.0) #define uint64 unsigned long long typedef long long ll; typedef vector<int> vi; typedef pair<int,int> ii; typedef vector<ii> vii; ...
ALGO
0.999868
4.42133
{ "github_metadata": { "branch": "master", "commit_count": 212, "repo_created_at": "2018-08-22T06:40: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": "2d0dc6b0...
f7cf8da4-88d6-445d-8404-d4ece4c29989
Yawn-Sean/Daily_CF_Problems
daily_problems/2024/02/0226/personal_submission/cf1547e_md.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; constexpr int inf = 2e9 + 1; void solve() { int n, k; cin >> n >> k; vector<int> pos(k); vector<int> temp(k); for (int i = 0; i < k; i++) { cin >> pos[i]; } for (int i = 0; i < k; ++i)...
ALGO
0.999968
4.490577
{ "github_metadata": { "branch": "main", "commit_count": 20410, "repo_created_at": "2024-02-26T01:04:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 478, "forks": 302, "issues": 0, "pull_requests": 7 }, "file_meta": { "content_id": "fcb5...
f0323b4d-f0fe-471d-8115-504a38756e08
Sohieb/competitive-programming
Codeforces/B1151-Dima and a Bad XOR.cpp
#include <bits/stdc++.h> using namespace std; using namespace __gnu_cxx; typedef double db; typedef long long ll; typedef pair<db, db> pdd; typedef pair<ll, ll> pll; typedef pair<int, int> pii; typedef unsigned long long ull; #define F first #define S second #define pnl printf("\n") #define ...
ALGO
0.999974
3.92243
{ "github_metadata": { "branch": "master", "commit_count": 481, "repo_created_at": "2018-01-31T16:33:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6bfdc584...
27b8d8bc-8703-4215-9bcc-ee6c1169fbad
AByzhynar/Algorithms
algo2/main.cpp
#include <iostream> #include <stdlib.h> #include <cstddef> #include <vector> #include <algorithm> #include <cassert> using namespace std; template <typename TParam1, typename TParam2> TParam1 lower_bound_my(TParam1 begin, TParam1 end, const TParam2& key) { assert(begin <= end && std::is_sorted(begin, end)); while...
ALGO
0.999927
5.378747
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2017-03-13T13:34: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": "728a7ca78...
06e607a9-6168-47ec-96e4-3669d78665ed
ishandutta2007/codeforces-h
hank55663/normal/1326/F1.cpp
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define x first #define LL long long #define ULL unsigned long long #define y second #define sqr(x) ((x)*(x)) #define pii pair<int,int> #define pll pair<LL,LL> #define pdd pair<double,double> #define MEM(x) memset(x,0,sizeof(x)) #define pi acos(-1) #de...
ALGO
0.999826
3.09491
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T02:01: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": "e6c8ad92d8fd...
50b9a9d2-cbb9-4405-8ce0-d6edecc57aa7
SushiStar/LC
Array/TwoSumII.cpp
/* * Given an array of integers that is already sorted in ascending * order, find two numbers such that they add up to a specific * target number. * * The function twoSum should return indices of the two numbers such * that they add up to the target, where index1 must be less than index2 * * Your returned answe...
ALGO
0.999981
6.225208
{ "github_metadata": { "branch": "master", "commit_count": 683, "repo_created_at": "2018-10-01T23:10: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": "28eb0090...
a26c7380-ee8c-4034-9bb7-42178946a91f
suyashdeshpande/Competitive-Programming
LeetCode/1224.cpp
class Solution { public: int maxEqualFreq(vector<int>& nums) { int n = nums.size(); map<int, int> freq; map<int, int> freq_freq; int ans = 0; for(int i = 0; i < n; i++) { int x = nums[i]; if(freq[x] > 0) { if(--freq_freq[freq[x]] == 0) ...
ALGO
0.999986
5.620885
{ "github_metadata": { "branch": "master", "commit_count": 89, "repo_created_at": "2019-03-25T14:14:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5815f5f5f...
dd6b60f5-0427-4b7f-a6d5-b02ee7780154
ramkumar142002/Leetcode-Solutions
Rod Cutting - GFG/rod-cutting.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: int fun(int i,int price[],int n,vector<vector<int>> &dp){ if(i==0){ return n*price[0]; } ...
ALGO
0.999903
5.640777
{ "github_metadata": { "branch": "main", "commit_count": 1541, "repo_created_at": "2022-10-12T12:29: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": "3e801a979...
90f8b781-01a1-42f8-afec-8064f31bfddb
LittleYang0531/CQ-CSP-S-2022
CQ-S00188/holiday/holiday.cpp
#include<bits/stdc++.h> using namespace std; int n,m,kq,a,b; long long int ss[2505]; bool fs[2505][2505][105],fes[2505][2505]; long long int Max(long long int a,long long int b){ return a>b?a:b; } long long int ans; int main(){ freopen("holiday.in","r",stdin); freopen("holiday.out","w",stdout); scanf("%d%d%d",&n,&m...
ALGO
0.999954
3.517362
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-10-31T10:15: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": "b0beea23d875...
7554c714-ae71-4acf-bf9a-1414c1b4d0a9
Panda06/c-plus-plus-modern-development
white/second-week/conserns.cpp
#include <iostream> #include <string> #include <vector> #define ADD "ADD" #define NEXT "NEXT" #define DUMP "DUMP" void dump(const std::vector<std::string>& plans) { std::cout << plans.size() << ' '; for(const auto &plan: plans) { std::cout << plan << ' '; } std::cout << '\n'; } void next(std...
ALGO
0.998363
5.488992
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2018-10-05T01:20: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": "87c1e66dc1...
38920f09-44ca-4c34-a84d-83c008ace53c
mercury0114/online_contests
helpful_code/io.hpp
#pragma once #include <iostream> #include <cstdio> #include <string> #include <utility> #include <vector> #include <helpful_code/typedefs.hpp> using std::cout; using std::endl; using std::pair; using std::vector; namespace { constexpr LL MAX_STRING_LENGTH = 200000; } void Print(const VLL& v) { for (const LL...
ALGO
0.983281
3.581211
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2020-12-09T22:44: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": "556f93955bd...
b1243083-1b6e-4e0b-9f3b-629adadb0cfa
Seann0425/LeetCode
finished/376. Wiggle Subsequence.cpp
#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) { } }; struct TreeNode { int val; TreeNode *left; ...
ALGO
0.999856
4.75858
{ "github_metadata": { "branch": "main", "commit_count": 659, "repo_created_at": "2024-05-02T09:26: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": "99a31ca1c6...
cc843a87-7dd9-48de-b749-c60702d89b75
arthurherbout/crypto_code_detection
data/code-jam/files/1835486_WhiteBear_1481492_0_extracted_c.h
#include <cstdio> #include <iostream> #include <cstdlib> #include <cmath> #include <cassert> #include <cstring> #include <algorithm> #include <string> #include <vector> #include <list> #include <set> #include <map> #include <sstream> using namespace std; #pragma comment(linker, "/STACK:255000000") typedef long long ll...
ALGO
0.999457
3.343395
{ "github_metadata": { "branch": "master", "commit_count": 66, "repo_created_at": "2019-09-20T18:35:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 4, "issues": 10, "pull_requests": 1 }, "file_meta": { "content_id": "1366993a...
b1e9cf4c-5998-4439-80e5-d331c2990e26
PointCloudLibrary/pcl
gpu/features/include/pcl/gpu/features/device/eigen.hpp
/* * Software License Agreement (BSD License) * * Copyright (c) 2011, <NAME>, Inc. * 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 abo...
ALGO
0.996276
6.840199
{ "github_metadata": { "branch": "master", "commit_count": 14566, "repo_created_at": "2013-02-12T16:40:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 10495, "forks": 4656, "issues": 432, "pull_requests": 147 }, "file_meta": { "content_id...
14cf359e-0796-4b57-a6b3-190d3deb2777
manish0222/ADV_DS_SE
ADV_DS_SE/Asgn/asgn10.cpp
#include <iostream> using namespace std; class heap{ int arr[100]; int size=0,n; // arr[0] = 1; public: heap(){ arr[0]=-1; } void create(){ cout<<"ENTER total "; cin>>this->n; for(int i=0;i<n;i++){ cout<<"enter "; int x;cin>>x; ...
ALGO
0.999887
4.45594
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-06-10T14:11: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": "07e2cb41f736...
70588811-713c-4aeb-96b8-72ac0f292a51
sarthak5101/Data-Structures-and-Algorithm
reversrArray.cpp
#include <iostream> using namespace std; // Function to reverse an array from start to end void reverseArray (int arr[], int start, int end) { while (start < end) { int value = arr[start]; arr[start] = arr[end]; arr[end] = value; start++; end--; } } // Utility funct...
ALGO
0.99948
5.231821
{ "github_metadata": { "branch": "main", "commit_count": 73, "repo_created_at": "2022-06-21T17:17:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1f3a473e83b...
acbdec14-6243-4344-b2bb-5ff13cc18a6f
transgwender/Advent_of_Code_2022
day7.cpp
using namespace std; #include <iostream> #include <string> #include <utility> #include <map> #include <vector> #include "Helpers/HelperFunctions.h" class Item { protected: string name; int size; Item* parent; public: Item(string name, int size, Item* parent) { this->name = std::move(name); this->s...
TOOL
0.982049
4.948764
{ "github_metadata": { "branch": "main", "commit_count": 36, "repo_created_at": "2022-11-30T06:31: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": "2d4f4c96354...
a72e637a-dffa-4a49-b38c-d098617984c6
soyoung47/study_coding_w-LSY
soyoung/004. 2805(농작물수확하기).cpp
#include<iostream> using namespace std; int main(int argc, char** argv) { int test_case; int T; cin >> T; int N, sum; int** farm; for (test_case = 1; test_case <= T; ++test_case) { cin >> N; farm = new int* [N]; for (int i = 0; i < N; i++) { fa...
ALGO
0.999738
3.856179
{ "github_metadata": { "branch": "master", "commit_count": 547, "repo_created_at": "2020-05-11T11:13: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": "58ce3494...
a165ab84-03be-4175-befd-429099298322
satwikgm/LeetCode
2439-minimize-maximum-of-array/2439-minimize-maximum-of-array.cpp
class Solution { public: #define ll long long bool fun(vector<ll> nums , int m) { if(nums[0] > m) { return 0; } ll mx = m; for(int i=nums.size()-1;i>0;i--) { if(nums[i] > m) { nums[i-1] += (nums[i] - m); ...
ALGO
0.999972
5.388102
{ "github_metadata": { "branch": "main", "commit_count": 1270, "repo_created_at": "2022-01-08T06:49: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": "8668a5b0d...
af085b7f-ddb0-49e7-a437-a6d6cde81492
VINESH08/DataStructures
LinkedList/Dll.cpp
#include <iostream> using namespace std; struct node { int data; node *next; node *prev; }; struct ListHead { int count; node *head; node *rear; }; class Dll { public: ListHead *Dllhead; node *ploc; Dll() { Dllhead = new ListHead(); Dllhead->count = 0; Dll...
ALGO
0.999835
4.45308
{ "github_metadata": { "branch": "main", "commit_count": 78, "repo_created_at": "2023-09-17T17:49: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": "cc92f5777b9...
af1cb995-d123-4153-80b5-b73dab3dfc0b
chinmoy-kumar/DSA-with-CPP
Algorithm/graph/depth_first_search(DFS)/detect_cycle_in_undirected_graph_using_dfs.cpp
#include <bits/stdc++.h> using namespace std; vector<int> adj_list[105]; bool vis[105]; int parent[105]; bool cycle; void dfs(int src) { vis[src] = true; for(int child : adj_list[src]){ if(vis[child] && parent[src] != child) cycle = true; if(!vis[child]){ parent[child...
ALGO
0.999988
5.86177
{ "github_metadata": { "branch": "main", "commit_count": 73, "repo_created_at": "2024-12-09T20:03:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b32b9b4ed5b...
743807a2-a030-4dc0-a368-d9c09ecc0247
nardo0905/CS-Uni-Course-Git
221024 Pract/task1.cpp
#include <iostream> int main() { // Напишете функция, която приема две дати и връща дали първата от тях е преди втората. int day1, month1, year1; int day2, month2, year2; std::cout << "First date: "; std::cin >> day1 >> month1 >> year1; std::cout << std::endl << "Second date: "; std::cin ...
ALGO
0.999273
4.877247
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2022-11-04T16:21: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": "2b348d8cff8...
ab58694d-c6ab-4e0b-a051-83ec789f3eb5
rayenbbs/CP4_Competitive_Programming_Book_Problems
UVA/Divide And Conquer/Bisection Method and BSTA/UVA_12032.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int, int> #define pll pair<long long, long long> #define vi vector<int> #define vii vector<vi> #define vll vector<long long> #define mii map<int, int> #define si set<int> #define sc set<char> #define umap unordered_map #define uset u...
ALGO
0.99983
3.528493
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2024-05-10T13:47: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": "6a8883fd94...
e62646d6-11f8-4a58-9a84-3c19d4d9e9c4
yopio/niepce-maya
src/bxdf/microfacet.cc
#include "microfacet.h" /* // --------------------------------------------------------------------------- */ namespace niepce { /* // --------------------------------------------------------------------------- // Microfacet Distribution // --------------------------------------------------------------------------- */ M...
ALGO
0.997055
5.872837
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2017-12-10T06:55: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": "0ff25dda12...
36517b3b-c9e8-4f6c-85e9-0319f228dfe8
vertohod/daemons
chatd/swarm/key_store.h
#ifndef KEY_STORE_H #define KEY_STORE_H #include <unordered_set> #include <memory> #include <set> #include "key_store_interface.h" #include "key_interface.h" #include "answer.h" #include "record.h" #include "types.h" #include "log.h" namespace swarm { template <typename T> struct owner_less { bool operator()(co...
TOOL
0.90159
4.800191
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2017-09-22T12:39: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": "86b6f463bd...
16a47c22-9483-45c4-bd71-3af62882400f
josalv2018/TreeSeeg
src/archive/getvolume.cpp
//<NAME> - <EMAIL> #include <treeseg.hpp> float maxheight(float dbh) { //m -> 41.22 * dbh ^ 0.3406 //ci_u -> 42.30 * dbh ^ 0.3697 float height = 42.30 * pow(dbh,0.3697) + 5; return height; } float maxcrown(float dbh) { //m -> 29.40 * dbh ^ 0.6524 //ci_u -> 30.36 * dbh ^ 0.6931 float extent = 30.36 * pow...
ALGO
0.996068
5.52226
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2021-01-08T16:27: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": "e680bff9d...
bad96774-0623-4474-9ca1-38ac550a9711
CodeTest-StudyGroup/Code-Test-Study
ChanhuiSeok/[5]백준/17497-계산기.cpp
#include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <set> #include <bitset> #include <map> using namespace std; #define PLUS 0 #define MINUS 1 #define MUL 2 #define DIV 3 string oper[4] = { "[+]","[-]","[*]","[/]" }; // 덧셈, 뺄셈, 곱셈, 나눗셈 long long N;...
ALGO
0.999925
3.994654
{ "github_metadata": { "branch": "master", "commit_count": 1647, "repo_created_at": "2020-04-05T11:06:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1145, "forks": 167, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c16...
5de6175b-d99e-46ed-96f3-ff9cbdb2f3b8
satya9500/TE-assignments
COMP-B/CN/Assignments/A2/7343/Assign2_Sender.cpp
//<NAME> #include <bits/stdc++.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/types.h> #include <netinet/in.h> #include <unistd.h> using namespace std; string strToBinary(string s) { int n = s.length(); string bin = ""; for (int i = 0; s[i] != '\0'; i++) { // convert each char to ASCII value ...
ALGO
0.990107
4.535201
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2020-10-04T15:03:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 12, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dfbc6b37...
b9c1130b-f082-4fd5-8022-33b2afa21f56
Prahmodh-Raj1/DSA-Solutions
Two pointers/Longest subarray having sum k(ALL POSITIVES).cpp
https://takeuforward.org/data-structure/longest-subarray-with-given-sum-k/ //TC: O(N) SC: O(1) int getLongestSubarray(vector<int>& a, long long k) { int n = a.size(); // size of the array. int left = 0, right = 0; // 2 pointers long long sum = a[0]; int maxLen = 0; while (right < n) { // if...
ALGO
0.999926
5.554957
{ "github_metadata": { "branch": "main", "commit_count": 510, "repo_created_at": "2022-01-07T11:57:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8f5156be84...
2e7315f4-e39a-4178-85bc-1d57432d5bcb
DebarghaNath/CN_LAB_PROJECT
Gradient_Descent.cc
#include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/internet-module.h" #include "ns3/point-to-point-module.h" #include "ns3/applications-module.h" #include "ns3/drop-tail-queue.h" #include "ns3/tcp-cubic.h" #include "ns3/tcp-vegas.h" #include <iomanip> #include <fstream> using namespace ns3; us...
ALGO
0.999694
5.061115
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2025-04-07T08:37:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4026c8b566e...
926c4b36-47e4-4d7d-bd63-6a46669e76eb
MarinaPaley/Demo-CPP
Task 1-3/main.cpp
#define _USE_MATH_DEFINES // for C++ #include <cmath> #include <iostream> double ConvertGramsToKgs(const double mass); double GetKineticEnergy(const double mass, const double velocity); int main() { double massInGrams, velocity; std::cout << "Enter mass in grams and velocity in m per sec\n"; std::cin >> m...
TOOL
0.909434
5.352119
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2021-02-24T15:05:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 2, "pull_requests": 1 }, "file_meta": { "content_id": "75f40a9bc...
77d6735f-02a6-423e-8295-b8b927b9ffc1
AyVeeKay/ScientificWork
Pandore/pandore/src/operatorsP0/segmentation/pgaussaggregation.cct
/* -*- mode: c++; c-basic-offset: 3 -*- * * Copyright (c), GREYC. * All rights reserved * * You may use this file under the terms of the BSD license as follows: * * "Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met...
ALGO
0.999411
5.330893
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2018-12-13T12:43: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": "0d95f8559...
91e68f33-88c2-43d4-b630-cf3ea89173f9
skidi3/leetcode
Array/increasing-triplet-subsequence.cpp
/* Question: Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such indices exists, return false. Example 1: Input: nums = [1,2,3,4,5] Output: true Explanation: Any triplet where i < j < k is valid. Example 2: Input: nums...
ALGO
0.99998
5.722513
{ "github_metadata": { "branch": "main", "commit_count": 165, "repo_created_at": "2021-04-17T02:16:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cb43d00b23...
263ef66e-8ca2-417e-a11a-cec674f2b41b
LutzGross/esys-escript.github.io
trilinos_source15/packages/kokkos/algorithms/src/std_algorithms/impl/Kokkos_Reverse.hpp
//@HEADER // ************************************************************************ // // Kokkos v. 4.0 // Copyright (2022) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Governmen...
ALGO
0.998027
7.601886
{ "github_metadata": { "branch": "master", "commit_count": 5724, "repo_created_at": "2020-08-10T02:31:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 34, "forks": 15, "issues": 63, "pull_requests": 0 }, "file_meta": { "content_id": "b436...
649443c5-7f8e-46c0-8648-bd3d50022af2
Huawei-Robot/Cpp_week3
J.cpp
//#include <iostream> //#include <algorithm> // //using namespace std; //const int M = 1e5 + 5; //char ch[M]; //int n, k; //int a[M]; // //int func() { // int s = 0, t = 0, ans = 0; // int cnt = 0; // while (t < n) { // if (a[t] == 0) cnt++; // while (cnt > k) { // if (a[s] == 0) cnt--...
ALGO
0.999967
3.922785
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-08-20T09:01: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": "97056dcf82f9...
bd5afa90-e15e-449f-894b-b86a3339667c
st-ario/rayme
2d_samples/pmj02_162.inl
{std::array<float,2>{0.956257463f, 0.112481646f}, std::array<float,2>{0.473143756f, 0.72348249f}, std::array<float,2>{0.125091121f, 0.336972862f}, std::array<float,2>{0.510022044f, 0.960734427f}, std::array<float,2>{0.644742608f, 0.468958348f}, std::array<float,2>{0.0439355113f, 0.82461822f}, std::array<float,2>{0.2870...
ALGO
0.997355
3.165383
{ "github_metadata": { "branch": "main", "commit_count": 168, "repo_created_at": "2021-03-25T10:58:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aac866da12...
f3905b48-af4c-492b-a713-6067bdf9bda6
praneeth2212/Coding
neetcode/GFG graphs/word ladder 2.cpp
// link https://practice.geeksforgeeks.org/problems/word-ladder-ii/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=word-ladder-ii class Solution { public: vector<vector<string>> findSequences(string b, string e, vector<string> &w) { // code here unordered_set<string> st...
ALGO
0.999944
5.990093
{ "github_metadata": { "branch": "master", "commit_count": 118, "repo_created_at": "2023-05-25T09:30: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": "b929b2a3...
a2a3815c-716b-472a-a29c-c3f61766e697
aospapp/aosp
external/ComputeLibrary/arm_compute/runtime/NEON/functions/NEGaussianPyramid.h
/* * Copyright (c) 2016-2020 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 * ri...
TOOL
0.947505
7.261174
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2023-11-22T06:39:31.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 16, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d4e35ab12e6...
4f954fdd-eb4f-4268-a25f-b54300f7a117
mzib18/CompetitiveCoding
Distance ofNearestCellHaving1.cpp
//{ Driver Code Starts #include<bits/stdc++.h> using namespace std; // }Time Complexity - O(n*M) Space complexity - O(n*M) class Solution { public: //Function to find distance of nearest 1 in the grid for each cell. vector<vector<int>>nearest(vector<vector<int>>grid) { int n= grid.size(); int m = gri...
ALGO
0.99998
5.926265
{ "github_metadata": { "branch": "main", "commit_count": 99, "repo_created_at": "2023-04-03T16:40: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": "63bf42bdef7...
d5da50f8-9718-4462-940a-65e75ba715dc
fushime2/competitive
AOJ/aoj0048.cpp
#include <iostream> #include <algorithm> #include <map> #include <vector> #include <string> #include <cstdio> #include <cmath> using namespace std; int main(void) { ios::sync_with_stdio(false); double w; while(cin>>w) { if(w <= 48.00) { cout << "light fly" << endl; } else if(48...
ALGO
0.976014
3.14726
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2017-05-20T06:38: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": "1a16d3456f...
cb4336cd-e03c-4362-9edc-ca298549d87f
vallfors/kexjobb
src/state.cpp
#include "state.h" #include <tuple> #include <iostream> namespace state { State::State(){} State::State(mission::Mission mission) { robots.resize(mission.robots.size()); stations.resize(mission.stations.size()); for(int i = 0; i < int(robots.size()); i++) { robots[i].pos = mission.robots[i].s...
TOOL
0.970499
5.379555
{ "github_metadata": { "branch": "master", "commit_count": 61, "repo_created_at": "2019-03-01T12:18: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": "c1b3dc3e6...
197e0b65-97a3-49fb-9b2e-144341760056
makio93/competitive-atcoder
abc205/abc205_d/main.cpp
#include <bits/stdc++.h> //#include <atcoder/all> using namespace std; //using namespace atcoder; using ll = long long; #define rep(i, n) for (int i=0; i<(int)(n); ++(i)) #define rep3(i, m, n) for (int i=(m); (i)<(int)(n); ++(i)) #define repr(i, n) for (int i=(int)(n)-1; (i)>=0; --(i)) #define rep3r(i, m, n) for (int...
ALGO
0.999983
3.910537
{ "github_metadata": { "branch": "main", "commit_count": 925, "repo_created_at": "2021-04-23T16:25: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": "b555e21873...
a974a9ff-4921-4d37-b932-a6a9944ae7d6
Akiko0210/Competitive-programming
club/2024/Aug 9/L.cpp
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define ss second #define ff first #define pb push_back #define pii pair<int, int> #define INF INT_MAX using namespace std; void debug_out() { cerr << endl; } template<typename Head, typename... Tail> void debug_out(Head H, Tail... T) { cerr <...
ALGO
0.999822
3.893895
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2024-01-11T06:51: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": "e53508f91ad8...
0d494699-6e09-47dc-b4c5-cda587389166
ishandutta2007/codeforces-t
t90tank/normal/487/B.cpp
#include <bits/stdc++.h> using namespace std; const int maxn = 200000; int n, s, l; int h1[20][maxn]; int h2[20][maxn]; int a[maxn]; int sum[maxn]; int f[maxn]; bool check( int l, int r ) { int k = int( log( r - l + 1 ) / log(2) ); return max( h2[k][l], h2[k][r-(1<<k)+1] ) - min( h1[k][l], h1[k][r-(1<<k)+...
ALGO
0.999855
3.89583
{ "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": "bafff9eebad4...
5cb3c74c-492b-481d-883a-34c785e50f43
thumlx12/leetcode
101-150/109. Convert Sorted List to Binary Search Tree.cpp
// // Created by sensetime on 5/2/17. // #include <string> #include <iostream> #include <cstring> #include <vector> #include <climits> #include <math.h> #include <algorithm> #include <stack> #include <unordered_map> #include <stdlib.h> #include <time.h> #include <queue> using namespace std; struct TreeNode { int ...
ALGO
0.999993
5.869676
{ "github_metadata": { "branch": "master", "commit_count": 89, "repo_created_at": "2017-03-19T04:26: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": "db60aaa86...
8c5bc1b2-c5de-46d8-ab1f-6a30926fcbcf
CyFI-Lab-Public/RetroScope
frameworks/native/services/surfaceflinger/clz.h
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
ALGO
0.987753
6.449358
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2016-05-15T23:49:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 120, "forks": 43, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "7487d3...
1e325462-70ff-4af7-bf87-995b56d7cb51
jedwardsol/aoc2015
day7/day7.cpp
#include <cassert> #include <cstdint> #include <string> #include <vector> #include <map> #include <variant> #include <iostream> #include <sstream> #include <format> #include <algorithm> #include <numeric> #include <ranges> using namespace std::literals; #include "include/thrower.h" extern std::istringstream ...
ALGO
0.998432
5.911255
{ "github_metadata": { "branch": "main", "commit_count": 39, "repo_created_at": "2021-12-22T17:21: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": "b80f9532d25...
78bad11d-fedb-4efb-bf8c-bb862821d817
HiImKing1509/Learning_Algorithm
Level 1300/Reverse String.cpp
/*------------------------------------------------------------------------* | User: <NAME> | | Degree: Student - Formal University | | Study Computer Science at University of Information Technology | | Country: Viet Nam ...
ALGO
0.999965
4.817001
{ "github_metadata": { "branch": "main", "commit_count": 399, "repo_created_at": "2021-10-08T02:57:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9f22cb93c3...
6dc888cb-6932-41c4-bcbc-87ba17848bf0
prokotg/metaheurystyki
MetaheuristicsCPP/Lab4.cpp
#include "BinaryCrossovers.h" #include "BinaryGeneticAlgorithm.h" #include "BinaryKnapsackGeneticAlgorithm.h" #include "BinaryKnapsackSelections.h" #include "BinaryMutations.h" #include "BinaryRandomSearch.h" #include "OptimizationResult.h" #include "RealCMAES.h" #include "RealEvolutionStrategy11.h" #include "RealMutat...
ALGO
0.999576
4.12072
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2022-03-19T19:04: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": "62a6efc6c99...
bfa00a15-0294-415a-9503-a65d150ab4d9
imsure/tech-interview-prep
leetcode/C++/bst_iterator_173.cpp
#include "common.hpp" // Reuse the code from kth_smallest_bst_230.cpp, rebuild the // tree with TreeNodeWithCount in constructor in O(n) time. // Then next() runs in O(h) time and hasNext() runs in O(1) time. // Definition for a binary tree node. struct TreeNode { int val; TreeNode *left; TreeNode *right; Tre...
ALGO
0.999854
5.956408
{ "github_metadata": { "branch": "master", "commit_count": 439, "repo_created_at": "2017-06-12T22:14: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": "cff84527...
b7300ef0-875e-4a0c-ae1f-90a748539d21
knockcat/Leetcode
2709-greatest-common-divisor-traversal/2709-greatest-common-divisor-traversal.cpp
class Solution { int getf(vector<int> &f, int x) { return f[x] == x ? x : (f[x] = getf(f, f[x])); } void merge(vector<int> &f, vector<int> &num, int x, int y) { x = getf(f, x); y = getf(f, y); if (x == y) { return; } if (num[x] < num[y]) { ...
ALGO
0.999986
5.437676
{ "github_metadata": { "branch": "master", "commit_count": 3603, "repo_created_at": "2022-01-15T12:41:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 500, "forks": 122, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c19...
6bd0f63a-5054-4111-9f72-cb7a96d522f3
hackswang/HWLeetcode
C++/_1500/1160_find-words-that-can-be-formed-by-characters.cpp
#include <iostream> #include <unordered_map> using namespace std; // https://leetcode.cn/problems/find-words-that-can-be-formed-by-characters/ class Solution { public: int countCharacters(vector<string>& words, string chars) { int result = 0; // unordered_map<int, int> cache; unor...
ALGO
0.999917
5.887354
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2023-08-05T15:15: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": "ce47602da58...
42acf4fa-6d7d-40d3-b1e3-fc81238770fc
varunswing/GeeksForGeeks
dynamic programming/MinimumSumPartition.cpp
// { Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution{ public: int minDiffernce(int arr[], int n) { // Your code goes here int s=0 ; for(int i=0; i<n; i++ ){ s+=arr[i]; } bool t[n+1][s+1]; for(int ...
ALGO
0.999891
5.179105
{ "github_metadata": { "branch": "master", "commit_count": 173, "repo_created_at": "2020-07-16T04:52:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 35, "forks": 16, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6acf0b...
6c09cf2e-20b0-4a48-b85b-906d023c6066
Ceebs93/THDM_T3PS_scanner
packages/MG5_aMC_v3_1_0/madgraph/iolibs/template_files/matrix_madevent_group_v4_hel.inc
SUBROUTINE SMATRIX%(proc_id)s(P,ANS) C %(info_lines)s C C MadGraph5_aMC@NLO for Madevent Version C C Returns amplitude squared summed/avg over colors c and helicities c for the point in phase space P(0:3,NEXTERNAL) C %(process_lines)s C IMPLICIT NONE C C CONSTANTS C Include 'genps.inc' Include 'ma...
ALGO
0.98222
3.915207
{ "github_metadata": { "branch": "master", "commit_count": 199, "repo_created_at": "2019-05-21T13:14:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8ce32b55...
073fc882-2d82-444c-b012-b097fde757a8
hayashi-ryo/atcoder
docker/problems/cpp/ABC/abc331/a/main.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, x) for (int i = 0; i < (x); i++) int main() { // 入力 int M, D; cin >> M >> D; int y, m, d; cin >> y >> m >> d; // 処理 int ansY = y, ansM = m, ansD = d; // 初期値を設定 ansD++; // 次の日にする if (ansD > ...
ALGO
0.999289
3.630147
{ "github_metadata": { "branch": "main", "commit_count": 313, "repo_created_at": "2021-06-19T06:59:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "99759967b7...
8f17461d-83d4-4e8e-a042-d55e25590abc
NAVNEET-KHARB/LeetCode
Algorithms/Medium/3202 Find The Maximum Length Of Valid Subsequence II/FindTheMaximumLengthOfValidSubsquenceII.cpp
#include <bits/stdc++.h> using namespace std; // Runtime - 117ms || Memory - 88.06 MB class Solution { public: int maximumLength(vector<int> &nums, int k) { int n = nums.size(); vector<vector<int>> dp(n, vector<int>(k, 1)); fillDPTable(nums, k, dp); return findMaxSubsequenceLe...
ALGO
0.999758
5.588416
{ "github_metadata": { "branch": "master", "commit_count": 2954, "repo_created_at": "2024-03-01T15:01: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": "3c1be4b...
db0062b8-bf29-4b7b-a37f-a2335448294c
OmarElSiwy/Competitive-Programming-Solutions
CCC/2013/2013S3.cpp
#include <bits/stdc++.h> #include <string> #pragma GCC target ("avx2") #pragma GCC optimization ("O3") #pragma GCC optimization ("unroll-loops") using namespace std; typedef long long ll; int dp1[] = {0, 1, 3}; int dp2[] = {0, 1, 2, 3, 4, 6} int dp3[] = {0, 1, 2, 3, 3, 4, 5, 6, 7, 9} int scores[5] = {0}; string ga...
ALGO
0.999876
3.457589
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2022-09-10T13:50: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": "2ecfe47aca51...
21ce0a82-2d61-43b7-b9dc-1893fd686a4e
bielupc/ap3
jutge/Greedy_Algorithms/petrol_stations.cc
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main () { int x, D, n; while (cin >> x >> D >> n) { vector<int> stations(n); for (int i = 0; i < n; i++) { cin >> stations[i]; } sort(stations.begin(), stations.end()); if (n == 0){ cout << 0 ...
ALGO
0.999901
3.856836
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2023-09-29T08:05: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": "d4950796b...
b8ff1a67-f5ee-468a-899c-80e6d94839bc
aklk1ng/code
cpp/leetcode/641.设计循环双端队列.cpp
#include <bits/stdc++.h> using namespace std; struct Node { int val; Node *pre, *next; Node(int _val) : val(_val), pre(nullptr), next(nullptr) {} }; class MyCircularDeque { private: Node *head, *tail; int size; int capacity; public: MyCircularDeque(int k) : head(nullptr), tail(nullptr), size(0), capac...
ALGO
0.998189
4.970949
{ "github_metadata": { "branch": "main", "commit_count": 495, "repo_created_at": "2022-02-09T13:42: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": "8cc2f78b1c...
de01926b-4d7d-48e1-ba1f-c1503e14ea01
gaporf/discrete-math-2term-lab
3/C/main.cpp
#include <iostream> #include <fstream> #include <vector> #include <string> #include <queue> void dfs(char v, std::vector<std::vector<std::string> > &g, std::vector<bool> &visit, std::vector<bool> &useless) { visit[v - 'A'] = true; for (auto &s : g[v - 'A']) { bool go = true; for (auto &c : s) {...
ALGO
0.999696
3.644288
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-05-27T07:26: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": "eda2d850b2...
bbbb26e9-afdd-4157-9cde-85ae89959c4f
yajunseo/Algoritm
breadth_first_search/4179_불.cpp
#include <iostream> #include <queue> #include <utility> #include <tuple> using namespace std; char board[1000][1000] = { "X"}; int jihunVisit[1000][1000] = { 0 }; int fireVisit[1000][1000] = { 0 }; int jihunTime[1000][1000] = { 0 }; int fireTime[1000][1000] = { 0 }; int dx[] = { -1, 1, 0, 0 }; int dy[] = { 0, 0 ,1, ...
ALGO
0.99963
4.059535
{ "github_metadata": { "branch": "master", "commit_count": 101, "repo_created_at": "2020-01-02T14:54: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": "16c2fc32...
6e7d073e-0bf7-4aaa-b7cf-c8f37789f353
nmante/cracking
chap-2/cpp/2-5.cpp
#include <iostream> #include "ll/linkedlist.hpp" #include <map> /* * Dictionary Solution Start time: 358pm * Dictionary Solution End time: 415pm * * Two runners solution start: 419pm * Two runners solution end: * * * Problem: Given a circular linked list implement an algorithm which returns * a node at the...
ALGO
0.999637
5.632804
{ "github_metadata": { "branch": "master", "commit_count": 49, "repo_created_at": "2016-10-25T21:35:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "16ab7c246...