Click here to see the problem. And read the description and try to understand the problem first. Reverse String is one of the most common problems in computer programming. And this time, the input string is given as an array of characters. We have to return the reverse version of the given array. See the […]
Tag: Two Pointer
Linked List Cycle | LeetCode 141 | Python | Solution
Click here to see the problem details. Read the description first. We will be given a Linked List. We have to determine there is any cycle or not in the linked list. It is an easy problem. See the problem details for the visual representation of the cycle in a linked list. Coding Part Generally, […]
876. Middle of the Linked List | LeetCode | Python | Solution
Here is the problem link. See the problem explanation first and try to understand the problem. It’s an easy linked list problem. We have to return the middle node from a linked list. We don’t have to check the emptiness of the given linked list. We will receive only a non-empty linked list. If there […]