排序
Rabin Karp (hashing) String pattern matching
Rabin Karp (hashing) String pattern matching, Important algorithms (3 Part Series) 1 Kadane's Algorithm 2 Knuth Morris Prat algorithm[Pattern Matching] 3 Rabin Karp (hashing) Strin...
1768. Merge Strings Alternately
1768. Merge Strings Alternately,Hey coders! Hope you're doing well. I'm excited to share my solutions for the LeetCode-75 series, which covers 75 essential problems to help you pre...
Leetcode 75. Sort Colors
Leetcode 75. Sort Colors, Intuition The basic intuition comes from sorting. Approach In the naive approach, we can sort the array using inbuilt sorting function. The time complexit...
Understanding the XOR Operator: A Powerful Tool in Computing
Understanding the XOR Operator: A Powerful Tool in Computing,The XOR operator, short for Exclusive OR, is a fundamental concept in computer science, mathematics, and digital logic....
Kadane’s Algorithm: Leetcode 53 Maximum subarray
Kadane's Algorithm: Leetcode 53 Maximum subarray, Intuition We can build the intuition based on the two-point approach. Approach We will start with two variables maxSum and maxTill...
Leetcode — 2942. Find Words Containing Character
Leetcode — 2942. Find Words Containing Character,It’s an easy problem with description being: You are given a 0-indexed array of strings words and a character x. Return an array ...
Leetcode — 3289. The Two Sneaky Numbers of Digitville
Leetcode — 3289. The Two Sneaky Numbers of Digitville,It’s an easy problem with description being: In the town of Digitville, there was a list of numbers called nums containing i...
Range sum query 2D – Immutable
Range sum query 2D - Immutable, Range queries (4 Part Series) 1 Range Sum Query - Immutable 2 Count vowel strings in ranges 3 Range sum query 2D - Immutable 4 No of ways to split A...
🧩 LeetCode Challenge: Remove Element | Top Interview Questions [Java Solution]
🧩 LeetCode Challenge: Remove Element | Top Interview Questions [Java Solution], Introduction In this classic LeetCode problem, you’ll be working with arrays in a practical way to...
🧩 LeetCode Challenge: Merge Sorted Array | Top Interview Questions [Java Solution]
🧩 LeetCode Challenge: Merge Sorted Array | Top Interview Questions [Java Solution], Introduction If you're preparing for coding interviews, especially for roles in FAANG or simila...
Leetcode — 3190. Find Minimum Operations to Make All Elements Divisible by Three
Leetcode — 3190. Find Minimum Operations to Make All Elements Divisible by Three,This is an easy problem with description being: You are given an integer array nums. In one operat...
Synchronizing Threads with Semaphores: Practicing Concurrency in Java – LeetCode Problem 1115, “Print FooBar Alternately”
Synchronizing Threads with Semaphores: Practicing Concurrency in Java - LeetCode Problem 1115, 'Print FooBar Alternately',Introduction to Concurrency In software development, concu...