+ 1

Help me simplify the program

I have a written a code of Queue and it's operations using 2 Stacks. Is there any way i can simplify this code using alternative methods or break it down to simple blocks? https://code.sololearn.com/cqA5mUdX5R95

5th Dec 2020, 4:07 PM
Thashreef Mohammed
Thashreef Mohammed - avatar
1 Odpowiedź
0
C-MOON i wrote it for a hackerrank competition.. But unfortunately for some test cases it time out. Maybe cus of the time complexity..
7th Dec 2020, 2:51 PM
Thashreef Mohammed
Thashreef Mohammed - avatar