Skip to content

Instantly share code, notes, and snippets.

View MrTwinkleSharma's full-sized avatar
:octocat:
Eat, Sleep, Enjoy, Code and Repeat !

Mr. Twinkle Sharma MrTwinkleSharma

:octocat:
Eat, Sleep, Enjoy, Code and Repeat !
  • Gorakhpur
View GitHub Profile
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n; cin>>n;
std::vector<pair <int, pair<string, int>>> apiData;
for(int i = 0; i < n;i++)
{
@MrTwinkleSharma
MrTwinkleSharma / solution.cpp
Created July 4, 2021 13:38
Partition the state, Codechef Debugging external contest.
// Author : MrTwinkleSharma
#include<climits>
#include<iostream>
using namespace std;
const int N = 200010;
int children[N],
nextChild[N],
cumulativeResourcesOfCity[N],
resourcesPerCity[N], toCity[N],
@MrTwinkleSharma
MrTwinkleSharma / warnbusinesss.cpp
Created November 22, 2020 05:11
Ediorial, War and Business
#include<bits/stdc++.h>
using namespace std;
//Dimension of city
int m,n;
//Just a flag to be used for storing record of place which was visited
bool visited[10001][10001];
//To Represent Mumbai City
@MrTwinkleSharma
MrTwinkleSharma / cvdsrt.cpp
Created November 21, 2020 05:04
Editorial, Covid Shortage (FTB007)
#include<bits/stdc++.h>
using namespace std;
//Graph Data Structure
unordered_map<int,vector<int>> adjList_Graph1,adjList_Graph2;
int cities_covered = 0;
void FunctionForGraph1(int i,vector<bool>& flag, stack<int>& mystack)