题目 Given a sorted array and a target value, return the index if the target is found. If not, return the index …
标签:LeetCode Go
[LeetCode By Go 724] Easy, Array, 724. Find Pivot Index
题目 Given an array of integers nums, write a method that returns the “pivot” index of this array. W…
[LeetCode By Go 21]448. Find All Numbers Disappeared in an Array
题目 Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others ap…
[LeetCode By Go 18]104. Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest pat…
[LeetCode By Go 84]66. Plus One
题目 Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may a…
[LeetCode By Go 30]598. Range Addition II
题目 Given an m * n matrix M initialized with all 0’s and several update operations. Operations are repres…
[LeetCode By Go 96]434. Number of Segments in a String
题目 Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-spa…
[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…
[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 1]461. Hamming Distance
题目描述 https://leetcode.com/problems/hamming-distance/description/ The Hamming distance between two integers is …
[LeetCode By Go 102]141. Linked List Cycle
这道题不能用go写,所以用C语言写的 题目 Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it with…
[LeetCode By Go 41]563. Binary Tree Tilt
题目 Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute …