题目 Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node valu…
分类:LeetCode
[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
题目的通过率越来越低,题目越来越长,题意不好理解,边界问题,优化问题叠加,导致解题时间大大增加,对我的目标–快速复习一遍技术数据结构和算法阻碍很大啊!已经写了一百多道题了,是时候针对性的做一些题目了。目前打算…
[LeetCode By Go 3]561. Array Partition I
题目 Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), …
[LeetCode By Go 38]Add to List 122. Best Time to Buy and Sell Stock II
题目 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm…
[LeetCode By Go 103]1. Two Sum
题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target. Y…
[LeetCode By Go 36]455. Assign Cookies
题目 Assume you are an awesome parent and want to give your children some cookies. But, you should give each chi…