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