摘要: 1 """ 2 Implement pow(x, n), which calculates x raised to the power n (xn). 3 Example 1: 4 Input: 2.00000, 10 5 Output: 1024.00000 6 Example 2: 7 Inpu 阅读全文
posted @ 2020-02-25 23:35 yawenw 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array of strings, group anagrams together. 3 Example: 4 Input: ["eat", "tea", "tan", "ate", "nat", "bat"], 5 Output: 6 [ 7 ["ate","ea 阅读全文
posted @ 2020-02-25 22:26 yawenw 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 You are given an n x n 2D matrix representing an image. 3 Rotate the image by 90 degrees (clockwise). 4 Note: 5 You have to rotate the image i 阅读全文
posted @ 2020-02-25 21:51 yawenw 阅读(85) 评论(0) 推荐(0) 编辑