题目 Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its c…
标签:LeetCode Go
[LeetCode By Go 107]507. Perfect Number
题目 We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors ex…
[LeetCode By Go 33]530. Minimum Absolute Difference in BST
题目 Given a binary search tree with non-negative values, find the minimum absolute difference between values of…
[LeetCode By Go 51]409. Longest Palindrome
题目 Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes…
[LeetCode By Go 76]Add to List 191. Number of 1 Bits
本体不能用go语言写,因此用C语言 题目 Write a function that takes an unsigned integer and returns the number of ’1′ bits …
[LeetCode By Go 106]205. Isomorphic Strings
这个题目思路比较好想,但是边界问题好难搞,测了好多次才成功。 题目 Given two strings s and t, determine if they are isomorphic. Two strings are…
[LeetCode By Go 92]501. Find Mode in Binary Search Tree
题目 Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred elemen…
[LeetCode By Go 7]575. Distribute Candies
题目 原题链接 Given an integer array with even length, where different numbers in this array represent different kin…
[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 9]344. Reverse String
题目 Write a function that takes a string as input and returns the string reversed. Example: Given s = “he…
[LeetCode By Go 47]242. Valid Anagram
题目 Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = “a…
[LeetCode By Go 39]404. Sum of Left Leaves
题目 Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left lea…