as such I know about BufferedReader and System.out.println(), but still is there any other FASTER way for Reading and Writing in Java. In the Problem, Turbo Sort, every Java Code consist of a user defined class which is taking Input and different class for output as well. Can anyone please guide me, I am really frustrated.
I have tried Merge Sort, Quick sort for the above problem, I think the main thing in the question is Fast Input and Fast Output.
Any tutorial/link with explanation about the code will be highly appreciated.
You can try count sort.
sir I have tried count sort as well, even in this case, Time Limit is exceeded. That is why, I have changed my focus from sorting to Fast Input and Fast Output.