One has to check if N%3 is 0, 1 or 2. If 0, print DP, else if 2, print Graph Theory, else print Binary Search.

One has to be careful with what data type is being used as N will overflow integer limit.

Statistics

78% Solution Ratio
Avik_AB17Earliest, 5M ago
faisalk5470Fastest, 0.0s
Tahmidul.4404Lightest, 5.1 MB
Marzuq01Shortest, 116B
Toph uses cookies. By continuing you agree to our Cookie Policy.