leetcode共46篇
Rabin Karp (hashing) String pattern matching-拾光赋

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...
kity的头像-拾光赋kity2天前
0517
1768. Merge Strings Alternately-拾光赋

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...
kity的头像-拾光赋kity2天前
0427
Leetcode 75. Sort Colors-拾光赋

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...
kity的头像-拾光赋kity2天前
0238
Understanding the XOR Operator: A Powerful Tool in Computing-拾光赋

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....
kity的头像-拾光赋kity2天前
0325
Kadane's Algorithm: Leetcode 53 Maximum subarray-拾光赋

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...
kity的头像-拾光赋kity3天前
02912
Leetcode — 2942. Find Words Containing Character-拾光赋

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 ...
kity的头像-拾光赋kity3天前
02110
Leetcode — 3289. The Two Sneaky Numbers of Digitville-拾光赋

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...
kity的头像-拾光赋kity12天前
03915
Range sum query 2D - Immutable-拾光赋

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...
kity的头像-拾光赋kity12天前
03515
🧩 LeetCode Challenge: Remove Element | Top Interview Questions [Java Solution]-拾光赋

🧩 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...
kity的头像-拾光赋kity17天前
03514
🧩 LeetCode Challenge: Merge Sorted Array | Top Interview Questions [Java Solution]-拾光赋

🧩 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...
kity的头像-拾光赋kity19天前
04814
Leetcode — 3190. Find Minimum Operations to Make All Elements Divisible by Three-拾光赋

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...
kity的头像-拾光赋kity26天前
0325
Synchronizing Threads with Semaphores: Practicing Concurrency in Java - LeetCode Problem 1115,

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...
kity的头像-拾光赋kity1个月前
02515