摘要:
Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 3: Note: -100.0 < x < 100.0 n is a 32-bit signed int 阅读全文
posted @ 2018-10-17 22:00
Veritas_des_Liberty
阅读(232)
评论(0)
推荐(0)
摘要:
Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", 阅读全文
posted @ 2018-10-17 21:38
Veritas_des_Liberty
阅读(167)
评论(0)
推荐(0)
摘要:
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which 阅读全文
posted @ 2018-10-17 20:01
Veritas_des_Liberty
阅读(184)
评论(0)
推荐(0)
摘要:
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: AC code: Runtime: 28 ms, faster than 46 阅读全文
posted @ 2018-10-17 19:46
Veritas_des_Liberty
阅读(191)
评论(0)
推荐(0)
摘要:
Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1, 阅读全文
posted @ 2018-10-17 11:50
Veritas_des_Liberty
阅读(185)
评论(0)
推荐(0)
摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2018-10-17 11:17
Veritas_des_Liberty
阅读(183)
评论(0)
推荐(0)

浙公网安备 33010602011771号