DSA-Bootcamp-Java icon indicating copy to clipboard operation
DSA-Bootcamp-Java copied to clipboard

Update InterviewQuestions.java

Open dhruvmaindola227 opened this issue 2 years ago • 1 comments

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.

dhruvmaindola227 avatar May 21 '22 06:05 dhruvmaindola227

removed unnecessary (head != null) from line 282 and 291.

dhruvmaindola227 avatar May 21 '22 06:05 dhruvmaindola227