Category: ACM

02
Jul
2017

Hackerearth: Fredo and Game

code: #include<bits/stdc++.h> using namespace std; int main() { int t,i,a,n; cin>>t; while(t–) { cin>>a>>n; int arr[n]; for(i=0;…

02
Jul
2017

Hackerearth: Little Jhool and psychic powers

code: #include<bits/stdc++.h> using namespace std; int main() { int zz,oo; string S; string z=”000000″; string o=”111111″; cin>>S;…

01
Jul
2017

Hackerearth: Complete the Syllabus

Copied the code from someone’s solutions: #include <stdio.h> int main() { int t; long int n,i,j,k,a[7],sum; char…

29
Jun
2017

Heap Sort

Steps: If we want to sort in ascending then we create a min heap If we want…

28
Jun
2017

Big Oh, Theta and Omega Notation confusion clearing

https://stackoverflow.com/questions/471199/what-is-the-difference-between-%CE%98n-and-on

28
Jun
2017

Merge Sort

Algorithm Video: Merge Sort Combines Two Sorted file in a large bigger sorted files: This Merge sort…