(#2 mock interview) Reverse Linked List Recursive Solution in Java | LeetCode 206

in reverse •  6 years ago 


Reverse a singly linked list.

Example:
Input: 1 - 2 - 3 - 4- 5 - NULL
Output: 5 - 4 - 3 - 2 - 1 - NULL
Follow up:

A linked list can be reversed either iteratively or recursively. We'll tackle this problem in a recursive way.

Learn to code CS interview *with fun!

If you have any questions about this interview question, or suggestions about coding questions, do let me know in the comment sections, as that will be my motivation to create another video.

Coding should be fun, shouldn't it? :D

#google #facebook #apple #amazon #codinginterview #programminginterview #leetcode #programminginterview #cs #computerscience #softwareengineer #SoftwareEngineerInterview #technicalCodingInterview #mockinterview


▶️ DTube
▶️ IPFS
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!