Codechef Problem – Krillin is dead AGAIN

The link to problem : https://www.codechef.com/problems/KRILLIN Solution I would like you to read about segment trees before further reading solution if you don't know as it is a prerequisite for this problem. http://codeforces.com/blog/entry/15890 https://codeforces.com/blog/entry/18051 Now we will build our segment tree in which each node will be storing frequency i.e. the array's elements, the value(index) and … Continue reading Codechef Problem – Krillin is dead AGAIN

Internship

Coding Prep InterviewBit - Highly recommended, a go-to site for preparation and will single handedly fulfill all your preparation needs. Contains various Coding/DSA questions asked in previous interviews to candidates. Allows you to get a feel for how well you know your stuff. Requires basic DSA knowledge, recommended to read a bit of the initial … Continue reading Internship

Codeforces Problem – Useful Decomposition

The link to problem : http://codeforces.com/contest/981/problem/C Solution The question says that there should be atleast one vertex common for every path and we shall be able to visit every node without repeating any edge. For this we need to firstly make adjacency list for the given inputs. When we have made adjacency list then we need … Continue reading Codeforces Problem – Useful Decomposition