1,724 articles across 10 categories

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
Featured

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->…

1 min read30 Sept 2020
Read article
Merge Two Sorted Lists - Linked List - Easy - LeetCode

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…

1 min30 Sept
Unique Number of Occurrences - Hash Table - Easy - LeetCode

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…

1 min30 Sept
Occurrences After Bigram - Hash Table - Easy - LeetCode

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…

1 min30 Sept
Powerful Integers - Hash Table - Easy - LeetCode

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 …

1 min30 Sept
N-Repeated Element in Size 2N Array - Hash Table - Easy - LeetCode

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…

1 min30 Sept
Verifying an Alien Dictionary - Hash Table - Easy - LeetCode

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…

1 min30 Sept
Uncommon Words from Two Sentences - Hash Table - Easy - LeetCode

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…

1 min30 Sept
Subdomain Visit Count - Hash Table - Easy - LeetCode

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…

2 min30 Sept
Jewels and Stones - Hash Table - Easy - LeetCode

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…

1 min30 Sept
Shortest Completing Word

Shortest Completing Word

Given a string licensePlate and an array of strings words, find the shortest completing word in words. A completing word…

2 min30 Sept
What is an annular solar eclipse?

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…

1 min30 Sept
Longest Word in Dictionary - Hash Table - Easy - LeetCode

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…

1 min29 Sept
Design HashMap - Hash Table - Easy - LeetCode

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…

2 min29 Sept
Design HashSet - Hash Table - Easy - LeetCode

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…

1 min29 Sept
Blog β€” Page 18 | AskGif