GCGunjan C.inleetcodevisualized.hashnode.dev·Jul 17 · 4 min readLeetCode #01 | 2390. Removing Stars From a String | Stack Approach | Java, C & Python👋 Introduction Welcome to LeetCode Visualized! In this series, we'll solve LeetCode problems using visual explanations, intuitive walkthroughs, and clean implementations in Java, Python, and C. Today10
AKAnkit kumar Singhinankitsingh2003.hashnode.dev·Jul 11 · 7 min read🚀 Mastering LeetCode 611: Valid Triangle Number | From Brute Force to Two Pointers (Complete Beginner Guide) Introduction When I first solved this problem, my first thought was: "Let's check every possible triplet." That solution works, but it has a time complexity of O(n³). Then I looked at the optimized 00
PJPuja Jorwarinpujajorwar.hashnode.dev·Jun 30 · 7 min readNext Permutation — The 3-Step Algorithm That Made Everything ClickMost solutions I found online just showed me code with zero explanation of why it works.After solving this problem, I finally understood the pattern. Let me save you the confusion. 📖 First — What is00
AKAJIT KUMAR PANDITinajitkumarpandit.nakprc.com·Apr 24 · 6 min readFinding Triplets That Sum to Zero: A Deep Dive into threeSumHello everyone! Today, we're going to unravel a classic problem in computer science: finding all unique triplets in an array that sum up to zero. This is a common interview question and a great way to00
SFSyed Faysel Ahammad Rajoinfaysel.hashnode.dev·Mar 11 · 6 min readLearning DSA with JavaA focused 15-day plan can give you a fast, practical start in data structures and algorithms (DSA) using Java. The goal of this plan is not to make you an expert in two weeks, but to give you a solid 00
Hhimanshuinblogs-himanshu.hashnode.dev·Feb 13 · 2 min readDay 11 - Two Integer Sum IIQuestion Given an array of integers numbers that is sorted in non-decreasing order. Return the indices (1-indexed) of two numbers, [index1, index2], such that they add up to a given target number target and index1 < index2. Note that index1 and index...00
Hhimanshuinblogs-himanshu.hashnode.dev·Feb 12 · 2 min readDay 10 - Valid PalindromeQuestion Given a string s, return true if it is a palindrome, otherwise return false. A palindrome is a string that reads the same forward and backward. It is also case-insensitive and ignores all non-alphanumeric characters. Note: Alphanumeric chara...00
Hhimanshuinblogs-himanshu.hashnode.dev·Feb 11 · 3 min readDay 9 - Longest Consecutive SequenceQuestion Given an array of integers nums, return the length of the longest consecutive sequence of elements that can be formed. A consecutive sequence is a sequence of elements in which each element is exactly 1 greater than the previous element. The...00
Hhimanshuinblogs-himanshu.hashnode.dev·Feb 5 · 5 min readDay 4 - Group AnagramsQuestion Given an array of strings strs, group all anagrams together into sublists. You may return the output in any order. An anagram is a string that contains the exact same characters as another string, but the order of the characters can be diffe...00
AGARCHANA GURUSAMYinarchana-code-diary.hashnode.dev·Feb 4 · 2 min readProblem: Leet Code 7 - Reverse IntegerQUESTION: Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-2<sup>31</sup>, 2<sup>31</sup> - 1], then return 0. Assume the environment does not allow yo...00