GGunjan C.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. Today1leetcodevisualized.hashnode.dev
AAnkit kumar SinghJul 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 ankitsingh2003.hashnode.dev
PPuja JorwarJun 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 ispujajorwar.hashnode.dev
AAJIT KUMAR PANDITApr 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 toajitkumarpandit.nakprc.com
SSyed Faysel Ahammad RajoMar 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 faysel.hashnode.dev
HhimanshuFeb 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...blogs-himanshu.hashnode.dev
HhimanshuFeb 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...blogs-himanshu.hashnode.dev
HhimanshuFeb 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...blogs-himanshu.hashnode.dev
HhimanshuFeb 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...blogs-himanshu.hashnode.dev
AARCHANA GURUSAMYFeb 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...archana-code-diary.hashnode.dev