题目 Given a sorted array, remove the duplicates in place such that each element appear only once and return the…
标签:LeetCode Go
[LeetCode By Go 78]263. Ugly Number
题目 Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose …
[LeetCode By Go 91]459. Repeated Substring Pattern
题目 Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple …
[LeetCode By Go 747] Easy, Array, 747. Largest Number At Least Twice of Others
题目 In a given integer array nums, there is always exactly one largest element. Find whether the largest elemen…
[LeetCode By Go 98]172. Factorial Trailing Zeroes
题目 Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmi…
[LeetCode By Go 77]53. Maximum Subarray
题目 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. Fo…
[LeetCode By Go 73]437. Path Sum III
题目 You are given a binary tree in which each node contains an integer value. Find the number of paths that sum…
[LeetCode By Go 88]342. Power of Four
题目 Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num…
[LeetCode By Go 40]599. Minimum Index Sum of Two Lists
题目 Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restau…