Problem : https://cses.fi/problemset/task/1674/
Code 1 : https://hastebin.com/dahepocuke.java
Code 2 : https://hastebin.com/ayomexiwez.java
Both code give TLE on 1 large testcase , any optimisation to AC ?
Java TLE
Problem : https://cses.fi/problemset/task/1674/
Code 1 : https://hastebin.com/dahepocuke.java
Code 2 : https://hastebin.com/ayomexiwez.java
Both code give TLE on 1 large testcase , any optimisation to AC ?