LLilSardarXinlilsardarxcodes.hashnode.devยทMay 21, 2025 ยท 4 min readLC #49: Group Anagrams๐ง Problem Statement Given an array of strings, group the anagrams together. Return the grouped anagrams as a list of lists. ๐ Leetcode Link Group Anagrams โ Leetcode #49 ๐ก Intuition Anagrams share the same characters. If you sort their letter...00
LLilSardarXinlilsardarxcodes.hashnode.devยทMay 21, 2025 ยท 3 min readLC #242: Valid Anagrams๐ง Problem Statement Given two strings s and t, return true if t is an anagram of s, and false otherwise.An anagram uses the same characters and the same frequency, but in any order. ๐ Leetcode Link Valid Anagram โ LC #242 ๐ฅ Brute Force // gen...00
LLilSardarXinlilsardarxcodes.hashnode.devยทMay 21, 2025 ยท 2 min readLC #217: Contains Duplicate๐ง Problem Statement Check if any element appears more than once in the array. ๐ Leetcode Link Contains Duplicate - LC #217 ๐ฅ Brute Force for (int i = 0; i < nums.length; i++) { for (int j = i + 1; j < nums.length; j++) { if (nums[...00
LLilSardarXinlilsardarxcodes.hashnode.devยทMay 18, 2025 ยท 2 min readRevision: Binary SearchThis is a quick revision sheet for Binary Search DSA pattern.๐ Here is the link to the OG full-length post Binary Search Pattern โ The Interviewer's Favorite Use this page for last-minute interview prep, fast memory refresh, or revisiting key templa...00
LLilSardarXinlilsardarxcodes.hashnode.devยทMay 18, 2025 ยท 20 min readDSA Patterns: Binary Search๐ Binary Search Pattern โ The Interviewer's Favorite ๐ง TL;DR - What to Focus On This guide is long โ but structured. Use the Table of Contents (TOC) as your best friend to glance, skim, or jump around. Here's where to go based on your goal: โ Just...00