#Easy
130 posts
LintCode 845 Greatest Common Divisor - Easy
845. Greatest Common Divisor
LintCode 839 Merge Two Sorted Interval Lists - Easy
839. Merge Two Sorted Interval Lists
LintCode 628 Maximum Subtree - Easy
628. Maximum Subtree
LintCode 604 Window Sum - Easy
604. Window Sum
LintCode 6 Merge Two Sorted Arrays - Easy
6. 合并排序数组 II
LintCode 596 Minimum Subtree - Easy
596. Minimum Subtree
LintCode 560 Friendship Service - Easy
560. Friendship Service
LintCode 521 Remove Duplicate Numbers In Array - Easy
521. Remove Duplicate Numbers in Array
LintCode 494 Implement Stack By Two Queues - Easy
494. Implement Stack by Two Queues
LintCode 492 Implement Queue By Linked List - Easy
492. Implement Queue by Linked List
LintCode 474 Lowest Common Ancestor II - Easy
474. Lowest Common Ancestor II
LintCode 464 Sort Integers II - Easy
464. 整数排序 II
LintCode 462 Total Occurrence Of Target - Easy
462. Total Occurrence of Target
LintCode 458 Last Position Of Target - Easy
458. Last Position of Target
LintCode 39 Recover Rotated Sorted Array - Easy
39. Recover Rotated Sorted Array
LintCode 373 Partition Arrayby Oddand Even - Easy
373. Partition Array by Odd and Even
LintCode 254 Drop Eggs - Easy
254. Drop Eggs
LintCode 235 Prime Factorization - Easy
235. Prime Factorization
LintCode 211 String Permutation - Easy
211. String Permutation
LintCode 1790 Rotate String II - Easy
1790. Rotate String II
LintCode 1479 Can Reach The Endpoint - Easy
1479. Can Reach The Endpoint
LintCode 14 First Position Of Target - Easy
14. First Position of Target
LintCode 1343 Sum Of Two Strings - Easy
1343. Sum of Two Strings
LintCode 1331 English Software - Easy
1331. English Software
LintCode 128 Hash Function - Easy
128. Hash Function
LintCode 1166 Recommended Results Are Scattered - Easy
1166. Recommended Results are Scattered
LeetCode 977 Squares Of A Sorted Array - Easy
Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing…
LeetCode 937 Reorder Data In Log Files - Easy
937. Reorder Data in Log Files
LeetCode 914 X Of A Kind In A Deck Of Cards - Easy
914. X of a Kind in a Deck of Cards -- Easy
LeetCode 905 Sort Array By Parity - Easy
905. Sort Array By Parity
LeetCode 88 Merge Sorted Array - Easy
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
LeetCode 852 Peak Index In A Mountain Array - Easy
852. Peak Index in a Mountain Array
LeetCode 83 Remove Duplicates From Sorted List - Easy
83. Remove Duplicates from Sorted List
LeetCode 819 Most Common Word - Easy
819. Most Common Word
LeetCode 811 Subdomain Visits - Easy
811. Subdomain Visit Count -- Easy
LeetCode 796 Rotate String - Easy
796. Rotate String -- Easy
LeetCode 771 Jewels And Stones - Easy
You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is …
LeetCode 716 Max Stack - Easy
716. Max Stack
LeetCode 706 Design Hash Map - Easy
706. Design HashMap -- Easy
LeetCode 704 Binary Search - Easy
Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If ta…
LeetCode 703 Kth Largest Element In A Stream - Easy
703. Kth Largest Element in a Stream
LeetCode 70 Climbing Stairs - Easy
70. Climbing Stairs -- Easy
LeetCode 697 Degree Of An Array - Easy
LeetCode 682 Maximum Product Of Three Numbers - Easy
628. Maximum Product of Three Numbers -- Easy
LeetCode 680 Valid Palindrome II - Easy
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.
LeetCode 674 Longest Continuous Increasing Subsequence - Easy
Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).
LeetCode 67 Add Binary - Easy
67. Add Binary -- Easy
LeetCode 66 Plus One - Easy
66. Plus One
LeetCode 589 N-ary Tree Preorder Traversal - Easy
589. N-ary Tree Preorder Traversal -- Easy
LeetCode 581 Shortest Unsorted Continuous Subarray - Easy
581. Shortest Unsorted Continuous Subarray
LeetCode 58 Length Of Last Word - Easy
58. Length of Last Word
LeetCode 561 Array Partition I - Easy
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which …
LeetCode 543 Diameter Of Binary Tree - Easy
543. Diameter of Binary Tree -- Easy
LeetCode 509 Fibonacci Number - Easy
The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two …
LeetCode 500 Keyboard Row - Easy
500. Keyboard Row -- Easy
LeetCode 485 Max Consecutive Ones - Easy
Given a binary array, find the maximum number of consecutive 1s in this array.
LeetCode 463 Island Perimeter - Easy
463. Island Perimeter -- Easy
LeetCode 448 Find All Numbers Disappered In An Array - Easy
448. Find All Numbers Disappeared in an Array -- Easy
LeetCode 441 Arranging Coins - Easy
441. Arranging Coins -- Easy
LeetCode 415 Add Strings - Easy
415. Add Strings -- Easy
LeetCode 412 Fizz Buzz - Easy
412. Fizz Buzz -- Easy
LeetCode 409 Longest Palindrome - Easy
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those …
LeetCode 389 Find The Difference - Easy
389. Find the Difference -- Easy
LeetCode 387 First Unique Character In A String - Easy
387. First Unique Character in a String
LeetCode 383 Ransom Note - Easy
Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return tru…
LeetCode 38 Count And Say - Easy
38. Count and Say
LeetCode 350 Intersection Of Two Arrays II - Easy
350. Intersection of Two Arrays II -- Easy
LeetCode 35 Search Insert Position - Easy
35. Search Insert Position
LeetCode 349 Intersection Of Two Arrays - Easy
349. Intersection of Two Arrays
LeetCode 346 Moving Average From Data Stream - Easy
346. Moving Average from Data Stream
LeetCode 344 Reverse String - Easy
Write a function that reverses a string. The input string is given as an array of characters char[].
LeetCode 292 Nim Game - Easy
292. Nim Game -- Easy
LeetCode 283 Move Zeros - Easy
283. Move Zeroes
LeetCode 28 Implementstr Str() - Easy
Implement strStr().
LeetCode 278 First Bad Version - Easy
278. First Bad Version
LeetCode 270 Closest Binary Search Tree Value - Easy
270. Closest Binary Search Tree Value
LeetCode 27 Remove Element - Easy
27. Remove Element
LeetCode 268 Missing Number - Easy
268. Missing Number
LeetCode 26 Remove Duplicatesfrom Sorted Array - Easy
26. Remove Duplicates from Sorted Array
LeetCode 258 Add Digits - Easy
258. Add Digits -- Easy
LeetCode 257 B Inary Tree Paths - Easy
257. Binary Tree Paths
LeetCode 256 Paint House - Easy
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house …
LeetCode 252 Meeting Rooms - Easy
252. Meeting Rooms -- Easy
LeetCode 242 Valid Anagram - Easy
242. Valid Anagram
LeetCode 235 Lowest Common Ancestor Of A Binary Search Tree - Easy
235. Lowest Common Ancestor of a Binary Search Tree -- Easy
LeetCode 234 Palindrome Linked List - Easy
234. Palindrome Linked List
LeetCode 232 Implement Queue Using Stacks - Easy
232. Implement Queue using Stacks
LeetCode 226 Invert Binary Tree - Easy
LeetCode 225 Implement Stack Using Queues - Easy
225. Implement Stack using Queues
LeetCode 219 Contains Duplicate II - Easy
219. Contains Duplicate II -- Easy
LeetCode 217 Contains Duplicate - Easy
217. Contains Duplicate -- Easy
LeetCode 21 Merge Two Sorted Lists - Easy
21. Merge Two Sorted Lists
LeetCode 206 Reverse Linked List - Easy
Reverse a singly linked list.
LeetCode 204 Count Primes - Easy
Count the number of prime numbers less than a non-negative number, n.
LeetCode 203 Remove Linked List Elements - Easy
203. Remove Linked List Elements
LeetCode 20 Valid Parentheses - Easy
20. Valid Parentheses
LeetCode 198 House Robber - Easy
198. House Robber -- Easy
LeetCode 170 Two Sum III-Data Structure Design - Easy
170. Two Sum III - Data structure design
LeetCode 169 Majority Element - Easy
169. Majority Element
LeetCode 167 Two Sum II-Input Array Is Sorted - Easy
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
LeetCode 1603 Design Parking System - Easy
1603. Design Parking System -- Easy
LeetCode 160 Intersection Of Two Linked Lists - Easy
160. Intersection of Two Linked Lists
LeetCode 155 Min Stack - Easy
155. Min Stack
LeetCode 1528 Shuffle String - Easy
1528. Shuffle String -- Easy
LeetCode 1480 Running Sum Of1 D Array - Easy
1480. Running Sum of 1d Array -- Easy
LeetCode 1470 Shuffle The Array - Easy
1470. Shuffle the Array -- Easy
LeetCode 1455 Check If A Word Occurs As A Prefix Of Any Word In A Sentence - Easy
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
LeetCode 1431 Kids With The Greatest Number Of Candies - Easy
1431. Kids With the Greatest Number of Candies -- Easy
LeetCode 141 Linked List Cycle - Easy
141. Linked List Cycle
LeetCode 14 Longest Common Prefix - Easy
14. Longest Common Prefix
LeetCode 1374 Generate A String With Characters That Have Odd Counts - Easy
1374. Generate a String With Characters That Have Odd Counts -- Easy
LeetCode 1365 How Many Numbers Are Smaller Than The Current Number - Easy
1365. How Many Numbers Are Smaller Than the Current Number -- Easy
LeetCode 136 Single Number - Easy
136. Single Number -- Easy
LeetCode 13 Roman To Integer - Easy
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
LeetCode 1295 Find Numbers With Even Number Of Digits - Easy
Given an array nums of integers, return how many of them contain an even number of digits.
LeetCode 1290 Convert Binary Number In A Linked List To Integer - Easy
Binary to Decimal from Linked List:
LeetCode 1266 Minimum Time Visiting All Points - Easy
1266. Minimum Time Visiting All Points -- Easy
LeetCode 125 Valid Palindrome - Easy
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
LeetCode 122 Best Time To Buy And Sell Stock II - Easy
Say you have an array prices for which the ith element is the price of a given stock on day i.
LeetCode 121 Best Time To Buy And Sell Stock - Easy
Say you have an array for which the ith element is the price of a given stock on day i.
LeetCode 1200 Minimum Absolute Difference - Easy
1200. Minimum Absolute Difference -- Easy
LeetCode 112 Path Sum - Easy
112. Path Sum -- Easy
LeetCode 111 Minimum Depth Of Binary Tree - Easy
111. Minimum Depth of Binary Tree -- Easy
LeetCode 110 Balanced Binary Tree - Easy
110. Balanced Binary Tree
LeetCode 1099 Two Sum Less Than K - Easy
Given an array A of integers and integer K, return the maximum S such that there exists i < j with A[i] + A[j] = S and S < K. If no i, j …
LeetCode 1089 Duplicate Zeros - Easy
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.
LeetCode 1051 Height Checker - Easy
1051. Height Checker -- Easy
LeetCode 104 Maximum Depth Of Binary Tree - Easy
104. Maximum Depth of Binary Tree
LeetCode 101 Symmetric Tree - Easy
101. Symmetric Tree -- Easy
LeetCode 100 Same Tree - Easy
100. Same Tree -- Easy