Documentation
¶
Index ¶
- func Atoi(s string) int
- func Divide(dividend int, divisor int) int
- func FourSum(nums []int, target int) [][]int
- func IntToRoman(num int) string
- func IsPalindrome(x int) bool
- func IsPalindrome2(x int) bool
- func ReverseInteger(x int) int
- func RomanToInt(s string) int
- func ThreeSum(nums []int) [][]int
- func ThreeSumClosest(nums []int, target int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPalindrome ¶
IsPalindrome 是否是回文数 leetcode9 Level: easy 不能将这个x 转成字符串处理;
func ThreeSum ¶
ThreeSum 给你一个包含 n 个整数的数组nums 判断nums中是否存在三个元素使得a + b + c = 0 且不重复的三元组 set 不考虑order leetcode15 三数之和
func ThreeSumClosest ¶
ThreeSumClosest 最接近3数之和 leetcode16: 最接近3数之和 题目至少给3个数 每次输入仅有唯一答案
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.