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
d51b3b6e-0599-41ca-a3cf-6b6159e01b27
MahendraDani/problem-solving
src/day-34/a1806.cpp
// Date : 30.12.2024 // Walking Master #include <iostream> #include <bits/stdc++.h> using namespace std; // WA on hidden test case void solve() { int a, b, c, d; cin >> a >> b >> c >> d; if (d < b) { // when dest in below src // S(10,4) D(10,3) => -1 cout << -1 << "\n"; // cout << "MY BAD\n";...
ALGO
0.999794
4.280068
{ "github_metadata": { "branch": "main", "commit_count": 78, "repo_created_at": "2024-11-18T13:59: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": "09d1efdd6b6...
dc371cc9-828b-46b2-8a42-1b633d44e1ec
msyksphinz-self/training
program/opencl/raytrace/raytrace/ray_kernel.cpp
#define INF 2e10f #include "./raytrace.h" const float fscale (1.5f) float hit(Sphere *s, float ox, float oy, float *n) { float dx = ox - s->x; float dy = oy - s->y; float radius = s->radius; if (dx*dx + dy*dy < radius * radius) { float dz = sqrtf(radius * radius - dx*dx - dy*dy); *n = dz / sqrtf(radius * r...
ALGO
0.987627
4.327748
{ "github_metadata": { "branch": "master", "commit_count": 546, "repo_created_at": "2015-05-06T08:03:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 34 }, "file_meta": { "content_id": "6652dc5...
0b43f4b4-f117-43ff-a269-294d21421c10
allwellll/cf_code_jiangly
1515/1515H-H-PhoenixandBits.cpp
// url:https://codeforces.com/contest/1515/problem/H // time:2021-05-02 22:04:41 // name:H-PhoenixandBits #include <bits/stdc++.h> using i64 = long long; using u64 = unsigned long long; using u32 = unsigned; struct Node { int cnt; int type; int tag; int both; int d; Node *lc, *rc; }; Node *null...
ALGO
0.999874
5.686007
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2022-10-17T23:31:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 97, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5e6d4e8333...
4a971f37-6312-4302-85d4-014e3092cca3
timwee/skyzh-vectordb-cpp-with-notes
src/optimizer/vector_index_scan.cpp
#include <memory> #include <optional> #include "binder/bound_order_by.h" #include "catalog/catalog.h" #include "catalog/column.h" #include "concurrency/transaction.h" #include "execution/expressions/array_expression.h" #include "execution/expressions/column_value_expression.h" #include "execution/expressions/comparison...
ALGO
0.917921
7.140175
{ "github_metadata": { "branch": "main", "commit_count": 446, "repo_created_at": "2025-07-13T18:05:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a680fde5fd...
8f390c86-bfe1-403a-8677-1bf32cd01440
ckproc/face_sdk_test
APIs/test.cpp
#include "detect_embed_search_verification.hpp" #include <config4cpp/Configuration.h> //#include "detect_embed.hpp" #include<iostream> #include <vector> #include <string> #include <math.h> #include <iostream> #include <fstream> #include <sstream> #include <map> #include <algorithm> #include <opencv2/imgproc/imgproc.hpp...
ALGO
0.987541
3.073139
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2018-03-27T02:57:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "ebb8d88aae...
598238ce-3029-4305-bb63-7dc7c9afb138
Tarunagg1/Ds_Alog_notes
Markov_Matrix/Markov_Matrix.cpp
/* Markov Matrix is a matrix in which the sum of each row is equal to 1. */ #include<iostream> using namespace std; const int x = 10; void markovMatrix(double matrix[][x], int row, int col) { int count = 0; for (int i = 0; i < row; i++) { double sum = 0; // Calculating sum ...
ALGO
0.999802
4.194387
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-01-19T04:18:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7434f6cb90...
e015a2f3-bddd-4ebb-93c5-e54e53da35be
devparkk01/cpp
Algorithms/Dp/goldMine.cpp
int maxGold(int n, int m, vector<vector<int>> M) { int dp[n][m] ; for (int i = 0 ; i < n ; ++i ) dp[i][0] = M[i][0] ; for (int j = 1 ; j < m ; ++j ) { for (int i = 0 ; i < n ; ++i) { dp[i][j] = M[i][j] ; int temp = dp[i][j - 1 ] ; if ( i - 1 >= 0) { ...
ALGO
0.999951
4.237916
{ "github_metadata": { "branch": "main", "commit_count": 132, "repo_created_at": "2020-07-28T08:16:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9cdf1df320...
518d42ae-d17c-466b-98f3-53c46e4a3269
Kuliyalrashmi/DSA_Questions
string/StringToInteger.cpp
/* Leetcode Question No 8 String To Integer(atoi) Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function). The algorithm for myAtoi(string s) is as follows: Read in and ignore any leading whitespace. Check if the next character (if not already ...
ALGO
0.999938
5.046128
{ "github_metadata": { "branch": "main", "commit_count": 1315, "repo_created_at": "2023-10-28T09:04: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": "a12af6774...
ca3ddd7f-7779-44ec-a420-9f5186b54b53
ethan-enhe/mycode
contest/cf/1718/c/c.cpp
// #pragma GCC optimize("O3,unroll-loops") // #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") // #pragma GCC target("sse,sse2,sse3,ssse3,sse4.1,sse4.2,avx,avx2,bmi,bmi2,lzcnt,popcnt") #include <vector> #ifdef LOCAL #define dbg(x) cerr << #x << " = " << (x) << endl #else #define dbg(...) 42 #define NDEBUG #endif #inclu...
ALGO
0.999927
4.11389
{ "github_metadata": { "branch": "master", "commit_count": 384, "repo_created_at": "2022-12-02T18:12:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b8205687...
1e3d13cd-39da-44d9-8095-15ddd90dffda
bsdfbenchmark/bbm
include/bsdfmodel/ngan.h
#ifndef _BBM_NGAN_H_ #define _BBM_NGAN_H_ #include "bsdfmodel/aggregatemodel.h" #include "bsdfmodel/lambertian.h" #include "bsdfmodel/ward.h" #include "bsdfmodel/wardduer.h" #include "bsdfmodel/phong.h" #include "bsdfmodel/lafortune.h" #include "bsdfmodel/cooktorrance.h" #include "bsdfmodel/ashikhminshirley.h" /*****...
ALGO
0.993715
6.496906
{ "github_metadata": { "branch": "main", "commit_count": 113, "repo_created_at": "2023-07-28T18:14:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "08917064a6...
f40c25b5-bdac-4a4e-993d-0c844638ff10
dhrubajyotinath6/Preparation
LEETCODE-QUESTIONS-main/2256-minimum-average-difference/2256-minimum-average-difference.cpp
/* 2 5 3 9 5 3 2 7 10 19 24 27 0 1 2 3 4 5 here n = 6 */ class Solution { public: int minimumAverageDifference(vector<int>& nums) { long long prefixSum = 0; long long totalSum = 0; for(...
ALGO
0.999965
5.896593
{ "github_metadata": { "branch": "master", "commit_count": 465, "repo_created_at": "2022-01-24T17:01:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1254dde3...
38b9f288-2003-44dd-9e41-db1f5530bf12
gozzarda/pcg_dfa
solve.cpp
#include <algorithm> #include <cassert> #include <chrono> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <random> #include <set> #include <stack> #include <vector> using namespace std; // Types for representing graph vertices and edges typedef uint8_t vertex_t; typedef pair<vertex_t, ...
ALGO
0.999869
5.591466
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2019-11-18T04:03: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": "2a1d44ed841...
3a567a79-57d7-4daf-9350-8f499fe67b8e
mchill/miscellaneous
independent-study/assignment4/main.cpp
//<NAME> //Assignment 4 /*Objectives: 1. Use an "if" statment 2. Process a simple strong 3. Reinforce Assignment 1, 2, and 3 objectives */ #include <iostream> using namespace std; int get_employee_number(int employee_number); float get_hours_worked(float hours_worked); float get_hourly_rate(float hourly_...
ALGO
0.986166
3.245705
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2017-03-20T16:42:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "e59cb9e5581...
d1760d85-0aad-4f58-9429-17b74cfa87cc
NVIDIA/tensorflow
tensorflow/lite/experimental/ruy/pack_common.h
/* Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
ALGO
0.9989
3.294521
{ "github_metadata": { "branch": "r1.15.5+nv23.03", "commit_count": 64202, "repo_created_at": "2020-05-13T21:34:32.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1146, "forks": 178, "issues": 41, "pull_requests": 9 }, "file_meta": { "conten...
48e63d3f-1ef3-4bd1-bf8a-e5aa1eb167ae
amoljore7/10-Sorting
Merge_Sort.cpp
/* Insertion sort Time complexity Best case: O(n2) Time complexity Worst case: O(n2) In this algorithm we have to insert the element at appropriate position while sorting. */ #include<stdio.h> #include<malloc.h> // This function accept base address of an array // and number of elements in that array void merge(...
ALGO
0.99997
4.859547
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-01-14T11:17: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": "5be7ad0f4d...
2728d9d6-cd28-4489-866e-248334af02f7
SylpheM/gift-factory
GiftFactoryCuda/src/Utils.cpp
#include "Utils.hpp" GLubyte * loadPPM(const char * const fn, unsigned int& w, unsigned int& h) { char head[70]; int i, j; int d; GLubyte * img = NULL; FILE * f; f = fopen(fn, "r"); if(f == NULL) { fprintf(stderr,"Error in function readPPM : %s doesn't exist\n",fn); return 0; } (void)fgets(head,70,f); ...
TOOL
0.920296
4.237631
{ "github_metadata": { "branch": "master", "commit_count": 94, "repo_created_at": "2015-03-19T09:19: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": "13d725152...
453b450d-16cb-43aa-9b3d-eb2eed955825
mick909/gcj
gcj2012/r1C/cl_2.cpp
#include <iostream> #include <map> using namespace std; #define rep(i,b,e) for(int i=b;i<e;++i) typedef long long ll; typedef pair<int,int> key_t; int T; int N,M; ll a[100]; int A[100]; ll b[100]; int B[100]; map<key_t,ll> DP[100][100]; ll solve(int i, int j){ if (i==N || j==M) return 0; if (DP[i][j].find...
ALGO
0.999996
3.488208
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2013-04-27T08:41:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 12, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e5502cf4...
b1fe2adb-2229-4e49-b7f2-2fc80881b699
yujinn00/Wanted-PotenUp
Algorithm/10.AStarPathFinding/Main.cpp
#include <iostream> #include <vector> #include "Node.h" #include "AStar.h" int main() { // 그리드 생성. // 0: 이동 가능. // 1: 이동 불가 (장애물). // 2: 시작 위치. // 3: 목표 위치. std::vector<std::vector<int>> grid = { { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1 }, { 1, ...
ALGO
0.999741
5.44573
{ "github_metadata": { "branch": "main", "commit_count": 40, "repo_created_at": "2024-12-27T01:37: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": "f32345e8b8e...
bdcef23d-19fc-4277-b6d6-fa4799fa09da
VD42/AI18
src/sym.h
#include "model/Rules.h" #include <cmath> #include <optional> #include <vector> #include <algorithm> namespace sym { static bool inited = false; static double MIN_HIT_E; static double MAX_HIT_E; static double GRAVITY; static double MAX_ENTITY_SPEED; static double ROBOT_MAX_GROUND_SPEED; static double ROBOT_ACC...
ALGO
0.930866
3.760253
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2021-04-06T11:41: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": "4aaab017e5...
680fce27-a17e-4e39-8394-01d834bc4619
DotStarMoney/TLG
dev/src/audio/karlsenfl3filter.h
#ifndef AUDIO_KARLSENFL3FILTER_H_ #define AUDIO_KARLSENFL3FILTER_H_ #include <array> #include "audio_filter.h" #include "audio_format.h" namespace audio { // An audio filter with resonance ( of dubious quality >:] ) // // Code interpreted from: // http://musicdsp.org/showArchiveComment.php?ArchiveID=240 class Karlse...
TOOL
0.91536
6.897301
{ "github_metadata": { "branch": "master", "commit_count": 60, "repo_created_at": "2017-10-22T04:18: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": "e20e88efd...
f95088d8-cacd-47c3-852c-d4c2dc61c320
chiragV1/codehelp
mergesortrec.cpp
#include<iostream> using namespace std; int merge(int *arr, int s , int e) { int mid = s + (e-s)/2; int len1 =mid + 1 - s; int len2 = e - mid; int *first = new int[len1]; int *second = new int[len2]; int mainarrindex = s; for(int i=0;i<len1;i++) { first[i]= arr[mainarrindex++];...
ALGO
0.999989
4.92049
{ "github_metadata": { "branch": "main", "commit_count": 97, "repo_created_at": "2022-04-09T14:22: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": "4b4e1646ca6...
7a56f87e-a8a9-4932-9bb7-1c8452b9d636
imon0077/problem-solving
sum-of-N-numbers.cpp
/* problem Name : calculate the sum of the first N natural numbers link : https://ostad.app/dashboard/my-courses/648eb011f42b94819526c62a/module/648eb011f42b94819526c62e/assignment/648eb011f42b94819526c632 Description : Write a function to calculate the sum of the first N natural numbers. In this problem, you ...
ALGO
0.999969
6.196097
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2023-07-30T13:33: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": "bdc72777e88...
9abbc041-1fd3-47ed-b19b-7da5c04749cb
BackupTheBerlios/amanith-svn
trunk/src/rendering/gopenglconicalgrad.cpp
/**************************************************************************** ** $file: amanith/src/rendering/gopenglconicalgrad.cpp 0.3.0.0 edited Jan, 30 2006 ** ** OpenGL based draw board conical gradient functions implementation. ** ** ** Copyright (C) 2004-2006 Mazatech Inc. All rights reserved. ** ** This fil...
ALGO
0.989215
6.066816
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2015-08-12T13:01: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": "5bda1dd33...
d310e5a2-a3b1-4129-af38-6950634be7cc
arx/ArxLibertatis
src/util/IteratedHash.h
/* * Copyright 2017-2022 Arx Libertatis Team (see the AUTHORS file) * * This file is part of Arx Libertatis. * * Arx Libertatis is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Li...
ALGO
0.968419
7.090537
{ "github_metadata": { "branch": "master", "commit_count": 21738, "repo_created_at": "2011-01-17T00:53:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1019, "forks": 134, "issues": 0, "pull_requests": 8 }, "file_meta": { "content_id": "2a...
3d0ea279-cb44-4c3c-9861-86460d0b29aa
arafat-hasan/problem-solving
leetcode/Easy/maximum-depth-of-binary-tree.cpp
/* * FILE: maximum-depth-of-binary-tree.cpp * @author: <NAME> <opendoor.arafat[at]gmail[dot]com> * LINK: https://leetcode.com/problems/maximum-depth-of-binary-tree/ * DATE CREATED: 03-02-21 18:35:48 (+06) * LAST MODIFIED: 03-02-21 18:38:11 (+06) * VERDICT: Accepetd * VERSION: 1.0 * DESCRIPTION: Deleted code is ...
ALGO
0.999499
5.960403
{ "github_metadata": { "branch": "master", "commit_count": 236, "repo_created_at": "2017-10-16T19:27:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "269f00d2...
97238582-1320-47c6-bbcb-b16f1b710d18
y423610m/AtCoder
ABC/abc195/d/D.cpp
#include <bits/stdc++.h> using namespace std; const int MOD = 998'244'353; //const int MOD = 1000'000'007; const int INF = (1<<30)-1; const long long LINF = (1LL<<62)-1; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, n) for (int i = a; i < (int)(n); i++) #define repll(i, n) for (ll i = 0; i ...
ALGO
0.999956
3.94771
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2023-06-16T16:54: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": "2978e9bee...
ea897d06-83cb-4fc5-bc15-892af336293c
Tikitikitikidesuka/SolucionesAceptaElReto
105Ventas.cpp
#include <iostream> using std::string; typedef float c_float; typedef std::int_fast16_t c_int; const string DIAS[6] = { "MARTES", "MIERCOLES", "JUEVES", "VIERNES", "SABADO", "DOMINGO" }; inline bool semanaInput(c_float semana[6]) { c_float input; std::cin >> input; if(input =...
ALGO
0.999743
3.636372
{ "github_metadata": { "branch": "main", "commit_count": 148, "repo_created_at": "2022-01-04T22:01: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": "fb95726716...
184ba98d-8da9-42ef-a7d4-d3e829d8bdfb
ravipandya15/DSA_Algo_JAVA
Trees/Love_Bubber_Tree_Questions/Binary_Search_Tree/CN_Flatten_BST_To_A_Sorted_List.cpp
#include<iostream> #include<vector> #include<queue> #include<unordered_map> using namespace std; int main() { return 0; } template <typename T> class TreeNode { public : T data; TreeNode<T> *left; TreeNode<T> *right; TreeNode(T data) { this -> data = data; left = NULL; ...
ALGO
0.99992
4.350326
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2022-01-14T18: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": "e00eef39e...
f59f9746-56a2-4689-a0f5-7ee40b437f0e
LifeIsRightward/Baekjoon
Solved/Silver/Silver5_25497.cpp
#include <algorithm> #include <iostream> #include <stack> #include <string> #include <vector> using namespace std; // 이 문제는 L - R 스택, S - K 스택을 따로 관리하는게 맞는거 같아 // 난 하나로만 풀려다 보니까 문제가 생겼어 ㅇㅇ int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; int cnt = 0; char intmp; // 스크립트가 꼬...
ALGO
0.999581
3.974332
{ "github_metadata": { "branch": "main", "commit_count": 389, "repo_created_at": "2024-01-04T07:29:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "63bb77d9ea...
5fd9af5a-a13b-48e7-8291-1fa4791e031e
voravi/cpp-proggraming
phase 5/15.cpp
#include<iostream> #include<string.h> using namespace std; /* Lenght * hight... 10 * 4 = 40 feet */ void box() { long int hight,wight; cout << "A4 size in pixal : " << endl; cout << endl << "Hight : 3508" << endl << "Wight : 2480 " << endl << endl; hight = 3508; wight = 2480; cout << "One box size is...
TOOL
0.922583
3.105445
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-06-17T09:58: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": "79b2d31de9...
47f47788-ed3b-4017-a7c5-d054cb42624a
chahyeonnaa/Object-oriented-programming
HW#4_차현아/HW#4_함수 오버로딩 이해하기.cpp
/**************************************************/ /* HW#4 : 개선된 함수기능 */ /* 작성자 : 차현아 날짜 : 2021년 4월 2일 */ /* */ /* 문제 정의 : 4-1. 함수 오버로딩 이해하기 */ /*************************************************/ #include<iostream> #include<cstring...
ALGO
0.999468
4.141747
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2022-02-01T12:36:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "963b49abc...
4243b3a8-7174-4d7a-8c03-a3148bac368f
farmpiggie/competitive-programming
templates/graphs.cpp
// taken from https://github.com/VeryAmazed/My_Comp-Programming_Template/blob/main/Templates/graph.cpp, thanks Alan! // slight modifications from me // Djikstra's (from CPH) vector<vector<pll>> vec; // adjacency list, pairs are {node, weight} vector<ll> dist; // distance to all nodes, needs to be initialized to LLONG_...
ALGO
0.999451
4.293154
{ "github_metadata": { "branch": "main", "commit_count": 88, "repo_created_at": "2023-10-31T06:35: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": "2cff3707bc5...
617fc677-c128-424c-8415-89b4ae6bf940
sayand0122/Data-Structures-Algorithms-DSA-
C++/linked_list_doubly.cpp
#include <stdio.h> #include <stdlib.h> struct node { int data; struct node *next; struct node *prev; }; struct node *head, *newnode, *tail, *temp; void create() { head = NULL; newnode = (struct node *)malloc(sizeof(struct node)); printf("Enter data : "); scanf("%d", &newnode->data); newn...
ALGO
0.998346
3.910564
{ "github_metadata": { "branch": "main", "commit_count": 82, "repo_created_at": "2020-11-06T09:10:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 7, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "cb7c117ae0c...
9e609000-6f22-4b0b-ab99-a29ca1f0c535
zhangpengyf/foxrtc
foxrtc/webrtc/src/webrtc/modules/congestion_controller/delay_based_bwe.cc
/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
ALGO
0.940412
6.962016
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2016-12-22T14:53:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 40, "forks": 22, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "a53c9bd...
015fdb9b-fa16-477e-9314-eba8afe49463
valkyria-dev/valkyria
HttpServer.h
/* * Copyright (c) 2024 Valkyria.dev * * 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, publis...
WEB
0.937087
6.031091
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2024-01-21T09:37:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b48bf12791...
bf2bc9fd-3f96-4bb2-ab12-64d56cd2ba92
eitanembon/Competitive-Programming
SSSP/UVA12228_Transportation_System.cpp
/** * Ejercicio: UVA 12228 - Transportation System * * Autor: <NAME> * * Tiempo en UVA: 0.010s * * Compilado con c++ 11 */ #include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll INF = numeric_limits<ll>::max()/2; constexpr ll UNVISITED = numeric_limits<ll>::max(); constexpr l...
ALGO
0.999938
4.296682
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-07-18T03:45: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": "288afbf53cc5...
d324ebb9-5dee-40a4-bd96-c0ea4855a8b4
RegrowthStudios/SoACode-Public
SoA/Noise.h
/// /// Noise.h /// Seed of Andromeda /// /// Created by <NAME> on 8 Jul 2015 /// Copyright 2014 Regrowth Studios /// MIT License /// /// Summary: /// /// #pragma once #ifndef Noise_h__ #define Noise_h__ #include <Vorb/io/Keg.h> enum class TerrainStage { NOISE, SQUARED, CUBED, RIDGED_NOISE, ABS...
ALGO
0.988553
6.68667
{ "github_metadata": { "branch": "develop", "commit_count": 2563, "repo_created_at": "2018-06-03T17:37:50.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 329, "forks": 104, "issues": 5, "pull_requests": 1 }, "file_meta": { "content_id": "ba8...
dbdad490-47f7-4eb0-ba60-2d6432f8a6cb
anjalim28/Leet-Code
july 2023/day224.cpp
class Solution { public: int n, m; int t[1001][1001]; // taking &s1 and &s2 so that values go by reference. copy of s1, s2 is not made again and again. int solve(int i, int j, string &s1, string &s2) { if (i >= m && j >= n) { return 0; // when s1, s2 both are empty. ...
ALGO
0.999999
5.741661
{ "github_metadata": { "branch": "master", "commit_count": 322, "repo_created_at": "2022-12-28T17:03:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e2103e01...
2529d1f1-b22c-408c-8e5d-01798390ba5b
Starfy100/palindrome
palindrome.cpp
#include <iostream> #include <cstring> #include <stdlib.h> /* <NAME>. Palindrome: Program will read in a user input of up to 80 characters Program will determine if the string is a palindrome and will output accordingly Logic help recieved from <NAME> 9/13/19 */ using namespace std; int main() { int a = 0; //pl...
ALGO
0.990173
3.728406
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2019-09-20T15:43: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": "f69cadf639...
fad51754-1d81-4b2c-9743-2ab606a444ea
BritoAlv/cs
competitive_programming/R1300-1400/CakeAssemblyLine.cpp
// Problem: B. Cake Assembly Line // Contest: Codeforces - Codeforces Round 850 (Div. 2, based on VK Cup 2022 - Final Round) // URL: https://codeforces.com/problemset/problem/1786/B // Memory Limit: 256 MB // Time Limit: 1000 ms // Math Proof: // // Powered by CP Editor (https://cpeditor.org) #include <bits/stdc++.h> ...
ALGO
0.99956
4.319892
{ "github_metadata": { "branch": "main", "commit_count": 202, "repo_created_at": "2022-06-16T15:43:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3fb77d95f9...
9d654326-eef6-402a-a681-f85df3930d74
songqiang/leetcode
Word-Ladder-II.cpp
/* * <NAME> <<EMAIL>> 2013 * */ /* Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that: Only one letter can be changed at a time Each intermediate word must exist in the dictionary For example, Given: start = "hit" end = "cog" dict =...
ALGO
0.999908
5.355879
{ "github_metadata": { "branch": "master", "commit_count": 133, "repo_created_at": "2012-12-05T05:56: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": "03f0d23b...
493ed44d-c32c-4cea-a973-4d0adc94272a
rodrigoursi/PortFolio
REVENGE/fun.cpp
#include <iostream> #include <cstdlib> #include "fun.h" using namespace std; /////////// PARA PRIMER RONDA ////////// int lanzarDadosR1(int v[], int cant, int tam){ int resultadoLanzarDadosR1; for(int i=0;i<cant;i++){ v[i]=1+rand()%tam; resultadoLanzarDadosR1 = v[i]; } return resultad...
ALGO
0.992253
3.369787
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2022-01-30T14:20:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d8aae5f91de...
a054927d-a8dd-464d-99bb-d6b485dda699
Erennedirlo/cp
Codeforces/1743C.cpp
// Written by: Erennedirlo, 17/10/2022 #include <bits/stdc++.h> using namespace std; #define ll long long int main() { cout.tie(0); cin.tie(0); ios_base::sync_with_stdio(0); int t; cin >> t; while (t--) { int n; cin >> n; char lid[n + 1]; cin >> lid; vector<int> v(n); for (int i = 0...
ALGO
0.999912
5.095995
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-11-14T20:12: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": "58d27aecfd6d...
d78d8069-65c6-433a-a783-cf26723de422
phoenixx1/Robert-Lafore
Chapter-5/9.cpp
/* Repeat Exercise 8, but instead of two int variables, have the swap() function inter- change two struct time values (see Exercise 6). */ //author @Nishant #include <iostream> using namespace std; struct timee{ int hours, mins, secs; }; void swap(timee&, timee&); int main(){ timee time1, time2; cout <...
ALGO
0.989452
5.757974
{ "github_metadata": { "branch": "master", "commit_count": 61, "repo_created_at": "2019-11-26T14:00:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 53, "forks": 28, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "9daae2f...
96804330-64c6-4b16-acdc-0f908d5f162b
rushioda/PIXELVALID_athena
athena/Tracking/TrkExtrapolation/TrkExRungeKuttaPropagator/src/RungeKuttaPropagator.cxx
/* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ ///////////////////////////////////////////////////////////////////////////////// // RungeKuttaPropagator.cxx, (c) ATLAS Detector software ///////////////////////////////////////////////////////////////////////////////// #include "TrkExUt...
ALGO
0.998558
6.780272
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-01-19T03:53:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c9f5025c9a...
8e1b9ab2-fe66-4250-9d52-fbb63997b76b
MdAlSiam/My-Codeforces-Solutions
1391C.cpp
using namespace std; #include <bits/stdc++.h> #define ll long long int #define dd double #define scl(x) scanf("%lld", &x) #define scll(x, y) scanf("%lld %lld", &x, &y) #define scd(x) scanf("%lf", &x) #define scdd(x, y) scanf("%lf %lf", &x, &y) #define prl(x) printf("%lld\n", x) #define prll(x, y) printf("%lld %lld\n...
ALGO
0.999986
3.990924
{ "github_metadata": { "branch": "master", "commit_count": 201, "repo_created_at": "2020-01-05T11:40:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "56b939fa...
02ab9422-41ee-4c5d-98c6-726b8856c196
andreicito2/School-Projects
Fundamentals-of-Programing142-main/in-class/14_cpp_looping/loop_conversion.cpp
/************************************************************************* * * In-Class Exercises: Conversion between types of loops * * File Name: loop_conversion.cpp * Course: CPTR 142 */ #include <iostream> // for std::cout and std::cin streams int main() { // Convert the following for loop to a while...
ALGO
0.979177
4.031404
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-11-30T17:53: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": "33d6228b9456...
f35d5e4e-774c-4139-9474-ed523d4151c9
shahidul2k9/problem-solution
lightoj/1012 - Guilty Prince.cpp
#include <iostream> #include <cstdio> #include <queue> using namespace std; #define W 20 #define H 20 char g[W][H]; bool vis[W][H]; int lands,r,c; bool isOnGrid(int i, int j) { return (i>=0&&j>=0&&i<r&&j<c); } void bfs(int x,int y) { lands=1; int i,j; for(i=0; i<r; i++) for(j=0; j<c; j++) ...
ALGO
0.999442
4.006464
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2014-05-04T17:13:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 51, "forks": 57, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "ed46406...
c0b91e9f-8388-4ae4-81e0-3ff3f670e538
aditya2005uni/DSA_Leetcode
684-redundant-connection/redundant-connection.cpp
class Solution { public: int find(int i,vector<int>&par){ if(i==par[i]){ return i; } return par[i]=find(par[i],par); } void uni(int x,int y,vector<int>&par,vector<int>&rank){ int px=find(x,par); int py=find(y,par); if(px==py){ retur...
ALGO
0.999994
5.70063
{ "github_metadata": { "branch": "main", "commit_count": 280, "repo_created_at": "2025-04-23T08:38:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "06b34a3f02...
c42a6873-5e79-48cb-a07a-cc47c05e5754
Kawser-nerd/CLCDSA
Source Codes/CodeJamData/09/62/7.cpp
// GCJ 2009 World Finals (B) // Author: hos.lyric #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <cassert> #include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <set> #include <map> #include <utility> #include <algorithm> #include <bitse...
ALGO
0.999896
4.398361
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2019-09-30T05:38:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 22, "forks": 8, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "e9234fb5...
93d56443-cddf-4afe-a0f8-3e030290be70
surajiyer/Fluid-Simulation
FluidSim/src/main.cpp
#include "Inc.h" #include "SystemManager.h" #include <OpenGLBase/Include.h> #include <OpenGLBase/src/GLCore/GraphicsIncludes.h> #include <OpenGLBase/src/Example/GLExampleObject.h> #include <OpenGLBase/src/CGMain/MeshGen.h> #include <OpenGLBase/src/GLBase/Environment/Scene.h> #include "Trace.h" #include <iostream> #i...
ALGO
0.997861
4.259532
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2017-06-16T10:22:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 3, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "580f9afea...
9bbf7039-6920-4aee-b0c1-d99cd02242db
gaoxingda/kglab-knowhere
src/index/hnsw/faiss_hnsw.cc
// Copyright (C) 2019-2024 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
TOOL
0.92478
7.280463
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2025-02-13T02:45:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3e604f0cfa...
127bf117-7a1b-4168-a22a-bafb4e57e05d
noornabi-noor/Codeforces
A_Morning.cpp
#include <bits/stdc++.h> using namespace std; #define int long long #define ld long double #define lld long long double #define ull unsigned long long #define pll pair<int, int> #define M 1000000007 #define BISMILLAH ios_base::sync_with_stdio(0);cin.tie(0); #define ALHAMDULILLAH return 0; #define YES cout << "YES" <<...
ALGO
0.99989
4.345317
{ "github_metadata": { "branch": "main", "commit_count": 53, "repo_created_at": "2024-01-03T12:02: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": "98b7fdf05b2...
45edd679-7ce4-419b-bf3e-cf4586cded48
anuwu/Competitive-Programming
InterviewBit/Binary Search/Single_Element_in_Sorted_Array.cpp
int searchSingle (vector<int> &A, int l, int r) { if (l > r) return - 1 ; int mid ; mid = (l + r)/2 ; if (mid == 0) { if (A[mid] != A[mid+1]) return A[0] ; else return -1 ; } if (mid == A.size() - 1 && A[mid] != A[mid-1]) ...
ALGO
0.999968
4.161758
{ "github_metadata": { "branch": "master", "commit_count": 67, "repo_created_at": "2020-06-20T18: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": "98eee7cda...
2a080bc7-4484-43b5-955d-5eb266aef90e
rashwinr/grasp-rehabilitator
microcontroller_programs/MS_device3/MS_device3.ino
unsigned long sampleInterval = 1000/60; unsigned long sampleTimer; float varmeasl=0.9828712076, varmeasg1=0.23495, varmeasg2=0.033705, varprocl = 0.25, varprocg2 = 1.00E-2, varprocg1 = 1.00E-1; float Pc = 0.0, G = 0.0, noise = 1.0, Xp = 0.0, Zp = 0.0, Xe = 0.0, ul=0.0, ug1=0.0, ug2=0.0; float lp=1.0,gp1=1.0,gp2=1.0; v...
ALGO
0.988852
4.701459
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2019-02-22T16:11:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d0ace4df...
5c56cd5c-67bb-4f81-87eb-9d8638d0b7e9
KUNAL01011/Leetcode-optimal-solutions
Day-20.cpp
#include <bits/stdc++.h> using namespace std; class ListNode { public: int data; ListNode *next; ListNode *random; int val; ListNode(int data) { this->data = data; this->next = NULL; } }; class Node { public: int data; Node *next; int val; Node *random; ...
ALGO
0.999818
4.987657
{ "github_metadata": { "branch": "main", "commit_count": 39, "repo_created_at": "2024-07-15T02: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": "c78a69b07e3...
a281db6e-3e0b-4141-9113-615293b183f0
cowtony/ACM
Notes/graph_dijkstra.h
// Dijkstra O((E+V) log(V)) // For node from 0 to n: vector<long> dijkstra(const vector<vector<pair<int, long>>>& graph, int from_vertex = 0) { vector<long> distance(graph.size(), LONG_MAX); distance[from_vertex] = 0; priority_queue<pair<long, int>, vector<pair<long, int>>, greater<pair<long, int>>> pq...
ALGO
0.999401
5.890499
{ "github_metadata": { "branch": "master", "commit_count": 1420, "repo_created_at": "2020-03-07T18:10:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dce4dd3...
3c786c8a-3447-44ac-a37b-953052eb49f4
huynguy97/IP-Week9
main.6817541356533432315.cpp
/* ...
ALGO
0.95746
4.051304
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-05-12T17:18: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": "bc5f05d5ae...
333e9374-24ad-462d-9792-6e6f1b20859c
yuhaolan/Enigma_machine
drive.cc
#include <string> #include <iostream> #include <stdexcept> #include <stdlib.h> #include "rotor.cc" #include "permutation.cc" #include <vector> #include <stdio.h> using namespace std; #define BUFFERSIZE 1024 int main(int argc, char *argv[]) { FILE *fp; char firstchar,lastchar; int c; char buffer[BUFFERSIZE]; int ...
ALGO
0.996075
3.993522
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2016-09-21T03:08: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": "e0b1e9d6bd...
3b87ae8e-79b8-4a21-9c00-a1cc57e9060b
MuffinMario/S4-Map-Reader
S4EditorEDMCrypt/CodewordTable.h
#pragma once #include "types.h" #include <algorithm> namespace S4MAP::Compress::Inflate { constexpr const size_t CODEWORD_TABLE_SIZE = 274; class CCodewordTable { StaticArray<uint16_t, CODEWORD_TABLE_SIZE> m_aCodewordTable; StaticArray<uint16_t, CODEWORD_TABLE_SIZE> m_aCodewordIndexLUT; StaticArray<uint32_t, C...
ALGO
0.982918
5.125361
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2022-07-19T14:28: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": "f8371f57d4...
ae475999-2654-4157-821a-bd7f1b684539
Narasimha200/Data-Structures-and-Algorithms-Practice-Problems
Graphs/numberOfWaysToArriveAtDestination.cpp
#include <bits/stdc++.h> using namespace std; int countPaths(int n, vector<vector<int> > &roads) { priority_queue<pair<long long, long long>, vector<pair<long long, long long> >, greater<pair<long long, long long> > > pq; vector<long long> waysUpto(n, 0); vector<pair<long long, long long> > adj[n]; vec...
ALGO
0.999916
4.699727
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2024-02-08T18:55: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": "86384fc0f1c...
8be1234b-25c1-4ffa-9915-72d5b49de9ea
eg7409/Data-Structures-and-Algorithms
Binary Search Tree/Shortest Tree Path.cpp
#include<bits/stdc++.h> using namespace std; class node { public: int key; node *left; node *right; node(int key){ this->key = key; left = right = NULL; } }; node* lca(node*root, int a, int b){ if(root==NULL){ return NULL; } if(a <root->key && b<root->key){ ...
ALGO
0.999992
5.037295
{ "github_metadata": { "branch": "main", "commit_count": 182, "repo_created_at": "2021-06-24T17:32:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f1a72a72fb...
a04a72f0-2155-458c-b2a0-95c40b8480fd
GlaucoMasi/CompetitiveProgramming
Cses/String Algorithms/2420-PalindromeQueries.cpp
#include <bits/stdc++.h> using namespace std; ifstream fin("input.txt"); ofstream fout("output.txt"); const int k = 3, maxn = 2e5+5; int b[k] = {29, 31, 37}, mod[k] = {1000000007, 1000000009, 1000000021}; long long p[k][maxn], fen[k][maxn], inv[k][maxn]; void addfen(int i, int j, long long val){ while(i < maxn){ ...
ALGO
0.999974
4.781329
{ "github_metadata": { "branch": "main", "commit_count": 472, "repo_created_at": "2022-10-01T17:36: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": "800ad64f41...
2d174ed9-acc1-41cb-8d23-ae80f0c54ad1
albatrosrkn/BrickBreaker_Game
CHMAT_GUI/chmat.h
#define CHMAT_UNSIGNED_CHAR 1 #define CHMAT_UNSIGNED_INT 2 #define CHMAT_INT 3 #define CHMAT_FLOAT 4 #define CHMAT_DOUBLE 5 class CHMAT { public: //members int X = 0, Y = 0, type = 0; void* data = 0; HBITMAP HBitmap; //bitmap handle //---constructer & d...
TOOL
0.903199
3.805499
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-06-29T20: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": "05bc14db39c8...
ae966b8e-ad38-4ffe-b9c7-0802d8cc1517
Istlemin/cpsolutions
ioipractice2021/practice3/B.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = a; i < (b); ++i) #define per(i, a, b) for (int i = a - 1; i >= (b); --i) #define trav(a, x) for (auto &a : x) #define all(x) x.begin(), x.end() #define sz(x) x.size() #define pb push_back #define umap unordered_map #define uset unor...
ALGO
0.999896
3.689906
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2021-01-28T17:17:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d23d73c87...
12a80c9d-a017-45c6-858e-2e7303f00938
ZoranPandovski/al-go-rithms
puzzles/anagram/c++/anagram_detector.cpp
/* This is a simple anagram detector in c++. You can enter any set of strings, separated by a ? mark, and you will see if this is a valid anagram or not. Run: g++ anagram_detector.cpp ./a.out */ #include <iostream> #include <set> #include <string> #include <sstream> #include <vector> #include <iterator> #include <al...
ALGO
0.99883
4.508037
{ "github_metadata": { "branch": "master", "commit_count": 7457, "repo_created_at": "2017-06-05T19:20:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1359, "forks": 1929, "issues": 20, "pull_requests": 44 }, "file_meta": { "content_id": ...
048ea025-48e1-41ed-8324-0703758b3580
mhasanjoy/code
LeetCode/206. Reverse Linked List.cpp
#include<iostream> using namespace std; struct ListNode{ int val; ListNode *next; }; ListNode* Insert(ListNode* head, int data){ ListNode* temp1 = new ListNode(); temp1->val = data; temp1->next = NULL; if(head == NULL){ head = temp1; } else{ ListNode* temp2 = head; ...
ALGO
0.999937
4.975639
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2024-03-02T07:29: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": "b5a7fe80891...
1908d64d-6d35-4d8c-83e6-8018dd023719
Nocatbin/TableManager
src/BPlusTree/BPlusTree.cpp
#include <iostream> #include <queue> #include <CLCriticalSection.h> #include <BPlusTree.hpp> BPlusTree::BPlusTree(int degree) { if (root != nullptr) { return; } root.reset(new BPlusNode(degree, true)); } void BPlusTree::Insert(long key, long value) { CLCriticalSection cs(&tree_mutex); BPlu...
ALGO
0.9704
3.705926
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2022-10-29T06:03: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": "99a6fd37769...
a51c6b61-084e-4997-a613-ec35ed832cc8
Arsh-0/Crystal-Coding
5.cpp
/* Array #5 (Min and Max in Array) [https://www.geeksforgeeks.org/problems/find-minimum-and-maximum-element-in-an-array4428/1?page=1&difficulty%255B%255D=-1&category%255B%255D=Arrays&sortBy=submissions] */ // Brute Force Approach // First find the minimum from all the elements, then find the maximum from all, traversi...
ALGO
0.999958
6.039669
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2024-09-28T19:40: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": "d769432adfb...
39acdd55-3597-46da-b46b-dc2f969135df
john-d-murphy/hackerRank
30 Days of Code/day27.cc
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; /* Objective This challenge is very different from the others we've completed because it requires you to generate valid test cases for a problem instead of solving the problem. There is no input to read, ...
ALGO
0.999742
4.581097
{ "github_metadata": { "branch": "master", "commit_count": 219, "repo_created_at": "2016-05-17T01:00:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 18, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0af75e...
3607802c-3548-4a33-afb5-28e6ed6de415
domejiraphon/algorithm
practice/1043_maxSumAfterPartitioning.cpp
/* 1043. Partition Array for Maximum Sum Given an integer array arr, partition the array into (contiguous) subarrays of length at most k. After partitioning, each subarray has their values changed to become the maximum value of that subarray. Return the largest sum of the given array after partitioning. Test cases are...
ALGO
0.99984
5.658887
{ "github_metadata": { "branch": "main", "commit_count": 191, "repo_created_at": "2022-09-02T14:28: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": "29155bdf53...
76f08f28-8ca8-4875-98df-d5494eeda0e2
UnicornPrem/Competitive-Programming
CodeForces/119A.cpp
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <vector> #include <cctype> #include <map> #include <stack> #include <queue> #define S(n) scanf("%d",&n) #define SC(n) scanf("%c",&n) #define SL(n) ...
ALGO
0.999884
3.249192
{ "github_metadata": { "branch": "master", "commit_count": 138, "repo_created_at": "2015-05-24T05:46: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": "0c23edf3...
c88cb0e9-2d47-42d4-9912-d7e21e83cb5f
avasyy/CaesarCipher
Caesar.cpp
// // Created by yuriy on 14.08.18. // #include "Caesar.h" /* function for encrypt available text */ std::string encrypt(std::string text, int key) { std::string result = ""; // string for save result of encrypting std::vector<std::string> words; ...
ALGO
0.999422
4.571125
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2018-08-14T09:59:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "12cfa1219f...
95bf7fb4-4feb-46fb-84bd-557b51ad2dd5
rachit491/Algo-Fall16
maxflow.cpp
/** * Maximum Flow * @author <NAME> * @email <EMAIL> * */ #include <iostream> #include <vector> #include <climits> using namespace std; class NetworkFlow { int n; int path_flow, max_flow; vector<bool> nodeState; vector< vector<int> > adj; vector< vector<int> > res; //residual graph matrix - copy of ad...
ALGO
0.999926
4.150934
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-02-22T06:12: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": "223a798812...
3e4db31e-27dd-4ba8-8cea-285330efe7cc
ssk4988/Coding
kattis/coveredwalkwayimplicitquad.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using pi = pair<int, int>; using pl = pair<ll, ll>; using pd = pair<ld, ld>; using vi = vector<int>; using vl = vector<ll>; using vd = vector<ld>; using vpi = vector<pi>; using vpl = vector<pl>; using vpd = vector<pd>; using vv...
ALGO
0.999999
4.398746
{ "github_metadata": { "branch": "main", "commit_count": 189, "repo_created_at": "2021-11-02T23:44:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8996eac0a0...
7d1ca5ba-2e7a-43a4-99f6-ca478c45b2b3
reverg/PS
boj/20366.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct Snowman { int small; int big; int height; }; bool cmp(Snowman s1, Snowman s2) { return s1.height < s2.height; } int main() { ios::sync_with_stdio(false); cin.tie(NULL); int N; cin >> N; int s...
ALGO
0.999987
4.066058
{ "github_metadata": { "branch": "main", "commit_count": 91, "repo_created_at": "2021-06-24T14:39:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6f4d669997a...
eedf823d-34d2-44bb-8cb5-66be59f4faba
kamyu104/LeetCode-Solutions
C++/split-array-with-same-average.cpp
// Time: O(n^4) // Space: O(n^3) class Solution { public: bool splitArraySameAverage(vector<int>& A) { const int n = A.size(); const int sum = accumulate(A.cbegin(), A.cend(), 0); if (!possible(n, sum)) { return false; } vector<unordered_set<int>> sums(...
ALGO
0.99964
6.103382
{ "github_metadata": { "branch": "master", "commit_count": 19395, "repo_created_at": "2018-10-11T17:38:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4939, "forks": 1616, "issues": 1, "pull_requests": 55 }, "file_meta": { "content_id": ...
a013ae77-1f40-4e84-beac-f956cd05bef4
RahulMittal18/Leetcode_solutions
92-reverse-linked-list-ii/92-reverse-linked-list-ii.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* reverseBetw...
ALGO
0.999999
5.705306
{ "github_metadata": { "branch": "main", "commit_count": 2330, "repo_created_at": "2022-04-30T07:31:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9a7157b6e...
f10775e3-f2c7-4b37-9d9f-b71db8f7da2b
RomanPGGP/IBTC
HackerRank/HackerRank/HackerRank.cpp
// HackerRank.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <bits/stdc++.h> using namespace std; class SinglyLinkedListNode { public: int data; SinglyLinkedListNode *next; SinglyLinkedListNode(int node_data) { this->data = node_data; this->next = nullptr; ...
ALGO
0.999808
4.858255
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2021-09-23T23:18:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "589737c0c9a...
f3816b1c-9014-4e53-855d-554a8daeca7b
laonahongchen/ICPC-code-template-Quasar-
template/source/Data-Structure/tree-chain.cpp
void Prep(int x){ dep[x] = dep[fa[x]] + 1; size[x] = 1; son[x] = 0; for (int i = g[x]; i; i = nxt[i]){ int y = adj[i]; if (y == fa[x]) continue; fa[y] = x; Prep(y); size[x] += size[y]; if (size[y] > size[son[x]]) son[x] = y; } } void Dfs(int x){ dfn[x] = ++dfc; if (son[x] != 0){ top[son[x]] = top[x...
ALGO
0.999941
3.947967
{ "github_metadata": { "branch": "master", "commit_count": 64, "repo_created_at": "2018-07-26T01:14: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": "8abf324b5...
4cabd646-aa5d-4af1-9f91-a8547c11e420
pavelsimo/ProgrammingContest
hackerank/bubblesort.cpp
/* ======================================================================== $File: $Date: $Creator: <NAME> ======================================================================== */ #include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #includ...
ALGO
0.998864
3.35156
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2014-10-16T15:16:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d960a230f7...
b8659255-f911-42b2-815d-e0dcef2431d8
MartinPiloni/CompetitiveProgramming
ICPC/2023-2024_Brazil_SUBREGIONAL/I.cpp
#include <bits/stdc++.h> using namespace std; #define pb push_back #define fst first #define snd second #define sz(x) ((int)x.size()) #define all(x) x.begin(),x.end() using ll = long long; using str = string; const int MAXN = 1e5 + 10; ll dp[MAXN][2]; int n; int v[MAXN]; ll f(int i, bool p) { if (i == n) return...
ALGO
0.999997
4.148075
{ "github_metadata": { "branch": "main", "commit_count": 357, "repo_created_at": "2023-01-03T01:54: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": "e936e9fa15...
cbb92bfa-c496-4d67-bc27-c6ac97067eb3
Peopl3s/AlgsAndDataStruct
Algorithms/C++/algorithms.cpp
#include <iostream> #include <cmath> #include <vector> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// std::vector<std::vector<bool>> recursive_dfs_for_adj_matrix_graph(const std::vector<std::vector<int>> &g, const int &row, const...
ALGO
0.999862
5.279528
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2019-08-03T06:47: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": "5f46b40ee...
828d14a0-171b-4692-b5a6-68f7d360c8fd
itohdak/AtCoder
others/DISCO_presents/2020/E.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--) #define rrep(i,n) RREP(i,n-1,0) #define REPL(i,m,n) for(ll i=(ll)(m); i<(ll)(n); i++) #define repl(i,n) REPL(i,...
ALGO
0.998068
3.476907
{ "github_metadata": { "branch": "master", "commit_count": 172, "repo_created_at": "2018-05-20T09:26:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "0c097ffe...
9e7dc20a-d74f-4ae5-b479-0390e54ad1d7
vukanoa/Coding_Problems
Orderless_Problems/1641_Count_Sorted_Vowel_Strings/count_sorted_vowel_strings.cpp
/* ============== === MEDIUM === ============== ================================ 1641) Count Sorted Vowel Strings ================================ ============ Description: ============ Given an integer n, return the number of strings of length n that consist only of vowel...
ALGO
0.999749
6.816964
{ "github_metadata": { "branch": "main", "commit_count": 2647, "repo_created_at": "2022-10-27T12:00:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "72287457d...
bfcd62ba-b1af-4239-992d-f15e56ef3b9a
AminaIslam1912/DSA
laaaaab/postfixcalc.cpp
#include <iostream> #include <stack> #include <string> using namespace std; // Function to evaluate postfix expression int evaluatePostfix(string expression) { stack<int> operands; for (char& c : expression) { if (isdigit(c)) { operands.push(c - '0'); // Convert character to integer and p...
ALGO
0.999583
5.724358
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-04-15T15:31:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4503a03a49ca...
bab3eaa8-465c-42db-be4d-0dade1b17608
codgician/competitive-programming
HDUOJ/2191/dp_01.cpp
#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <cstring> #include <string> #include <iomanip> #include <climits> #define SIZE 2001 using namespace std; typedef struct _Rice { int price; int weight; } rice; rice arr[SIZE]; int dp[SIZE]; int main() { ios::sync_with_std...
ALGO
0.999669
3.026255
{ "github_metadata": { "branch": "master", "commit_count": 1251, "repo_created_at": "2017-09-19T02:44:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "07cd6bf...
0a23964d-73ef-4824-b609-3e20df1e71b8
dilevin/Bartels
include/linesearch_backtracking_bisection.h
#ifndef SIM_LINESEARCH_BACKTRACKING_BISECTION_H #define SIM_LINESEARCH_BACKTRACKING_BISECTION_H #include <BartelsTypes.h> #include <EigenTypes.h> //Implementation of simple backtracking linesearch using bisection //Input: // x - initial point // d - search direction // f - the optimization objective function f(x...
ALGO
0.999862
6.117179
{ "github_metadata": { "branch": "master", "commit_count": 199, "repo_created_at": "2019-11-29T05:57:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 51, "forks": 15, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "392087...
e130f42d-42c0-4c57-be24-193de356a2fb
Wonsei12/CodeForces
marathon codefest/B.cpp
#define LOCAL #include <bits/stdc++.h> using namespace std; #pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx,avx2") #define IOS ios::sync_with_stdio(false);cin.tie(0) #define all(x) x.begin(), x.end() #define ff first #define ss second #define LLIN...
ALGO
0.999975
3.588549
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2021-01-15T12:48: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": "db5ce27a1...
d89cac2c-5b3f-4975-b3c9-cf93ebfc038e
tiankonguse/leetcode-solutions
problemset-new/003/00374-guess-number-higher-or-lower/guess-number-higher-or-lower.cpp
/************************************************************************* > File Name: guess-number-higher-or-lower.cpp > Author: tiankonguse > Mail: <EMAIL> > Created Time: Sat Apr 27 00:02:00 2019 > link: > No: > Contest: ******************************************************************...
ALGO
0.999974
4.573788
{ "github_metadata": { "branch": "master", "commit_count": 1037, "repo_created_at": "2015-04-11T09:31:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 81, "forks": 26, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "2c7c2...
2b6b83e1-2d8b-471e-b0c9-dd75b73912ac
GRTLCollaboration/Chombo
lib/src/AMRElliptic/PetscSolver.H
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #ifndef _PETSCSOLVER_H_ #define _PETSCSOLVER_H_ #include "LinearSolver.H" #i...
TOOL
0.969079
6.365673
{ "github_metadata": { "branch": "main", "commit_count": 89, "repo_created_at": "2018-01-30T14:07:31.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 16, "forks": 12, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "55af85faed...
1fc964e8-44d0-475f-8142-3bc5dae22d3e
ericniebler/range-v3
include/range/v3/algorithm/sort.hpp
/// \file // Range v3 library // // Copyright <NAME> 2013-present // // Use, modification and distribution is subject to 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) // // Project home: https://github.com/ericniebler/range...
ALGO
0.999979
7.155593
{ "github_metadata": { "branch": "master", "commit_count": 2541, "repo_created_at": "2013-11-11T16:05:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4273, "forks": 457, "issues": 262, "pull_requests": 24 }, "file_meta": { "content_id": ...
98a8c966-81a5-4ae8-8c63-cfe7b921d2e6
Yawn-Sean/Daily_CF_Problems
daily_problems/2024/08/0802/personal_submission/cf269c_yawn_sean.cpp
#include <bits/stdc++.h> #pragma GCC optimize("O3,Ofast,unroll-loops") // #include <bits/extc++.h> // using namespace __gnu_cxx; // using namespace __gnu_pbds; using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n, m; cin >> n >> m; vector<int> ...
ALGO
0.999954
4.374163
{ "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": "8948...
7543d113-39af-4923-aea5-6281dadbc7e5
vickyguptaa7/DSA-Practice
10.Tree/Burn_Binary_Tree.cpp
#include<iostream> #include<queue> #include<math.h> using namespace std; struct node { int key; node *left; node *right; node(int k) { key = k; left = nullptr; right = nullptr; } }; void Level_Order_Traversal(node*root) { queue<node*>que; que.push(root); whi...
ALGO
0.999928
4.249167
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2022-02-07T07:12: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": "7dfc5a2ad...
313e90ab-6014-4640-8497-74931fd50c83
rafshar95/Codeforces
Educational_Codeforces_Round_97/E97E.cpp
#include <iostream> #include <algorithm> #include <string> #include <vector> #include <cstring> #include <set> #include <map> #include <queue> #include <deque> using namespace std; const int maxn = 5 * 100 * 1001; int n, k; int a[maxn], b[maxn]; int lis[maxn], p[maxn]; int my_inf = 1<<30; bool in_valid[maxn]; int...
ALGO
0.999976
3.351821
{ "github_metadata": { "branch": "main", "commit_count": 73, "repo_created_at": "2020-10-20T16:57: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": "ab64db97758...
445f5768-79f1-42d9-b162-00d03b9dedbc
ros-navigation/navigation2
nav2_util/src/array_parser.cpp
/* * Copyright (c) 2012, <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 above copyright * notice, this list of ...
TOOL
0.930984
5.958971
{ "github_metadata": { "branch": "main", "commit_count": 3234, "repo_created_at": "2018-05-29T23:35:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3283, "forks": 1517, "issues": 80, "pull_requests": 34 }, "file_meta": { "content_id": "5f...
d65f0ad1-5210-48a6-bce9-c90d53988aa5
Cydnus/Study_files
CodingSites/ProjectEuler@kr/Problem_0019.cpp
#include <iostream> #include <vector> using namespace std; int main() { int year = 1900; int weekOfDay = 1; vector<int> dayOfMonth = { 31,28,31, 30,31,30, 31,31,30, 31,30,31 }; // set Date 1901 01 01 weekOfDay += 365; if(year % 400 == 0 && year % 4 == 0) wee...
ALGO
0.999537
3.673646
{ "github_metadata": { "branch": "main", "commit_count": 242, "repo_created_at": "2022-03-13T07:21: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": "909272c622...
00a3c96d-ed83-4870-ad8e-84f6c12d5d96
adwita04/DataStructuresandAlgorithm
heaps.cpp
/* Name: <NAME> Roll no: 2203303 Name: <NAME> Roll no: 2203312 Name: <NAME> Roll no: 2203302 Name: <NAME> Roll no: 2204207 */ #include <iostream> #include<cstdlib> using namespace std; class maxHeap { private: int *items; int size; int sift_down(int index) { while (index <= (size - 1) ...
ALGO
0.99981
5.079687
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2024-03-17T05:53: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": "80ae435cc01...
a20d7bf7-3b78-4785-9312-a8feb421a551
ishandutta2007/codeforces-r
rajat1603/normal/581/C.cpp
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int n , k , arr[N]; int ans = 0; int main(){ scanf("%d %d" , &n , &k); for(int i = 1 ; i <= n ; ++i){ scanf("%d" , arr + i); } while(1){ sort(arr + 1 , arr + 1 + n , [](int a , int b){ return (a % 10) > (b %...
ALGO
0.999693
3.959354
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:58: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": "f8e10b419e78...
7c2e7541-13d6-4dae-9fdb-44dd128c663b
vinodpkd/leetcode
1913.cpp
//1913. Maximum Product Difference Between Two Pairs /* The product difference between two pairs (a, b) and (c, d) is defined as (a * b) - (c * d). For example, the product difference between (5, 6) and (2, 7) is (5 * 6) - (2 * 7) = 16. Given an integer array nums, choose four distinct indices w, x, y, and z such t...
ALGO
0.999872
6.10892
{ "github_metadata": { "branch": "main", "commit_count": 418, "repo_created_at": "2024-10-04T11:39:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6c25eccd37...