题目 Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-spa…
标签:LeetCode Go
[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 59]541. Reverse String II
题目 Given a string and an integer k, you need to reverse the first k characters for every 2k characters countin…
[LeetCode By Go 82]198. House Robber
题目 You are a professional robber planning to rob houses along a street. Each house has a certain amount of mon…
[LeetCode By Go 67]572. Subtree of Another Tree
题目 Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node valu…
[LeetCode By Go 62]415. Add Strings
题目 Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note:…
[LeetCode By Go 28]283. Move Zeroes
题目 Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative…
[LeetCode By Go 75]35. Search Insert Position
题目 Given a sorted array and a target value, return the index if the target is found. If not, return the index …
[LeetCode By Go 6]557. Reverse Words in a String III
题目 Given a string, you need to reverse the order of characters in each word within a sentence while still pres…
[LeetCode By Go 58]551. Student Attendance Record I
题目 You are given a string representing an attendance record for a student. The record only contains the follow…
[LeetCode By Go 55]350. Intersection of Two Arrays II
题目 Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums…
[LeetCode By Go 108]438. Find All Anagrams in a String
题目的通过率越来越低,题目越来越长,题意不好理解,边界问题,优化问题叠加,导致解题时间大大增加,对我的目标–快速复习一遍技术数据结构和算法阻碍很大啊!已经写了一百多道题了,是时候针对性的做一些题目了。目前打算…