Leetcode - 146. LRU Cache

Leetcode - 146. LRU Cache
🔁 Building an LRU Cache in JavaScript (The Right Way) Imagine you're building a browser, an in-memory database, or any service where you want to store recently accessed items and automatic...
0 Read More

1534. Count Good Triplets

1534. Count Good TripletsDifficulty: EasyTopics: Array, EnumerationGiven an array of integers arr, and three integers a, b and c. You need to find the number of good triplets.A triplet (arr[i], arr[j]...
0 Read More

2179. Count Good Triplets in an Array

2179. Count Good Triplets in an ArrayDifficulty: HardTopics: Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered SetYou are given two 0-indexed arrays nums...
0 Read More

38. Count and Say

38. Count and SayDifficulty: MediumTopics: StringThe count-and-say sequence is a sequence of digit strings defined by the recursive formula: countAndSay(1) = "1" countAndSay(n) is the run-length enco...
0 Read More