Chore: Add headers to all the files (#54)

## Description
- Add headers to all the CSV files

## Script used
```py
import csv
import os

# Set the path of the folder containing the CSV files
folder_path = "./LeetCode-Questions-CompanyWise"
headers = [
    "ID",
    "Title",
    "Acceptance",
    "Difficulty",
    "Frequency",
    "Leetcode Question Link",
]

# Loop through all the CSV files in the folder
for file_name in os.listdir(folder_path):
    if file_name.endswith(".csv"):
        # Read the CSV file into a list of rows
        file_path = os.path.join(folder_path, file_name)
        with open(file_path, "r") as f:
            reader = csv.reader(f)
            rows = list(reader)

        has_headers = False
        if len(rows) > 0 and rows[0] == headers:
            has_headers = True

        if not has_headers:
            rows.insert(0, headers)

            # Write the list of rows back to the CSV file
            with open(file_path, "w", newline="") as f:
                writer = csv.writer(f)
                writer.writerows(rows)

```
This commit is contained in:
Krishna Kumar Dey
2023-04-01 11:07:49 +05:30
committed by GitHub
parent 0aeadbd612
commit fb5f78b55e
534 changed files with 20291 additions and 19757 deletions

View File

@@ -1,47 +1,48 @@
146,LRU Cache,33.2%,Medium,0.0873691394938576, https://leetcode.com/problems/lru-cache
1048,Longest String Chain,54.7%,Medium,0.07529425330187599, https://leetcode.com/problems/longest-string-chain
697,Degree of an Array,53.8%,Easy,0.07117627846789498, https://leetcode.com/problems/degree-of-an-array
1328,Break a Palindrome,43.3%,Medium,0.05910139227591337, https://leetcode.com/problems/break-a-palindrome
981,Time Based Key-Value Store,53.1%,Medium,0.049406315387071284, https://leetcode.com/problems/time-based-key-value-store
49,Group Anagrams,56.9%,Medium,0.045631752563977224, https://leetcode.com/problems/group-anagrams
97,Interleaving String,31.5%,Hard,0.04548535439411653, https://leetcode.com/problems/interleaving-string
609,Find Duplicate File in System,59.5%,Medium,0.045205436768046794, https://leetcode.com/problems/find-duplicate-file-in-system
706,Design HashMap,61.3%,Easy,0.039016652342451774, https://leetcode.com/problems/design-hashmap
221,Maximal Square,37.7%,Medium,0.03897229680620825, https://leetcode.com/problems/maximal-square
460,LFU Cache,34.2%,Hard,0.030962225603966897, https://leetcode.com/problems/lfu-cache
56,Merge Intervals,39.3%,Medium,0.030829638084076787, https://leetcode.com/problems/merge-intervals
269,Alien Dictionary,33.3%,Hard,0.02841997399127492, https://leetcode.com/problems/alien-dictionary
20,Valid Parentheses,39.0%,Easy,0.02782373445001039, https://leetcode.com/problems/valid-parentheses
1209,Remove All Adjacent Duplicates in String II,56.9%,Medium,0.02324334737232728, https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii
905,Sort Array By Parity,74.1%,Easy,0.02148053951675942, https://leetcode.com/problems/sort-array-by-parity
93,Restore IP Addresses,35.6%,Medium,0.019763489118839635, https://leetcode.com/problems/restore-ip-addresses
322,Coin Change,35.5%,Medium,0.016022774188122292, https://leetcode.com/problems/coin-change
80,Remove Duplicates from Sorted Array II,44.0%,Medium,0.014815085785140639, https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii
150,Evaluate Reverse Polish Notation,36.3%,Medium,0.01413451093490476, https://leetcode.com/problems/evaluate-reverse-polish-notation
1,Two Sum,45.6%,Easy,0.013049691753224608, https://leetcode.com/problems/two-sum
226,Invert Binary Tree,65.0%,Easy,0.01235091863400913, https://leetcode.com/problems/invert-binary-tree
733,Flood Fill,55.3%,Easy,0.011217167530924988, https://leetcode.com/problems/flood-fill
380,Insert Delete GetRandom O(1),47.5%,Medium,0.009820849864094454, https://leetcode.com/problems/insert-delete-getrandom-o1
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.009683242444739549, https://leetcode.com/problems/longest-substring-without-repeating-characters
63,Unique Paths II,34.6%,Medium,0.008712753874961187, https://leetcode.com/problems/unique-paths-ii
416,Partition Equal Subset Sum,43.7%,Medium,0.008686265255960345, https://leetcode.com/problems/partition-equal-subset-sum
8,String to Integer (atoi),15.4%,Medium,0.008513104762248265, https://leetcode.com/problems/string-to-integer-atoi
133,Clone Graph,34.8%,Medium,0.008136741393061732, https://leetcode.com/problems/clone-graph
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
33,Search in Rotated Sorted Array,34.5%,Medium,0.007252832180390353, https://leetcode.com/problems/search-in-rotated-sorted-array
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.007077170374085099, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
230,Kth Smallest Element in a BST,60.2%,Medium,0.0063361529894967236, https://leetcode.com/problems/kth-smallest-element-in-a-bst
39,Combination Sum,56.1%,Medium,0.005715934396440999, https://leetcode.com/problems/combination-sum
15,3Sum,26.8%,Medium,0.004940992758742591, https://leetcode.com/problems/3sum
23,Merge k Sorted Lists,40.2%,Hard,0.004051459000748015, https://leetcode.com/problems/merge-k-sorted-lists
28,Implement strStr(),34.5%,Easy,0.003943222775040032, https://leetcode.com/problems/implement-strstr
977,Squares of a Sorted Array,72.1%,Easy,0.003891055492966611, https://leetcode.com/problems/squares-of-a-sorted-array
102,Binary Tree Level Order Traversal,54.6%,Medium,0.003639014205004082, https://leetcode.com/problems/binary-tree-level-order-traversal
88,Merge Sorted Array,39.4%,Easy,0.0030102370714243072, https://leetcode.com/problems/merge-sorted-array
98,Validate Binary Search Tree,27.8%,Medium,0.002943776044013381, https://leetcode.com/problems/validate-binary-search-tree
206,Reverse Linked List,62.5%,Easy,0.0023398665252948926, https://leetcode.com/problems/reverse-linked-list
21,Merge Two Sorted Lists,53.5%,Easy,0.0022551737583973706, https://leetcode.com/problems/merge-two-sorted-lists
2,Add Two Numbers,33.9%,Medium,0.0016886191111440908, https://leetcode.com/problems/add-two-numbers
151,Reverse Words in a String,21.9%,Medium,0.0015375156780384337, https://leetcode.com/problems/reverse-words-in-a-string
347,Top K Frequent Elements,61.2%,Medium,0.0014856636219477439, https://leetcode.com/problems/top-k-frequent-elements
50,Pow(x;n),30.3%,Medium,0.0014016892647828818, https://leetcode.com/problems/powx-n
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
146,LRU Cache,33.2%,Medium,0.0873691394938576, https://leetcode.com/problems/lru-cache
1048,Longest String Chain,54.7%,Medium,0.07529425330187599, https://leetcode.com/problems/longest-string-chain
697,Degree of an Array,53.8%,Easy,0.07117627846789498, https://leetcode.com/problems/degree-of-an-array
1328,Break a Palindrome,43.3%,Medium,0.05910139227591337, https://leetcode.com/problems/break-a-palindrome
981,Time Based Key-Value Store,53.1%,Medium,0.049406315387071284, https://leetcode.com/problems/time-based-key-value-store
49,Group Anagrams,56.9%,Medium,0.045631752563977224, https://leetcode.com/problems/group-anagrams
97,Interleaving String,31.5%,Hard,0.04548535439411653, https://leetcode.com/problems/interleaving-string
609,Find Duplicate File in System,59.5%,Medium,0.045205436768046794, https://leetcode.com/problems/find-duplicate-file-in-system
706,Design HashMap,61.3%,Easy,0.039016652342451774, https://leetcode.com/problems/design-hashmap
221,Maximal Square,37.7%,Medium,0.03897229680620825, https://leetcode.com/problems/maximal-square
460,LFU Cache,34.2%,Hard,0.030962225603966897, https://leetcode.com/problems/lfu-cache
56,Merge Intervals,39.3%,Medium,0.030829638084076787, https://leetcode.com/problems/merge-intervals
269,Alien Dictionary,33.3%,Hard,0.02841997399127492, https://leetcode.com/problems/alien-dictionary
20,Valid Parentheses,39.0%,Easy,0.02782373445001039, https://leetcode.com/problems/valid-parentheses
1209,Remove All Adjacent Duplicates in String II,56.9%,Medium,0.02324334737232728, https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii
905,Sort Array By Parity,74.1%,Easy,0.02148053951675942, https://leetcode.com/problems/sort-array-by-parity
93,Restore IP Addresses,35.6%,Medium,0.019763489118839635, https://leetcode.com/problems/restore-ip-addresses
322,Coin Change,35.5%,Medium,0.016022774188122292, https://leetcode.com/problems/coin-change
80,Remove Duplicates from Sorted Array II,44.0%,Medium,0.014815085785140639, https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii
150,Evaluate Reverse Polish Notation,36.3%,Medium,0.01413451093490476, https://leetcode.com/problems/evaluate-reverse-polish-notation
1,Two Sum,45.6%,Easy,0.013049691753224608, https://leetcode.com/problems/two-sum
226,Invert Binary Tree,65.0%,Easy,0.01235091863400913, https://leetcode.com/problems/invert-binary-tree
733,Flood Fill,55.3%,Easy,0.011217167530924988, https://leetcode.com/problems/flood-fill
380,Insert Delete GetRandom O(1),47.5%,Medium,0.009820849864094454, https://leetcode.com/problems/insert-delete-getrandom-o1
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.009683242444739549, https://leetcode.com/problems/longest-substring-without-repeating-characters
63,Unique Paths II,34.6%,Medium,0.008712753874961187, https://leetcode.com/problems/unique-paths-ii
416,Partition Equal Subset Sum,43.7%,Medium,0.008686265255960345, https://leetcode.com/problems/partition-equal-subset-sum
8,String to Integer (atoi),15.4%,Medium,0.008513104762248265, https://leetcode.com/problems/string-to-integer-atoi
133,Clone Graph,34.8%,Medium,0.008136741393061732, https://leetcode.com/problems/clone-graph
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
33,Search in Rotated Sorted Array,34.5%,Medium,0.007252832180390353, https://leetcode.com/problems/search-in-rotated-sorted-array
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.007077170374085099, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
230,Kth Smallest Element in a BST,60.2%,Medium,0.0063361529894967236, https://leetcode.com/problems/kth-smallest-element-in-a-bst
39,Combination Sum,56.1%,Medium,0.005715934396440999, https://leetcode.com/problems/combination-sum
15,3Sum,26.8%,Medium,0.004940992758742591, https://leetcode.com/problems/3sum
23,Merge k Sorted Lists,40.2%,Hard,0.004051459000748015, https://leetcode.com/problems/merge-k-sorted-lists
28,Implement strStr(),34.5%,Easy,0.003943222775040032, https://leetcode.com/problems/implement-strstr
977,Squares of a Sorted Array,72.1%,Easy,0.003891055492966611, https://leetcode.com/problems/squares-of-a-sorted-array
102,Binary Tree Level Order Traversal,54.6%,Medium,0.003639014205004082, https://leetcode.com/problems/binary-tree-level-order-traversal
88,Merge Sorted Array,39.4%,Easy,0.0030102370714243072, https://leetcode.com/problems/merge-sorted-array
98,Validate Binary Search Tree,27.8%,Medium,0.002943776044013381, https://leetcode.com/problems/validate-binary-search-tree
206,Reverse Linked List,62.5%,Easy,0.0023398665252948926, https://leetcode.com/problems/reverse-linked-list
21,Merge Two Sorted Lists,53.5%,Easy,0.0022551737583973706, https://leetcode.com/problems/merge-two-sorted-lists
2,Add Two Numbers,33.9%,Medium,0.0016886191111440908, https://leetcode.com/problems/add-two-numbers
151,Reverse Words in a String,21.9%,Medium,0.0015375156780384337, https://leetcode.com/problems/reverse-words-in-a-string
347,Top K Frequent Elements,61.2%,Medium,0.0014856636219477439, https://leetcode.com/problems/top-k-frequent-elements
50,Pow(x;n),30.3%,Medium,0.0014016892647828818, https://leetcode.com/problems/powx-n
1 146 ID LRU Cache Title 33.2% Acceptance Medium Difficulty 0.0873691394938576 Frequency https://leetcode.com/problems/lru-cache Leetcode Question Link
2 1048 146 Longest String Chain LRU Cache 54.7% 33.2% Medium Medium 0.07529425330187599 0.0873691394938576 https://leetcode.com/problems/longest-string-chain https://leetcode.com/problems/lru-cache
3 697 1048 Degree of an Array Longest String Chain 53.8% 54.7% Easy Medium 0.07117627846789498 0.07529425330187599 https://leetcode.com/problems/degree-of-an-array https://leetcode.com/problems/longest-string-chain
4 1328 697 Break a Palindrome Degree of an Array 43.3% 53.8% Medium Easy 0.05910139227591337 0.07117627846789498 https://leetcode.com/problems/break-a-palindrome https://leetcode.com/problems/degree-of-an-array
5 981 1328 Time Based Key-Value Store Break a Palindrome 53.1% 43.3% Medium Medium 0.049406315387071284 0.05910139227591337 https://leetcode.com/problems/time-based-key-value-store https://leetcode.com/problems/break-a-palindrome
6 49 981 Group Anagrams Time Based Key-Value Store 56.9% 53.1% Medium Medium 0.045631752563977224 0.049406315387071284 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/time-based-key-value-store
7 97 49 Interleaving String Group Anagrams 31.5% 56.9% Hard Medium 0.04548535439411653 0.045631752563977224 https://leetcode.com/problems/interleaving-string https://leetcode.com/problems/group-anagrams
8 609 97 Find Duplicate File in System Interleaving String 59.5% 31.5% Medium Hard 0.045205436768046794 0.04548535439411653 https://leetcode.com/problems/find-duplicate-file-in-system https://leetcode.com/problems/interleaving-string
9 706 609 Design HashMap Find Duplicate File in System 61.3% 59.5% Easy Medium 0.039016652342451774 0.045205436768046794 https://leetcode.com/problems/design-hashmap https://leetcode.com/problems/find-duplicate-file-in-system
10 221 706 Maximal Square Design HashMap 37.7% 61.3% Medium Easy 0.03897229680620825 0.039016652342451774 https://leetcode.com/problems/maximal-square https://leetcode.com/problems/design-hashmap
11 460 221 LFU Cache Maximal Square 34.2% 37.7% Hard Medium 0.030962225603966897 0.03897229680620825 https://leetcode.com/problems/lfu-cache https://leetcode.com/problems/maximal-square
12 56 460 Merge Intervals LFU Cache 39.3% 34.2% Medium Hard 0.030829638084076787 0.030962225603966897 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/lfu-cache
13 269 56 Alien Dictionary Merge Intervals 33.3% 39.3% Hard Medium 0.02841997399127492 0.030829638084076787 https://leetcode.com/problems/alien-dictionary https://leetcode.com/problems/merge-intervals
14 20 269 Valid Parentheses Alien Dictionary 39.0% 33.3% Easy Hard 0.02782373445001039 0.02841997399127492 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/alien-dictionary
15 1209 20 Remove All Adjacent Duplicates in String II Valid Parentheses 56.9% 39.0% Medium Easy 0.02324334737232728 0.02782373445001039 https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii https://leetcode.com/problems/valid-parentheses
16 905 1209 Sort Array By Parity Remove All Adjacent Duplicates in String II 74.1% 56.9% Easy Medium 0.02148053951675942 0.02324334737232728 https://leetcode.com/problems/sort-array-by-parity https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii
17 93 905 Restore IP Addresses Sort Array By Parity 35.6% 74.1% Medium Easy 0.019763489118839635 0.02148053951675942 https://leetcode.com/problems/restore-ip-addresses https://leetcode.com/problems/sort-array-by-parity
18 322 93 Coin Change Restore IP Addresses 35.5% 35.6% Medium Medium 0.016022774188122292 0.019763489118839635 https://leetcode.com/problems/coin-change https://leetcode.com/problems/restore-ip-addresses
19 80 322 Remove Duplicates from Sorted Array II Coin Change 44.0% 35.5% Medium Medium 0.014815085785140639 0.016022774188122292 https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii https://leetcode.com/problems/coin-change
20 150 80 Evaluate Reverse Polish Notation Remove Duplicates from Sorted Array II 36.3% 44.0% Medium Medium 0.01413451093490476 0.014815085785140639 https://leetcode.com/problems/evaluate-reverse-polish-notation https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii
21 1 150 Two Sum Evaluate Reverse Polish Notation 45.6% 36.3% Easy Medium 0.013049691753224608 0.01413451093490476 https://leetcode.com/problems/two-sum https://leetcode.com/problems/evaluate-reverse-polish-notation
22 226 1 Invert Binary Tree Two Sum 65.0% 45.6% Easy Easy 0.01235091863400913 0.013049691753224608 https://leetcode.com/problems/invert-binary-tree https://leetcode.com/problems/two-sum
23 733 226 Flood Fill Invert Binary Tree 55.3% 65.0% Easy Easy 0.011217167530924988 0.01235091863400913 https://leetcode.com/problems/flood-fill https://leetcode.com/problems/invert-binary-tree
24 380 733 Insert Delete GetRandom O(1) Flood Fill 47.5% 55.3% Medium Easy 0.009820849864094454 0.011217167530924988 https://leetcode.com/problems/insert-delete-getrandom-o1 https://leetcode.com/problems/flood-fill
25 3 380 Longest Substring Without Repeating Characters Insert Delete GetRandom O(1) 30.4% 47.5% Medium Medium 0.009683242444739549 0.009820849864094454 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/insert-delete-getrandom-o1
26 63 3 Unique Paths II Longest Substring Without Repeating Characters 34.6% 30.4% Medium Medium 0.008712753874961187 0.009683242444739549 https://leetcode.com/problems/unique-paths-ii https://leetcode.com/problems/longest-substring-without-repeating-characters
27 416 63 Partition Equal Subset Sum Unique Paths II 43.7% 34.6% Medium Medium 0.008686265255960345 0.008712753874961187 https://leetcode.com/problems/partition-equal-subset-sum https://leetcode.com/problems/unique-paths-ii
28 8 416 String to Integer (atoi) Partition Equal Subset Sum 15.4% 43.7% Medium Medium 0.008513104762248265 0.008686265255960345 https://leetcode.com/problems/string-to-integer-atoi https://leetcode.com/problems/partition-equal-subset-sum
29 133 8 Clone Graph String to Integer (atoi) 34.8% 15.4% Medium Medium 0.008136741393061732 0.008513104762248265 https://leetcode.com/problems/clone-graph https://leetcode.com/problems/string-to-integer-atoi
30 36 133 Valid Sudoku Clone Graph 48.7% 34.8% Medium Medium 0.007258242715805398 0.008136741393061732 https://leetcode.com/problems/valid-sudoku https://leetcode.com/problems/clone-graph
31 33 36 Search in Rotated Sorted Array Valid Sudoku 34.5% 48.7% Medium Medium 0.007252832180390353 0.007258242715805398 https://leetcode.com/problems/search-in-rotated-sorted-array https://leetcode.com/problems/valid-sudoku
32 297 33 Serialize and Deserialize Binary Tree Search in Rotated Sorted Array 47.5% 34.5% Hard Medium 0.007077170374085099 0.007252832180390353 https://leetcode.com/problems/serialize-and-deserialize-binary-tree https://leetcode.com/problems/search-in-rotated-sorted-array
33 230 297 Kth Smallest Element in a BST Serialize and Deserialize Binary Tree 60.2% 47.5% Medium Hard 0.0063361529894967236 0.007077170374085099 https://leetcode.com/problems/kth-smallest-element-in-a-bst https://leetcode.com/problems/serialize-and-deserialize-binary-tree
34 39 230 Combination Sum Kth Smallest Element in a BST 56.1% 60.2% Medium Medium 0.005715934396440999 0.0063361529894967236 https://leetcode.com/problems/combination-sum https://leetcode.com/problems/kth-smallest-element-in-a-bst
35 15 39 3Sum Combination Sum 26.8% 56.1% Medium Medium 0.004940992758742591 0.005715934396440999 https://leetcode.com/problems/3sum https://leetcode.com/problems/combination-sum
36 23 15 Merge k Sorted Lists 3Sum 40.2% 26.8% Hard Medium 0.004051459000748015 0.004940992758742591 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/3sum
37 28 23 Implement strStr() Merge k Sorted Lists 34.5% 40.2% Easy Hard 0.003943222775040032 0.004051459000748015 https://leetcode.com/problems/implement-strstr https://leetcode.com/problems/merge-k-sorted-lists
38 977 28 Squares of a Sorted Array Implement strStr() 72.1% 34.5% Easy Easy 0.003891055492966611 0.003943222775040032 https://leetcode.com/problems/squares-of-a-sorted-array https://leetcode.com/problems/implement-strstr
39 102 977 Binary Tree Level Order Traversal Squares of a Sorted Array 54.6% 72.1% Medium Easy 0.003639014205004082 0.003891055492966611 https://leetcode.com/problems/binary-tree-level-order-traversal https://leetcode.com/problems/squares-of-a-sorted-array
40 88 102 Merge Sorted Array Binary Tree Level Order Traversal 39.4% 54.6% Easy Medium 0.0030102370714243072 0.003639014205004082 https://leetcode.com/problems/merge-sorted-array https://leetcode.com/problems/binary-tree-level-order-traversal
41 98 88 Validate Binary Search Tree Merge Sorted Array 27.8% 39.4% Medium Easy 0.002943776044013381 0.0030102370714243072 https://leetcode.com/problems/validate-binary-search-tree https://leetcode.com/problems/merge-sorted-array
42 206 98 Reverse Linked List Validate Binary Search Tree 62.5% 27.8% Easy Medium 0.0023398665252948926 0.002943776044013381 https://leetcode.com/problems/reverse-linked-list https://leetcode.com/problems/validate-binary-search-tree
43 21 206 Merge Two Sorted Lists Reverse Linked List 53.5% 62.5% Easy Easy 0.0022551737583973706 0.0023398665252948926 https://leetcode.com/problems/merge-two-sorted-lists https://leetcode.com/problems/reverse-linked-list
44 2 21 Add Two Numbers Merge Two Sorted Lists 33.9% 53.5% Medium Easy 0.0016886191111440908 0.0022551737583973706 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/merge-two-sorted-lists
45 151 2 Reverse Words in a String Add Two Numbers 21.9% 33.9% Medium Medium 0.0015375156780384337 0.0016886191111440908 https://leetcode.com/problems/reverse-words-in-a-string https://leetcode.com/problems/add-two-numbers
46 347 151 Top K Frequent Elements Reverse Words in a String 61.2% 21.9% Medium Medium 0.0014856636219477439 0.0015375156780384337 https://leetcode.com/problems/top-k-frequent-elements https://leetcode.com/problems/reverse-words-in-a-string
47 50 347 Pow(x;n) Top K Frequent Elements 30.3% 61.2% Medium Medium 0.0014016892647828818 0.0014856636219477439 https://leetcode.com/problems/powx-n https://leetcode.com/problems/top-k-frequent-elements
48 50 Pow(x;n) 30.3% Medium 0.0014016892647828818 https://leetcode.com/problems/powx-n