In our previous article, we learned how to find the Nth node from the back. But in technical interviews at companies like Amazon, Google, or TCS, the question usually goes…
study trigger
-
ArticleData Structure
-
ArticleData Structure
Find Nth Node from the End of a Linked List in Python in Single Traverse
by Mahesh Vermaby Mahesh VermaIn our previous chapters, we mastered moving forward through a Linked List. But what happens when a problem asks you to count from the back? Since a Singly Linked List…
-
ArticleData Structure
Find the Start of a Linked List Cycle in Python | Floyd’s Cycle-Finding Algorithm | LeetCode 142
by Mahesh Vermaby Mahesh VermaIn the previous challenge, we learned how to tell if we were stuck in a loop. But in LeetCode 142 (Linked List Cycle II), simply knowing you’re in a circle…
-
ArticlePython
Detect a Cycle in a Linked List in Python | Floyd’s Cycle-Finding Algorithm | LeetCode 141
by Mahesh Vermaby Mahesh VermaAfter mastering how to find the middle of a list, the next challenge is identifying if a list is “broken.” In a normal Linked List, you eventually hit None. But…
-
ArticlePython
Build a Smart Expense Tracker using Linked List in Python | DSA Project
by Mahesh Vermaby Mahesh VermaStop Learning Linked List, Start Building a Real Project Have you ever completed multiple videos on Linked List—like insertion, deletion, traversal, searching, reversing—and still wondered: “Where do we actually use…
-
ArticlePython
Build a Smart Expense Manager in Python (Streamlit Project)
by Mahesh Vermaby Mahesh VermaStop Learning, Build This PRO App in 60 Minutes Have you ever finished a Python course, learned how to write loops and functions, but still felt stuck when asked to…
-
ArticlePython Programs
Find Middle of Linked List in Python (Step-by-Step) | Fast & Slow Pointer Trick | LeetCode 876
by Mahesh Vermaby Mahesh VermaFinding the middle of a Linked List is one of the most important and frequently asked interview questions. It is also asked on LeetCode Problem 876 – Middle of the…
-
Practice Question 6 In this question, we will read a text file and find all the palindromic words present in it. A palindrome is a word that reads the same…
-
ArticleJAVA Programming
Exploring ArrayList in Java: A Powerful Dynamic Array Implementation
by Mahesh Vermaby Mahesh VermaIn the world of Java programming, efficient handling and manipulation of data structures is vital for creating robust and scalable applications. One such essential component of the Java Collections Framework…
-
Programming ChallengesPython Programming Challenges
Python Coding Challenge1 : Check for Pangram
by Mahesh Vermaby Mahesh VermaPython Coding Challenge 1 : Check for Pangram A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence “The quick…