14th Jul 2021, 7:23 PM
Shubham Aggarwal
Shubham Aggarwal - avatar
8 Réponses
+ 2
Kirabo Ibrahim I am not good at that but I will try.
15th Jul 2021, 8:55 AM
Shubham Aggarwal
Shubham Aggarwal - avatar
+ 1
Your program's time complexity is actually high. There is a time limit attached to the execution of your program, if it executes longer than the time limit, then you get Time Limit Exceeded error. Determine the complexity of your algorithm. ie The solution might require O(n) algorithm it sth better rather than O(n**2). Try to reduce loops in your pragram
14th Jul 2021, 8:18 PM
Kirabo Ibrahim
Kirabo Ibrahim - avatar
14th Jul 2021, 8:27 PM
Oma Falk
Oma Falk - avatar
+ 1
@Oma Falk this may solve TLE but what about the output then? I will try putting it in the question.
15th Jul 2021, 9:08 AM
Shubham Aggarwal
Shubham Aggarwal - avatar
+ 1
Which output
15th Jul 2021, 9:33 AM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk ya sorry that was an error by me in input
15th Jul 2021, 2:43 PM
Shubham Aggarwal
Shubham Aggarwal - avatar
0
@Oma Falk Its now giving Eof
15th Jul 2021, 9:57 AM
Shubham Aggarwal
Shubham Aggarwal - avatar
0
Not for me eof normally means bad input
15th Jul 2021, 11:22 AM
Oma Falk
Oma Falk - avatar