题目 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integ…
标签:LeetCode Go
[LeetCode By Go 80]21. Merge Two Sorted Lists
题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together…
[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 97]441. Arranging Coins
题目 You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exac…
[LeetCode By Go 72]70. Climbing Stairs
题目 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 …
[LeetCode By Go 8]566. Reshape the Matrix
用golang写这道题的做法完全不同,用到了gorutine, channel,写着挺有意思的 题目 In MATLAB, there is a very useful function called ‘re…
[LeetCode By Go 34]383. Ransom Note
题目 Given an arbitrary ransom note string and another string containing letters from all the magazines, write a…
[LeetCode By Go 70]326. Power of Three
题目 Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it witho…
[LeetCode By Go 10]412. Fizz Buzz
题目 Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three i…
[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 26]606. Construct String from Binary Tree
题目 You need to construct a string consists of parenthesis and integers from a binary tree with the preorder tr…
[LeetCode By Go 42]169. Majority Element
题目 Given an array of size n, find the majority element. The majority element is the element that appears more …