Stories, Tutorials
& Life Tips
Deep dives on coding, health, recipes, travel and everything in between.
π Explore Reading Paths
Follow curated journeys from beginner to expert
Remove Duplicates from Sorted List - Linked List - Easy - LeetCode
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1->2Output: 1->2Example 2: Input: 1->1->2->3->3Output: 1->2->β¦
Merge Two Sorted Lists - Linked List - Easy - LeetCode
Merge two sorted linked lists and return it as a new sorted list. The new list should be made by splicing together the nβ¦
Unique Number of Occurrences - Hash Table - Easy - LeetCode
Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each valuβ¦
Occurrences After Bigram - Hash Table - Easy - LeetCode
Given words first and second, consider occurrences in some text of the form "first second third", where second comes immβ¦
Powerful Integers - Hash Table - Easy - LeetCode
Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and β¦
N-Repeated Element in Size 2N Array - Hash Table - Easy - LeetCode
In an array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return tβ¦
Verifying an Alien Dictionary - Hash Table - Easy - LeetCode
In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The orderβ¦
Uncommon Words from Two Sentences - Hash Table - Easy - LeetCode
We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists onlβ¦
Subdomain Visit Count - Hash Table - Easy - LeetCode
A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the nexβ¦
Jewels and Stones - Hash Table - Easy - LeetCode
You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Eβ¦
Shortest Completing Word
Given a string licensePlate and an array of strings words, find the shortest completing word in words. A completing wordβ¦
What is an annular solar eclipse?
As the name suggests it is a solar eclipse. There are three major types of solar eclipses. The total solar eclipse, partβ¦
Longest Word in Dictionary - Hash Table - Easy - LeetCode
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one cβ¦
Design HashMap - Hash Table - Easy - LeetCode
Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functβ¦
Design HashSet - Hash Table - Easy - LeetCode
Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functβ¦