I tried to submit code for 2 problems which involved sorting(ANUBTG,COOLING).In both cases,I got a compilation error when I tried to use Arrays.parallelSort().
The same code runs perfectly on the ide provided by codechef and my laptop having java 8.
Parallel Sort is a new function action added in java 8.I tried to run it since it is 2 times faster than Arrays.sort()(acc. to [this][1] blog)
I tried to use it for first time today .My question to the admin is whether these are temporary changes because of yesterday’s problem during Cook Off?
Oh god. You have named your class containing main as anubtg. That doesn’t work. It has to be named Main. You could check the compliation error by clicking on the error icon after submission.
Okay I changed it to parallelSort() and it ran
But take this solution It also got an Compilation error but this time it was parallelSort as you are saying
@asr21 They probably use the Java 7 compiler. And please try compiling your code before posting on the forum. How can the ide work when the spelling is wrong.