MUYANG GUO / INDEX

#Easy

130 posts

1m

LintCode 845 Greatest Common Divisor - Easy

845. Greatest Common Divisor

· LintCode· Easy· Python
1m

LintCode 839 Merge Two Sorted Interval Lists - Easy

839. Merge Two Sorted Interval Lists

· LintCode· Easy· Python
1m

LintCode 628 Maximum Subtree - Easy

628. Maximum Subtree

· LintCode· Easy· Python
1m

LintCode 604 Window Sum - Easy

604. Window Sum

· LintCode· Easy· Python
1m

LintCode 6 Merge Two Sorted Arrays - Easy

6. 合并排序数组 II

· LintCode· Easy· Python
2m

LintCode 596 Minimum Subtree - Easy

596. Minimum Subtree

· LintCode· Easy· Python
1m

LintCode 560 Friendship Service - Easy

560. Friendship Service

· LintCode· Easy· Python
1m

LintCode 521 Remove Duplicate Numbers In Array - Easy

521. Remove Duplicate Numbers in Array

· LintCode· Easy· Python
1m

LintCode 494 Implement Stack By Two Queues - Easy

494. Implement Stack by Two Queues

· LintCode· Easy· Python
1m

LintCode 492 Implement Queue By Linked List - Easy

492. Implement Queue by Linked List

· LintCode· Easy· Python
1m

LintCode 474 Lowest Common Ancestor II - Easy

474. Lowest Common Ancestor II

· LintCode· Easy· Python
3m

LintCode 464 Sort Integers II - Easy

464. 整数排序 II

· LintCode· Easy· Python
1m

LintCode 462 Total Occurrence Of Target - Easy

462. Total Occurrence of Target

· LintCode· Easy· Python
1m

LintCode 458 Last Position Of Target - Easy

458. Last Position of Target

· LintCode· Easy· Python
1m

LintCode 39 Recover Rotated Sorted Array - Easy

39. Recover Rotated Sorted Array

· LintCode· Easy· Python
1m

LintCode 373 Partition Arrayby Oddand Even - Easy

373. Partition Array by Odd and Even

· LintCode· Easy· Python
1m

LintCode 254 Drop Eggs - Easy

254. Drop Eggs

· LintCode· Easy· Python
1m

LintCode 235 Prime Factorization - Easy

235. Prime Factorization

· LintCode· Easy· Python
1m

LintCode 211 String Permutation - Easy

211. String Permutation

· LintCode· Easy· Python
1m

LintCode 1790 Rotate String II - Easy

1790. Rotate String II

· LintCode· Easy· Python
1m

LintCode 1479 Can Reach The Endpoint - Easy

1479. Can Reach The Endpoint

· LintCode· Easy· Python
1m

LintCode 14 First Position Of Target - Easy

14. First Position of Target

· LintCode· Easy· Python
1m

LintCode 1343 Sum Of Two Strings - Easy

1343. Sum of Two Strings

· LintCode· Easy· Python
1m

LintCode 1331 English Software - Easy

1331. English Software

· LintCode· Easy· Python
1m

LintCode 128 Hash Function - Easy

128. Hash Function

· LintCode· Easy· Python
2m

LintCode 1166 Recommended Results Are Scattered - Easy

1166. Recommended Results are Scattered

· LintCode· Easy· Python
1m

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· Easy· Python
1m

LeetCode 937 Reorder Data In Log Files - Easy

937. Reorder Data in Log Files

· LeetCode· Easy· Python
1m

LeetCode 914 X Of A Kind In A Deck Of Cards - Easy

914. X of a Kind in a Deck of Cards -- Easy

· LeetCode· Easy· Python
1m

LeetCode 905 Sort Array By Parity - Easy

905. Sort Array By Parity

· LeetCode· Easy· Python
1m

LeetCode 88 Merge Sorted Array - Easy

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

· LeetCode· Easy· Python
1m

LeetCode 852 Peak Index In A Mountain Array - Easy

852. Peak Index in a Mountain Array

· LeetCode· Easy· Python
1m

LeetCode 83 Remove Duplicates From Sorted List - Easy

83. Remove Duplicates from Sorted List

· LeetCode· Easy· Python
2m

LeetCode 819 Most Common Word - Easy

819. Most Common Word

· LeetCode· Easy· Python
2m

LeetCode 811 Subdomain Visits - Easy

811. Subdomain Visit Count -- Easy

· LeetCode· Easy· Python
1m

LeetCode 796 Rotate String - Easy

796. Rotate String -- Easy

· LeetCode· Easy· Python
1m

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· Easy· Python
2m

LeetCode 716 Max Stack - Easy

716. Max Stack

· LeetCode· Easy· Python
2m

LeetCode 706 Design Hash Map - Easy

706. Design HashMap -- Easy

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

LeetCode 703 Kth Largest Element In A Stream - Easy

703. Kth Largest Element in a Stream

· LeetCode· Easy· Python
1m

LeetCode 70 Climbing Stairs - Easy

70. Climbing Stairs -- Easy

· LeetCode· Easy· Python
3m

LeetCode 697 Degree Of An Array - Easy

· LeetCode· Easy· Python
1m

LeetCode 682 Maximum Product Of Three Numbers - Easy

628. Maximum Product of Three Numbers -- Easy

· LeetCode· Easy· Python
1m

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· Easy· Python
3m

LeetCode 674 Longest Continuous Increasing Subsequence - Easy

Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).

· LeetCode· Easy· Python
1m

LeetCode 67 Add Binary - Easy

67. Add Binary -- Easy

· LeetCode· Easy· Python
1m

LeetCode 66 Plus One - Easy

66. Plus One

· LeetCode· Easy· Python
1m

LeetCode 589 N-ary Tree Preorder Traversal - Easy

589. N-ary Tree Preorder Traversal -- Easy

· LeetCode· Easy· Python
2m

LeetCode 581 Shortest Unsorted Continuous Subarray - Easy

581. Shortest Unsorted Continuous Subarray

· LeetCode· Easy· Python
1m

LeetCode 58 Length Of Last Word - Easy

58. Length of Last Word

· LeetCode· Easy· Python
2m

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· Easy· Python
1m

LeetCode 543 Diameter Of Binary Tree - Easy

543. Diameter of Binary Tree -- Easy

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

LeetCode 500 Keyboard Row - Easy

500. Keyboard Row -- Easy

· LeetCode· Easy· Python
1m

LeetCode 485 Max Consecutive Ones - Easy

Given a binary array, find the maximum number of consecutive 1s in this array.

· LeetCode· Easy· Python
2m

LeetCode 463 Island Perimeter - Easy

463. Island Perimeter -- Easy

· LeetCode· Easy· Python
1m

LeetCode 448 Find All Numbers Disappered In An Array - Easy

448. Find All Numbers Disappeared in an Array -- Easy

· LeetCode· Easy· Python
1m

LeetCode 441 Arranging Coins - Easy

441. Arranging Coins -- Easy

· LeetCode· Easy· Python
1m

LeetCode 415 Add Strings - Easy

415. Add Strings -- Easy

· LeetCode· Easy· Python
1m

LeetCode 412 Fizz Buzz - Easy

412. Fizz Buzz -- Easy

· LeetCode· Easy· Python
2m

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· Easy· Python
1m

LeetCode 389 Find The Difference - Easy

389. Find the Difference -- Easy

· LeetCode· Easy· Python
1m

LeetCode 387 First Unique Character In A String - Easy

387. First Unique Character in a String

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

LeetCode 38 Count And Say - Easy

38. Count and Say

· LeetCode· Easy· Python
2m

LeetCode 350 Intersection Of Two Arrays II - Easy

350. Intersection of Two Arrays II -- Easy

· LeetCode· Easy· Python
1m

LeetCode 35 Search Insert Position - Easy

35. Search Insert Position

· LeetCode· Easy· Python
1m

LeetCode 349 Intersection Of Two Arrays - Easy

349. Intersection of Two Arrays

· LeetCode· Easy· Python
1m

LeetCode 346 Moving Average From Data Stream - Easy

346. Moving Average from Data Stream

· LeetCode· Easy· Python
1m

LeetCode 344 Reverse String - Easy

Write a function that reverses a string. The input string is given as an array of characters char[].

· LeetCode· Easy· Python
1m

LeetCode 292 Nim Game - Easy

292. Nim Game -- Easy

· LeetCode· Easy· Python
1m

LeetCode 283 Move Zeros - Easy

283. Move Zeroes

· LeetCode· Easy· Python
2m

LeetCode 28 Implementstr Str() - Easy

Implement strStr().

· LeetCode· Easy· Python
1m

LeetCode 278 First Bad Version - Easy

278. First Bad Version

· LeetCode· Easy· Python
1m

LeetCode 270 Closest Binary Search Tree Value - Easy

270. Closest Binary Search Tree Value

· LeetCode· Easy· Python
2m

LeetCode 27 Remove Element - Easy

27. Remove Element

· LeetCode· Easy· Python
1m

LeetCode 268 Missing Number - Easy

268. Missing Number

· LeetCode· Easy· Python
1m

LeetCode 26 Remove Duplicatesfrom Sorted Array - Easy

26. Remove Duplicates from Sorted Array

· LeetCode· Easy· Python
1m

LeetCode 258 Add Digits - Easy

258. Add Digits -- Easy

· LeetCode· Easy· Python
1m

LeetCode 257 B Inary Tree Paths - Easy

257. Binary Tree Paths

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

LeetCode 252 Meeting Rooms - Easy

252. Meeting Rooms -- Easy

· LeetCode· Easy· Python
1m

LeetCode 242 Valid Anagram - Easy

242. Valid Anagram

· LeetCode· Easy· Python
1m

LeetCode 235 Lowest Common Ancestor Of A Binary Search Tree - Easy

235. Lowest Common Ancestor of a Binary Search Tree -- Easy

· LeetCode· Easy· Python
1m

LeetCode 234 Palindrome Linked List - Easy

234. Palindrome Linked List

· LeetCode· Easy· Python
2m

LeetCode 232 Implement Queue Using Stacks - Easy

232. Implement Queue using Stacks

· LeetCode· Easy· Python
1m

LeetCode 226 Invert Binary Tree - Easy

· LeetCode· Easy· Python
1m

LeetCode 225 Implement Stack Using Queues - Easy

225. Implement Stack using Queues

· LeetCode· Easy· Python
1m

LeetCode 219 Contains Duplicate II - Easy

219. Contains Duplicate II -- Easy

· LeetCode· Easy· Python
1m

LeetCode 217 Contains Duplicate - Easy

217. Contains Duplicate -- Easy

· LeetCode· Easy· Python
1m

LeetCode 21 Merge Two Sorted Lists - Easy

21. Merge Two Sorted Lists

· LeetCode· Easy· Python
1m

LeetCode 206 Reverse Linked List - Easy

Reverse a singly linked list.

· LeetCode· Easy· Python
1m

LeetCode 204 Count Primes - Easy

Count the number of prime numbers less than a non-negative number, n.

· LeetCode· Easy· Python
1m

LeetCode 203 Remove Linked List Elements - Easy

203. Remove Linked List Elements

· LeetCode· Easy· Python
1m

LeetCode 20 Valid Parentheses - Easy

20. Valid Parentheses

· LeetCode· Easy· Python
2m

LeetCode 198 House Robber - Easy

198. House Robber -- Easy

· LeetCode· Easy· Python
2m

LeetCode 170 Two Sum III-Data Structure Design - Easy

170. Two Sum III - Data structure design

· LeetCode· Easy· Python
1m

LeetCode 169 Majority Element - Easy

169. Majority Element

· LeetCode· Easy· Python
1m

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· Easy· Python
2m

LeetCode 1603 Design Parking System - Easy

1603. Design Parking System -- Easy

· LeetCode· Easy· Python
3m

LeetCode 160 Intersection Of Two Linked Lists - Easy

160. Intersection of Two Linked Lists

· LeetCode· Easy· Python
1m

LeetCode 155 Min Stack - Easy

155. Min Stack

· LeetCode· Easy· Python
1m

LeetCode 1528 Shuffle String - Easy

1528. Shuffle String -- Easy

· LeetCode· Easy· Python
1m

LeetCode 1480 Running Sum Of1 D Array - Easy

1480. Running Sum of 1d Array -- Easy

· LeetCode· Easy· Python
1m

LeetCode 1470 Shuffle The Array - Easy

1470. Shuffle the Array -- Easy

· LeetCode· Easy· Python
1m

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· Easy· Python
2m

LeetCode 1431 Kids With The Greatest Number Of Candies - Easy

1431. Kids With the Greatest Number of Candies -- Easy

· LeetCode· Easy· Python
1m

LeetCode 141 Linked List Cycle - Easy

141. Linked List Cycle

· LeetCode· Easy· Python
1m

LeetCode 14 Longest Common Prefix - Easy

14. Longest Common Prefix

· LeetCode· Easy· Python
1m

LeetCode 1374 Generate A String With Characters That Have Odd Counts - Easy

1374. Generate a String With Characters That Have Odd Counts -- Easy

· LeetCode· Easy· Python
1m

LeetCode 1365 How Many Numbers Are Smaller Than The Current Number - Easy

1365. How Many Numbers Are Smaller Than the Current Number -- Easy

· LeetCode· Easy· Python
1m

LeetCode 136 Single Number - Easy

136. Single Number -- Easy

· LeetCode· Easy· Python
2m

LeetCode 13 Roman To Integer - Easy

Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

LeetCode 1290 Convert Binary Number In A Linked List To Integer - Easy

Binary to Decimal from Linked List:

· LeetCode· Easy· Python
1m

LeetCode 1266 Minimum Time Visiting All Points - Easy

1266. Minimum Time Visiting All Points -- Easy

· LeetCode· Easy· Python
2m

LeetCode 125 Valid Palindrome - Easy

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

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· Easy· Python
1m

LeetCode 1200 Minimum Absolute Difference - Easy

1200. Minimum Absolute Difference -- Easy

· LeetCode· Easy· Python
2m

LeetCode 112 Path Sum - Easy

112. Path Sum -- Easy

· LeetCode· Easy· Python
1m

LeetCode 111 Minimum Depth Of Binary Tree - Easy

111. Minimum Depth of Binary Tree -- Easy

· LeetCode· Easy· Python
1m

LeetCode 110 Balanced Binary Tree - Easy

110. Balanced Binary Tree

· LeetCode· Easy· Python
1m

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· Easy· Python
1m

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· Easy· Python
1m

LeetCode 1051 Height Checker - Easy

1051. Height Checker -- Easy

· LeetCode· Easy· Python
1m

LeetCode 104 Maximum Depth Of Binary Tree - Easy

104. Maximum Depth of Binary Tree

· LeetCode· Easy· Python
1m

LeetCode 101 Symmetric Tree - Easy

101. Symmetric Tree -- Easy

· LeetCode· Easy· Python
1m

LeetCode 100 Same Tree - Easy

100. Same Tree -- Easy

· LeetCode· Easy· Python