Please Someone, Give some tip in order to avoid the time limit exceeds while writing the code in java language.?
Fast I/O is a must. After that, its all about knowing your language and proper algorithms. Make sure to be well versed with the in built functions you use, so that you dont have to face unexpected errors because those in built functions may not actually work in the way you think.