larissalages / code_problems

Code Problems from Coding Challenge Websites. The goal is to help them to improve their code skills and also studying for coding interviews.
MIT License
55 stars 181 forks source link

Create 206.cpp #279

Closed SouravCodery closed 4 years ago

SouravCodery commented 4 years ago

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

Description

Please describe your pull request.

We have implemented the LeetCode's "206 Reverse Linked List" Problem. The solution is well commented and has been accepted by LeetCode's Judge.

Link to the problem: https://leetcode.com/problems/reverse-linked-list/

:heart: Thank you!

SouravCodery commented 4 years ago

can you solve the conflicts with this file on master? thanks!

Ma'am, The Previous Solution was Iterative while the current one was Recursive. I have kept both the approaches while commenting one of them and have put a comment for people's understanding of the same.