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…
Python Programming
-
ArticleData Structure
-
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…
-
Data Structure
Reverse a Linked List in Python (Step-by-Step) | Store-Todo-Jodo-Aage Badho Trick | Dry Run & Code
by Mahesh Vermaby Mahesh VermaReversing a Singly Linked List is a classic interview question that often confuses beginners. The logic of moving pointers can feel like a game of musical chairs where someone always…
-
Previous Year Questions Papers
Python Programming END TERM EXAMINATION – Dec 2025
by Mahesh Vermaby Mahesh VermaEND TERM EXAMINATION Third Semester[BCA] Dec 2025-Jan, 2026 Paper Code: BCA-201T Subject : Python Programming Time:3 Hours Maximum Marks:60 Note: Attempt five questions in all including Q.No.1 which is…
-
Python functions are a powerful tool for writing efficient and reusable code. They allow you to break down complex tasks into smaller, more manageable pieces of code. One key feature…