on compilation, it throws NoSuchElementException but on providing custom inputs it runs perfectly even I submitted the solution and all the test cases have been passed. then it is throwing NoSuchElementException at the time of compilation ??
(JAVA TA) - NoSuchElementException
hello @87adarsh.gupta
there is not any default test case that runs on compilation, so it is our responsibility to give test case before compiling.
otherwise u will get this issue
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.