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

in #reverse7 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

Coin Marketplace

STEEM 0.16
TRX 0.25
JST 0.034
BTC 95656.37
ETH 2680.80
SBD 0.68