摘要:
Odd Even Linked List (M) 题目 Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about 阅读全文
摘要:
Counting Bits (M) 题目 Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary 阅读全文
摘要:
Top K Frequent Elements (M) 题目 Given a non-empty array of integers, return the *k* most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 阅读全文
摘要:
Pow(x, n) (M) 题目 mplement pow(x, n), which calculates x raised to the power n (\(x^n\)). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: I 阅读全文
摘要:
Group Anagrams (M) 题目 Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate" 阅读全文
摘要:
Rotate Image (M) 题目 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 i 阅读全文