TVThrishali Vittalinmycodingchallenge.hashnode.dev·Jul 28 · 5 min readDay 7 – Solving Longest Common Prefix in PythonOne of the common string problems asked in coding interviews is Longest Common Prefix. At first glance, the problem seems straightforward, but it teaches us how to compare multiple strings efficiently00
TVThrishali Vittalinmycodingchallenge.hashnode.dev·Jul 27 · 6 min readLeetCode Day 6: Valid Parentheses – Python Solution The Valid Parentheses problem is one of the most popular beginner-friendly stack problems on LeetCode. It teaches you how to process nested structures efficiently and introduces the concept of Last In00
TVThrishali Vittalinmycodingchallenge.hashnode.dev·Jul 24 · 5 min readLeetcode Day 5 – Solving Valid Parentheses Using a Stack in PythonWhen I first looked at the Valid Parentheses problem, it seemed simple because it only involved brackets. But after trying a few test cases, I realized that the challenge is keeping track of the order00
TVThrishali Vittalinmycodingchallenge.hashnode.dev·Jul 23 · 4 min readLeetCode Day 4: Two Sum (Brute Force) | Python In this article, we'll break down the brute-force solution step by step. Problem Statement Given an array of integers nums and an integer target, return the indices of the two numbers such that they 00
TVThrishali Vittalinmycodingchallenge.hashnode.dev·Jul 22 · 4 min readLeetCode Day 3 – Palindrome Number (Python) A palindrome number is a number that reads the same forward and backward. Examples Example 1 Input: x = 121 Output: True Because reading 121 from left to right and right to left gives the same number00