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
Ugly Number - Math - Easy - LeetCode
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example 1: Input: 6Output: trueExplanation: 6 = 2 ×…
Add Digits - Math - Easy - LeetCode
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38O…
Power of Two - Math - Easy - LeetCode
Given an integer n, write a function to determine if it is a power of two. Example 1: Input: n = 1Output: trueExp…
Factorial Trailing Zeroes - Math - Easy - LeetCode
Given an integer n, return the number of trailing zeroes in n!. Follow up: Could you write a solution that works in loga…
Excel Sheet Column Number - Math - Easy - LeetCode
Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -…
Excel Sheet Column Title - Math - Easy - LeetCode
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: …
Sqrt(x) (newtons method) - Math - Easy - LeetCode
Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. …
Palindrome Number - Math - Easy - LeetCode
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Exa…
Convert Binary Number in a Linked List to Integer - Linked List - Easy - LeetCode
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1…
Middle of the Linked List - Linked List - Easy - LeetCode
Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle …
Delete Node in a Linked List - Linked List - Easy - LeetCode
Write a function to delete a node in a singly-linked list. You will not be given access to the head of the list, instead…
Palindrome Linked List - Linked List - Easy - LeetCode
Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2Output: falseExample 2: Input: 1-&…
Remove Linked List Elements - Linked List - Easy - LeetCode
Remove all elements from a linked list of integers that have value val. Example: Input: 1->2->6->3->4-…
Intersection of Two Linked Lists - Linked List - Easy - LeetCode
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following…
Linked List Cycle - Linked List - Easy - LeetCode
Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list…