Codeforces Perfect Squares logo
Codeforces

Perfect Squares – Codeforces Round 458 – Editorial

(Disclaimer: This is an unofficial editorial prepared solely by me, and is not affiliated to Codeforces) Problem link: http://codeforces.com/contest/914/problem/A Solution: In this problem, we are given an array of n integers and we are to find the largest integer which is NOT a perfect square. Algorithm: This problem is an easy implementation problem. However, we need to be careful with some edge…

Continue Reading

pizza seperation 345x225 - Pizza Separation - Codeforces Round 448 - Editorial
Codeforces, Codeforces Round 448 (Div2)

Pizza Separation – Codeforces Round 448 – Editorial

(Disclaimer: This is an unofficial editorial prepared solely by me, and is not affiliated to Codeforces) Problem link: http://codeforces.com/contest/895/problem/A Solution: While solving any competitive programming problem, it is essential to break down the problem into following pieces of critical information since almost all of the problem statements try to hide the underlying goal with a storyline: What the problem is actually…

Continue Reading

1509009918 091bdd4cba 1502631298 5cd3275ce9 img2 345x225 - 3D Surface Area - HackerRank Week of Code 35 - Editorial
HackerRank, Week Of Code 35

3D Surface Area – HackerRank Week of Code 35 – Editorial

(Disclaimer: This is an unofficial editorial prepared solely by me, and is not affiliated to HackerRank) Problem link: https://www.hackerrank.com/contests/w35/challenges/3d-surface-area Solution: While solving any competitive programming problem, it is essential to break down the problem into following pieces of critical information since almost all of the problem statements try to hide the underlying goal with a storyline: What the problem is actually asking…

Continue Reading

2 345x225 - Triple Recursion - HackerRank Week Of Code 35 - Editorial
HackerRank, Week Of Code 35

Triple Recursion – HackerRank Week Of Code 35 – Editorial

(Disclaimer: This is an unofficial editorial prepared solely by me, and is not affiliated to HackerRank) Problem link: https://www.hackerrank.com/contests/w35/challenges/triple-recursion/copy-from/1304109326 Solution: While solving any competitive programming problem, it is essential to break down the problem into following pieces of critical information since almost all of the problem statements try to hide the underlying goal with a storyline: What the problem is…

Continue Reading

weekofcode35 345x182 - Lucky Purchase - HackerRank Week of Code 35 - Editorial
HackerRank, Week Of Code 35

Lucky Purchase – HackerRank Week of Code 35 – Editorial

(Disclaimer: This is an unofficial editorial prepared solely by me, and is not affiliated to HackerRank) Problem link: https://www.hackerrank.com/contests/w35/challenges/lucky-purchase/problem Solution: While solving any competitive programming problem, it is essential to break down the problem into following pieces of critical information since almost all of the problem statements try to hide the underlying goal with a storyline: What the problem is…

Continue Reading