DSA-Bootcamp-Java
DSA-Bootcamp-Java copied to clipboard
Update InterviewQuestions.java
Removed (head != null*) in if condition from line:282 and in line:291 at the return statement. Head is never going to be null since we are reversing the second half only , so only the headSecond can be null. No need to check for head to be null.
removed unnecessary (head != null) from line 282 and 291.