I have write very long code to handle every corner case....but after getting gree


#1

i have write very long code to handle every corner case…but after getting green tick…feeling If my approach is good I can write 100*long code compare this…can any1 provide me how to compress my code and handle corner cases too…


#2

Hey Ramesh, checkout the editorial solutions in the hints section.