mirror of
https://github.com/McSmog/LeetCode-Questions-CompanyWise.git
synced 2026-04-19 08:46:45 +00:00
## 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)
```
34 KiB
34 KiB
| 1 | ID | Title | Acceptance | Difficulty | Frequency | Leetcode Question Link |
|---|---|---|---|---|---|---|
| 2 | 427 | Construct Quad Tree | 61.4% | Medium | 3.2025777670666282 | https://leetcode.com/problems/construct-quad-tree |
| 3 | 291 | Word Pattern II | 43.4% | Hard | 3.0090998629797148 | https://leetcode.com/problems/word-pattern-ii |
| 4 | 529 | Minesweeper | 59.1% | Medium | 2.8156219588928013 | https://leetcode.com/problems/minesweeper |
| 5 | 305 | Number of Islands II | 40.1% | Hard | 2.7873368509214487 | https://leetcode.com/problems/number-of-islands-ii |
| 6 | 741 | Cherry Pickup | 33.9% | Hard | 2.728198259587133 | https://leetcode.com/problems/cherry-pickup |
| 7 | 757 | Set Intersection Size At Least Two | 40.1% | Hard | 2.5347203555002196 | https://leetcode.com/problems/set-intersection-size-at-least-two |
| 8 | 332 | Reconstruct Itinerary | 36.7% | Medium | 2.473063947812065 | https://leetcode.com/problems/reconstruct-itinerary |
| 9 | 341 | Flatten Nested List Iterator | 52.9% | Medium | 2.4575427125463496 | https://leetcode.com/problems/flatten-nested-list-iterator |
| 10 | 68 | Text Justification | 27.7% | Hard | 2.4560547921829063 | https://leetcode.com/problems/text-justification |
| 11 | 465 | Optimal Account Balancing | 46.9% | Hard | 2.3937825793600807 | https://leetcode.com/problems/optimal-account-balancing |
| 12 | 146 | LRU Cache | 33.2% | Medium | 2.2330774739793853 | https://leetcode.com/problems/lru-cache |
| 13 | 262 | Trips and Users | 32.7% | Hard | 2.179117086708829 | https://leetcode.com/problems/trips-and-users |
| 14 | 56 | Merge Intervals | 39.3% | Medium | 1.9856391826219157 | https://leetcode.com/problems/merge-intervals |
| 15 | 267 | Palindrome Permutation II | 36.4% | Medium | 1.9644220544755755 | https://leetcode.com/problems/palindrome-permutation-ii |
| 16 | 36 | Valid Sudoku | 48.7% | Medium | 1.96380460343855 | https://leetcode.com/problems/valid-sudoku |
| 17 | 655 | Print Binary Tree | 55.0% | Medium | 1.9142294173827312 | https://leetcode.com/problems/print-binary-tree |
| 18 | 227 | Basic Calculator II | 36.9% | Medium | 1.831507899537194 | https://leetcode.com/problems/basic-calculator-ii |
| 19 | 42 | Trapping Rain Water | 48.9% | Hard | 1.8228811997291605 | https://leetcode.com/problems/trapping-rain-water |
| 20 | 200 | Number of Islands | 46.8% | Medium | 1.809092583045218 | https://leetcode.com/problems/number-of-islands |
| 21 | 986 | Interval List Intersections | 67.3% | Medium | 1.7189319563632988 | https://leetcode.com/problems/interval-list-intersections |
| 22 | 297 | Serialize and Deserialize Binary Tree | 47.5% | Hard | 1.6607276556789818 | https://leetcode.com/problems/serialize-and-deserialize-binary-tree |
| 23 | 253 | Meeting Rooms II | 45.7% | Medium | 1.6305479346444065 | https://leetcode.com/problems/meeting-rooms-ii |
| 24 | 1 | Two Sum | 45.6% | Easy | 1.6253762244734984 | https://leetcode.com/problems/two-sum |
| 25 | 428 | Serialize and Deserialize N-ary Tree | 59.4% | Hard | 1.619513564422842 | https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree |
| 26 | 380 | Insert Delete GetRandom O(1) | 47.5% | Medium | 1.5587288098338494 | https://leetcode.com/problems/insert-delete-getrandom-o1 |
| 27 | 773 | Sliding Puzzle | 59.3% | Hard | 1.5000532464765486 | https://leetcode.com/problems/sliding-puzzle |
| 28 | 359 | Logger Rate Limiter | 70.8% | Easy | 1.4642891467178614 | https://leetcode.com/problems/logger-rate-limiter |
| 29 | 772 | Basic Calculator III | 41.3% | Hard | 1.324801306769502 | https://leetcode.com/problems/basic-calculator-iii |
| 30 | 166 | Fraction to Recurring Decimal | 21.6% | Medium | 1.3061986410149267 | https://leetcode.com/problems/fraction-to-recurring-decimal |
| 31 | 780 | Reaching Points | 29.4% | Hard | 1.277920355988899 | https://leetcode.com/problems/reaching-points |
| 32 | 239 | Sliding Window Maximum | 43.0% | Hard | 1.2321602024355653 | https://leetcode.com/problems/sliding-window-maximum |
| 33 | 224 | Basic Calculator | 36.8% | Hard | 1.204714054955524 | https://leetcode.com/problems/basic-calculator |
| 34 | 49 | Group Anagrams | 56.9% | Medium | 1.190205287799969 | https://leetcode.com/problems/group-anagrams |
| 35 | 17 | Letter Combinations of a Phone Number | 46.8% | Medium | 1.1735261038835452 | https://leetcode.com/problems/letter-combinations-of-a-phone-number |
| 36 | 212 | Word Search II | 34.9% | Hard | 1.1712646007295122 | https://leetcode.com/problems/word-search-ii |
| 37 | 642 | Design Search Autocomplete System | 44.7% | Hard | 1.1539027516811295 | https://leetcode.com/problems/design-search-autocomplete-system |
| 38 | 361 | Bomb Enemy | 46.0% | Medium | 1.1535711729488671 | https://leetcode.com/problems/bomb-enemy |
| 39 | 139 | Word Break | 40.1% | Medium | 1.1489605133291307 | https://leetcode.com/problems/word-break |
| 40 | 286 | Walls and Gates | 54.5% | Medium | 1.1385638280265375 | https://leetcode.com/problems/walls-and-gates |
| 41 | 591 | Tag Validator | 34.3% | Hard | 1.133098464739279 | https://leetcode.com/problems/tag-validator |
| 42 | 336 | Palindrome Pairs | 33.7% | Hard | 1.1081703064742152 | https://leetcode.com/problems/palindrome-pairs |
| 43 | 636 | Exclusive Time of Functions | 51.9% | Medium | 1.070608304685468 | https://leetcode.com/problems/exclusive-time-of-functions |
| 44 | 128 | Longest Consecutive Sequence | 45.1% | Hard | 1.0687708064824162 | https://leetcode.com/problems/longest-consecutive-sequence |
| 45 | 381 | Insert Delete GetRandom O(1) - Duplicates allowed | 34.1% | Hard | 1.0261327161577256 | https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed |
| 46 | 34 | Find First and Last Position of Element in Sorted Array | 36.2% | Medium | 1.025636061253605 | https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array |
| 47 | 365 | Water and Jug Problem | 30.6% | Medium | 1.0087460326577822 | https://leetcode.com/problems/water-and-jug-problem |
| 48 | 269 | Alien Dictionary | 33.3% | Hard | 0.991185435747213 | https://leetcode.com/problems/alien-dictionary |
| 49 | 254 | Factor Combinations | 46.7% | Medium | 0.9907010014908804 | https://leetcode.com/problems/factor-combinations |
| 50 | 528 | Random Pick with Weight | 43.9% | Medium | 0.9735653552899035 | https://leetcode.com/problems/random-pick-with-weight |
| 51 | 149 | Max Points on a Line | 16.9% | Hard | 0.9593743180104668 | https://leetcode.com/problems/max-points-on-a-line |
| 52 | 10 | Regular Expression Matching | 26.8% | Hard | 0.9228325761309415 | https://leetcode.com/problems/regular-expression-matching |
| 53 | 76 | Minimum Window Substring | 34.6% | Hard | 0.9170093359386342 | https://leetcode.com/problems/minimum-window-substring |
| 54 | 679 | 24 Game | 46.4% | Hard | 0.8636247536746324 | https://leetcode.com/problems/24-game |
| 55 | 329 | Longest Increasing Path in a Matrix | 43.4% | Hard | 0.8540205747820803 | https://leetcode.com/problems/longest-increasing-path-in-a-matrix |
| 56 | 99 | Recover Binary Search Tree | 39.7% | Hard | 0.8394185237297231 | https://leetcode.com/problems/recover-binary-search-tree |
| 57 | 640 | Solve the Equation | 42.0% | Medium | 0.8389208480491557 | https://leetcode.com/problems/solve-the-equation |
| 58 | 1135 | Connecting Cities With Minimum Cost | 57.5% | Medium | 0.8224378230678087 | https://leetcode.com/problems/connecting-cities-with-minimum-cost |
| 59 | 22 | Generate Parentheses | 62.7% | Medium | 0.8167408078117945 | https://leetcode.com/problems/generate-parentheses |
| 60 | 2 | Add Two Numbers | 33.9% | Medium | 0.8029174283671102 | https://leetcode.com/problems/add-two-numbers |
| 61 | 173 | Binary Search Tree Iterator | 56.6% | Medium | 0.8009344168671371 | https://leetcode.com/problems/binary-search-tree-iterator |
| 62 | 57 | Insert Interval | 33.5% | Hard | 0.784728817691922 | https://leetcode.com/problems/insert-interval |
| 63 | 126 | Word Ladder II | 22.1% | Hard | 0.7710576539985173 | https://leetcode.com/problems/word-ladder-ii |
| 64 | 32 | Longest Valid Parentheses | 28.4% | Hard | 0.7455268411597167 | https://leetcode.com/problems/longest-valid-parentheses |
| 65 | 251 | Flatten 2D Vector | 45.7% | Medium | 0.74087494933668 | https://leetcode.com/problems/flatten-2d-vector |
| 66 | 133 | Clone Graph | 34.8% | Medium | 0.7325956832523879 | https://leetcode.com/problems/clone-graph |
| 67 | 535 | Encode and Decode TinyURL | 79.9% | Medium | 0.7284232783609871 | https://leetcode.com/problems/encode-and-decode-tinyurl |
| 68 | 127 | Word Ladder | 29.6% | Medium | 0.6998711506076138 | https://leetcode.com/problems/word-ladder |
| 69 | 4 | Median of Two Sorted Arrays | 29.6% | Hard | 0.6933425502977945 | https://leetcode.com/problems/median-of-two-sorted-arrays |
| 70 | 273 | Integer to English Words | 27.1% | Hard | 0.6853686009593172 | https://leetcode.com/problems/integer-to-english-words |
| 71 | 244 | Shortest Word Distance II | 52.3% | Medium | 0.6781843078832329 | https://leetcode.com/problems/shortest-word-distance-ii |
| 72 | 936 | Stamping The Sequence | 42.8% | Hard | 0.6737290947028437 | https://leetcode.com/problems/stamping-the-sequence |
| 73 | 218 | The Skyline Problem | 34.6% | Hard | 0.6570184564714399 | https://leetcode.com/problems/the-skyline-problem |
| 74 | 54 | Spiral Matrix | 34.1% | Medium | 0.628586606031113 | https://leetcode.com/problems/spiral-matrix |
| 75 | 23 | Merge k Sorted Lists | 40.2% | Hard | 0.5853931037905282 | https://leetcode.com/problems/merge-k-sorted-lists |
| 76 | 388 | Longest Absolute File Path | 41.8% | Medium | 0.5850223231279691 | https://leetcode.com/problems/longest-absolute-file-path |
| 77 | 37 | Sudoku Solver | 43.6% | Hard | 0.5747320517924429 | https://leetcode.com/problems/sudoku-solver |
| 78 | 15 | 3Sum | 26.8% | Medium | 0.5615794220738226 | https://leetcode.com/problems/3sum |
| 79 | 208 | Implement Trie (Prefix Tree) | 49.4% | Medium | 0.554408039893292 | https://leetcode.com/problems/implement-trie-prefix-tree |
| 80 | 658 | Find K Closest Elements | 40.9% | Medium | 0.5351504766219078 | https://leetcode.com/problems/find-k-closest-elements |
| 81 | 158 | Read N Characters Given Read4 II - Call multiple times | 33.8% | Hard | 0.5089658995317979 | https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times |
| 82 | 20 | Valid Parentheses | 39.0% | Easy | 0.4867693607438125 | https://leetcode.com/problems/valid-parentheses |
| 83 | 527 | Word Abbreviation | 54.3% | Hard | 0.48285177172358457 | https://leetcode.com/problems/word-abbreviation |
| 84 | 91 | Decode Ways | 24.7% | Medium | 0.46914273798301376 | https://leetcode.com/problems/decode-ways |
| 85 | 3 | Longest Substring Without Repeating Characters | 30.4% | Medium | 0.46498482873214675 | https://leetcode.com/problems/longest-substring-without-repeating-characters |
| 86 | 79 | Word Search | 35.6% | Medium | 0.451219934510799 | https://leetcode.com/problems/word-search |
| 87 | 668 | Kth Smallest Number in Multiplication Table | 45.6% | Hard | 0.4506902061131003 | https://leetcode.com/problems/kth-smallest-number-in-multiplication-table |
| 88 | 85 | Maximal Rectangle | 37.7% | Hard | 0.4492357711634929 | https://leetcode.com/problems/maximal-rectangle |
| 89 | 353 | Design Snake Game | 34.2% | Medium | 0.44572532239455054 | https://leetcode.com/problems/design-snake-game |
| 90 | 221 | Maximal Square | 37.7% | Medium | 0.4439595076531865 | https://leetcode.com/problems/maximal-square |
| 91 | 207 | Course Schedule | 43.1% | Medium | 0.43737967140902645 | https://leetcode.com/problems/course-schedule |
| 92 | 346 | Moving Average from Data Stream | 70.9% | Easy | 0.43127299206403696 | https://leetcode.com/problems/moving-average-from-data-stream |
| 93 | 1281 | Subtract the Product and Sum of Digits of an Integer | 85.2% | Easy | 0.4301109053149923 | https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer |
| 94 | 289 | Game of Life | 54.5% | Medium | 0.42436217241512136 | https://leetcode.com/problems/game-of-life |
| 95 | 301 | Remove Invalid Parentheses | 43.3% | Hard | 0.4217256289799447 | https://leetcode.com/problems/remove-invalid-parentheses |
| 96 | 362 | Design Hit Counter | 63.7% | Medium | 0.41908233979999515 | https://leetcode.com/problems/design-hit-counter |
| 97 | 863 | All Nodes Distance K in Binary Tree | 55.4% | Medium | 0.4169423860623174 | https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree |
| 98 | 97 | Interleaving String | 31.5% | Hard | 0.4167762826896874 | https://leetcode.com/problems/interleaving-string |
| 99 | 243 | Shortest Word Distance | 61.0% | Easy | 0.41203384391389536 | https://leetcode.com/problems/shortest-word-distance |
| 100 | 130 | Surrounded Regions | 28.1% | Medium | 0.41116654890890914 | https://leetcode.com/problems/surrounded-regions |
| 101 | 568 | Maximum Vacation Days | 40.8% | Hard | 0.4036217896138752 | https://leetcode.com/problems/maximum-vacation-days |
| 102 | 53 | Maximum Subarray | 46.5% | Easy | 0.3975151615275705 | https://leetcode.com/problems/maximum-subarray |
| 103 | 21 | Merge Two Sorted Lists | 53.5% | Easy | 0.38844463176041194 | https://leetcode.com/problems/merge-two-sorted-lists |
| 104 | 1188 | Design Bounded Blocking Queue | 70.5% | Medium | 0.3828597229337993 | https://leetcode.com/problems/design-bounded-blocking-queue |
| 105 | 39 | Combination Sum | 56.1% | Medium | 0.38138852814402385 | https://leetcode.com/problems/combination-sum |
| 106 | 282 | Expression Add Operators | 35.5% | Hard | 0.37930977098051977 | https://leetcode.com/problems/expression-add-operators |
| 107 | 279 | Perfect Squares | 47.4% | Medium | 0.3741145782240884 | https://leetcode.com/problems/perfect-squares |
| 108 | 552 | Student Attendance Record II | 36.7% | Hard | 0.37292635232139065 | https://leetcode.com/problems/student-attendance-record-ii |
| 109 | 759 | Employee Free Time | 66.3% | Hard | 0.3704034385719028 | https://leetcode.com/problems/employee-free-time |
| 110 | 815 | Bus Routes | 42.5% | Hard | 0.3449091275382815 | https://leetcode.com/problems/bus-routes |
| 111 | 805 | Split Array With Same Average | 26.4% | Hard | 0.3416302106614813 | https://leetcode.com/problems/split-array-with-same-average |
| 112 | 895 | Maximum Frequency Stack | 60.6% | Hard | 0.33520721431462625 | https://leetcode.com/problems/maximum-frequency-stack |
| 113 | 493 | Reverse Pairs | 25.2% | Hard | 0.33395175639587793 | https://leetcode.com/problems/reverse-pairs |
| 114 | 399 | Evaluate Division | 51.6% | Medium | 0.3338128467131867 | https://leetcode.com/problems/evaluate-division |
| 115 | 238 | Product of Array Except Self | 60.1% | Medium | 0.332046078454996 | https://leetcode.com/problems/product-of-array-except-self |
| 116 | 5 | Longest Palindromic Substring | 29.5% | Medium | 0.32616692072076214 | https://leetcode.com/problems/longest-palindromic-substring |
| 117 | 295 | Find Median from Data Stream | 44.3% | Hard | 0.32347449067924283 | https://leetcode.com/problems/find-median-from-data-stream |
| 118 | 11 | Container With Most Water | 50.8% | Medium | 0.3160977539241027 | https://leetcode.com/problems/container-with-most-water |
| 119 | 542 | 01 Matrix | 39.8% | Medium | 0.3127505293143989 | https://leetcode.com/problems/01-matrix |
| 120 | 315 | Count of Smaller Numbers After Self | 41.5% | Hard | 0.30851522790511515 | https://leetcode.com/problems/count-of-smaller-numbers-after-self |
| 121 | 131 | Palindrome Partitioning | 47.5% | Medium | 0.3001175559774547 | https://leetcode.com/problems/palindrome-partitioning |
| 122 | 311 | Sparse Matrix Multiplication | 61.9% | Medium | 0.2957254800409785 | https://leetcode.com/problems/sparse-matrix-multiplication |
| 123 | 74 | Search a 2D Matrix | 36.5% | Medium | 0.29107845681405486 | https://leetcode.com/problems/search-a-2d-matrix |
| 124 | 51 | N-Queens | 46.6% | Hard | 0.28871459706597014 | https://leetcode.com/problems/n-queens |
| 125 | 161 | One Edit Distance | 32.3% | Medium | 0.28698931177288023 | https://leetcode.com/problems/one-edit-distance |
| 126 | 121 | Best Time to Buy and Sell Stock | 50.5% | Easy | 0.2868445347634817 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock |
| 127 | 451 | Sort Characters By Frequency | 63.0% | Medium | 0.285942725510602 | https://leetcode.com/problems/sort-characters-by-frequency |
| 128 | 1136 | Parallel Courses | 61.1% | Hard | 0.2858421455297737 | https://leetcode.com/problems/parallel-courses |
| 129 | 699 | Falling Squares | 41.8% | Hard | 0.2856138193877219 | https://leetcode.com/problems/falling-squares |
| 130 | 969 | Pancake Sorting | 67.5% | Medium | 0.27343004974457946 | https://leetcode.com/problems/pancake-sorting |
| 131 | 348 | Design Tic-Tac-Toe | 54.3% | Medium | 0.2625527836498761 | https://leetcode.com/problems/design-tic-tac-toe |
| 132 | 290 | Word Pattern | 37.0% | Easy | 0.2601476821005732 | https://leetcode.com/problems/word-pattern |
| 133 | 33 | Search in Rotated Sorted Array | 34.5% | Medium | 0.2561733762253273 | https://leetcode.com/problems/search-in-rotated-sorted-array |
| 134 | 432 | All O`one Data Structure | 32.4% | Hard | 0.25091823176225275 | https://leetcode.com/problems/all-oone-data-structure |
| 135 | 977 | Squares of a Sorted Array | 72.1% | Easy | 0.24816891888115009 | https://leetcode.com/problems/squares-of-a-sorted-array |
| 136 | 13 | Roman to Integer | 55.7% | Easy | 0.24545840052279075 | https://leetcode.com/problems/roman-to-integer |
| 137 | 490 | The Maze | 51.4% | Medium | 0.24202227192369596 | https://leetcode.com/problems/the-maze |
| 138 | 138 | Copy List with Random Pointer | 36.4% | Medium | 0.2330001096609468 | https://leetcode.com/problems/copy-list-with-random-pointer |
| 139 | 652 | Find Duplicate Subtrees | 50.2% | Medium | 0.23015822831359434 | https://leetcode.com/problems/find-duplicate-subtrees |
| 140 | 59 | Spiral Matrix II | 53.9% | Medium | 0.22687712200146865 | https://leetcode.com/problems/spiral-matrix-ii |
| 141 | 420 | Strong Password Checker | 14.0% | Hard | 0.22471711576164025 | https://leetcode.com/problems/strong-password-checker |
| 142 | 445 | Add Two Numbers II | 54.5% | Medium | 0.22413561488763817 | https://leetcode.com/problems/add-two-numbers-ii |
| 143 | 46 | Permutations | 63.5% | Medium | 0.21322871153926434 | https://leetcode.com/problems/permutations |
| 144 | 41 | First Missing Positive | 32.0% | Hard | 0.20827230480570424 | https://leetcode.com/problems/first-missing-positive |
| 145 | 43 | Multiply Strings | 33.9% | Medium | 0.20674898228580507 | https://leetcode.com/problems/multiply-strings |
| 146 | 934 | Shortest Bridge | 48.2% | Medium | 0.20666322275821203 | https://leetcode.com/problems/shortest-bridge |
| 147 | 450 | Delete Node in a BST | 43.1% | Medium | 0.2063522880195106 | https://leetcode.com/problems/delete-node-in-a-bst |
| 148 | 733 | Flood Fill | 55.3% | Easy | 0.20573399741869788 | https://leetcode.com/problems/flood-fill |
| 149 | 954 | Array of Doubled Pairs | 35.6% | Medium | 0.20294084399669032 | https://leetcode.com/problems/array-of-doubled-pairs |
| 150 | 140 | Word Break II | 32.6% | Hard | 0.19849973124449666 | https://leetcode.com/problems/word-break-ii |
| 151 | 31 | Next Permutation | 32.6% | Medium | 0.19579797845713617 | https://leetcode.com/problems/next-permutation |
| 152 | 767 | Reorganize String | 48.7% | Medium | 0.1940772649823193 | https://leetcode.com/problems/reorganize-string |
| 153 | 283 | Move Zeroes | 57.8% | Easy | 0.18960312780683863 | https://leetcode.com/problems/move-zeroes |
| 154 | 694 | Number of Distinct Islands | 56.0% | Medium | 0.18924199963852842 | https://leetcode.com/problems/number-of-distinct-islands |
| 155 | 186 | Reverse Words in a String II | 43.3% | Medium | 0.1887940712995721 | https://leetcode.com/problems/reverse-words-in-a-string-ii |
| 156 | 449 | Serialize and Deserialize BST | 52.0% | Medium | 0.1860058460684763 | https://leetcode.com/problems/serialize-and-deserialize-bst |
| 157 | 438 | Find All Anagrams in a String | 43.3% | Medium | 0.18564799141482685 | https://leetcode.com/problems/find-all-anagrams-in-a-string |
| 158 | 518 | Coin Change 2 | 50.2% | Medium | 0.18373876827436816 | https://leetcode.com/problems/coin-change-2 |
| 159 | 486 | Predict the Winner | 47.9% | Medium | 0.17647417648741714 | https://leetcode.com/problems/predict-the-winner |
| 160 | 135 | Candy | 31.6% | Hard | 0.17296269248039503 | https://leetcode.com/problems/candy |
| 161 | 24 | Swap Nodes in Pairs | 50.4% | Medium | 0.1729418749687828 | https://leetcode.com/problems/swap-nodes-in-pairs |
| 162 | 1278 | Palindrome Partitioning III | 59.9% | Hard | 0.17284281283941086 | https://leetcode.com/problems/palindrome-partitioning-iii |
| 163 | 567 | Permutation in String | 44.4% | Medium | 0.16931057302189864 | https://leetcode.com/problems/permutation-in-string |
| 164 | 198 | House Robber | 42.0% | Easy | 0.16929591377679865 | https://leetcode.com/problems/house-robber |
| 165 | 69 | Sqrt(x) | 33.9% | Easy | 0.1690194941008683 | https://leetcode.com/problems/sqrtx |
| 166 | 75 | Sort Colors | 47.3% | Medium | 0.1656671218888174 | https://leetcode.com/problems/sort-colors |
| 167 | 249 | Group Shifted Strings | 55.1% | Medium | 0.16122347914767343 | https://leetcode.com/problems/group-shifted-strings |
| 168 | 211 | Add and Search Word - Data structure design | 38.1% | Medium | 0.15519944762134272 | https://leetcode.com/problems/add-and-search-word-data-structure-design |
| 169 | 124 | Binary Tree Maximum Path Sum | 34.3% | Hard | 0.15512094811323265 | https://leetcode.com/problems/binary-tree-maximum-path-sum |
| 170 | 979 | Distribute Coins in Binary Tree | 68.9% | Medium | 0.15348688956060175 | https://leetcode.com/problems/distribute-coins-in-binary-tree |
| 171 | 722 | Remove Comments | 34.6% | Medium | 0.1529693447814272 | https://leetcode.com/problems/remove-comments |
| 172 | 959 | Regions Cut By Slashes | 66.2% | Medium | 0.1507867227152846 | https://leetcode.com/problems/regions-cut-by-slashes |
| 173 | 706 | Design HashMap | 61.3% | Easy | 0.1476880076475794 | https://leetcode.com/problems/design-hashmap |
| 174 | 695 | Max Area of Island | 62.7% | Medium | 0.1453113999428855 | https://leetcode.com/problems/max-area-of-island |
| 175 | 78 | Subsets | 62.0% | Medium | 0.14504470601712524 | https://leetcode.com/problems/subsets |
| 176 | 210 | Course Schedule II | 40.7% | Medium | 0.1438838393073597 | https://leetcode.com/problems/course-schedule-ii |
| 177 | 317 | Shortest Distance from All Buildings | 41.4% | Hard | 0.14387423888417297 | https://leetcode.com/problems/shortest-distance-from-all-buildings |
| 178 | 40 | Combination Sum II | 48.2% | Medium | 0.14322916392828683 | https://leetcode.com/problems/combination-sum-ii |
| 179 | 395 | Longest Substring with At Least K Repeating Characters | 41.4% | Medium | 0.14261022668001652 | https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters |
| 180 | 769 | Max Chunks To Make Sorted | 54.8% | Medium | 0.14019808398271194 | https://leetcode.com/problems/max-chunks-to-make-sorted |
| 181 | 242 | Valid Anagram | 56.9% | Easy | 0.13963976683590715 | https://leetcode.com/problems/valid-anagram |
| 182 | 855 | Exam Room | 43.1% | Medium | 0.13804422079620546 | https://leetcode.com/problems/exam-room |
| 183 | 340 | Longest Substring with At Most K Distinct Characters | 44.1% | Hard | 0.13652366061094043 | https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters |
| 184 | 322 | Coin Change | 35.5% | Medium | 0.13572462473832947 | https://leetcode.com/problems/coin-change |
| 185 | 255 | Verify Preorder Sequence in Binary Search Tree | 45.7% | Medium | 0.1348842676899421 | https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree |
| 186 | 981 | Time Based Key-Value Store | 53.1% | Medium | 0.1316303182973487 | https://leetcode.com/problems/time-based-key-value-store |
| 187 | 118 | Pascal's Triangle | 52.5% | Easy | 0.12852395589356347 | https://leetcode.com/problems/pascals-triangle |
| 188 | 968 | Binary Tree Cameras | 37.5% | Hard | 0.12586422089000404 | https://leetcode.com/problems/binary-tree-cameras |
| 189 | 235 | Lowest Common Ancestor of a Binary Search Tree | 49.9% | Easy | 0.12399764165657076 | https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree |
| 190 | 621 | Task Scheduler | 50.1% | Medium | 0.12387972474581618 | https://leetcode.com/problems/task-scheduler |
| 191 | 206 | Reverse Linked List | 62.5% | Easy | 0.12378418901663191 | https://leetcode.com/problems/reverse-linked-list |
| 192 | 430 | Flatten a Multilevel Doubly Linked List | 55.1% | Medium | 0.12213316890521433 | https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list |
| 193 | 230 | Kth Smallest Element in a BST | 60.2% | Medium | 0.1210793254708764 | https://leetcode.com/problems/kth-smallest-element-in-a-bst |
| 194 | 228 | Summary Ranges | 39.5% | Medium | 0.1207191114343526 | https://leetcode.com/problems/summary-ranges |
| 195 | 647 | Palindromic Substrings | 60.6% | Medium | 0.1205091763778271 | https://leetcode.com/problems/palindromic-substrings |
| 196 | 460 | LFU Cache | 34.2% | Hard | 0.11848160362052347 | https://leetcode.com/problems/lfu-cache |
| 197 | 6 | ZigZag Conversion | 36.3% | Medium | 0.11677183708486526 | https://leetcode.com/problems/zigzag-conversion |
| 198 | 72 | Edit Distance | 44.8% | Hard | 0.11629970881467097 | https://leetcode.com/problems/edit-distance |
| 199 | 70 | Climbing Stairs | 47.8% | Easy | 0.11536054266386848 | https://leetcode.com/problems/climbing-stairs |
| 200 | 16 | 3Sum Closest | 46.0% | Medium | 0.11410404900826158 | https://leetcode.com/problems/3sum-closest |
| 201 | 229 | Majority Element II | 35.6% | Medium | 0.11355198202632807 | https://leetcode.com/problems/majority-element-ii |
| 202 | 155 | Min Stack | 44.5% | Easy | 0.11244000234885869 | https://leetcode.com/problems/min-stack |
| 203 | 889 | Construct Binary Tree from Preorder and Postorder Traversal | 66.2% | Medium | 0.10711776476069794 | https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal |
| 204 | 337 | House Robber III | 50.6% | Medium | 0.10284435451079782 | https://leetcode.com/problems/house-robber-iii |
| 205 | 391 | Perfect Rectangle | 30.5% | Hard | 0.10109611687136877 | https://leetcode.com/problems/perfect-rectangle |
| 206 | 101 | Symmetric Tree | 46.8% | Easy | 0.09821350130564939 | https://leetcode.com/problems/symmetric-tree |
| 207 | 837 | New 21 Game | 34.6% | Medium | 0.09646026618756222 | https://leetcode.com/problems/new-21-game |
| 208 | 752 | Open the Lock | 51.8% | Medium | 0.09491410658218381 | https://leetcode.com/problems/open-the-lock |
| 209 | 827 | Making A Large Island | 45.7% | Hard | 0.09287412500644375 | https://leetcode.com/problems/making-a-large-island |
| 210 | 826 | Most Profit Assigning Work | 38.5% | Medium | 0.09287412500644375 | https://leetcode.com/problems/most-profit-assigning-work |
| 211 | 236 | Lowest Common Ancestor of a Binary Tree | 45.7% | Medium | 0.0913825929084002 | https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree |
| 212 | 266 | Palindrome Permutation | 61.9% | Easy | 0.091248671465145 | https://leetcode.com/problems/palindrome-permutation |
| 213 | 62 | Unique Paths | 54.1% | Medium | 0.08965185882136445 | https://leetcode.com/problems/unique-paths |
| 214 | 918 | Maximum Sum Circular Subarray | 33.7% | Medium | 0.08881573371064024 | https://leetcode.com/problems/maximum-sum-circular-subarray |
| 215 | 692 | Top K Frequent Words | 51.8% | Medium | 0.08839354721658145 | https://leetcode.com/problems/top-k-frequent-words |
| 216 | 7 | Reverse Integer | 25.8% | Easy | 0.08735674450872549 | https://leetcode.com/problems/reverse-integer |
| 217 | 150 | Evaluate Reverse Polish Notation | 36.3% | Medium | 0.08523043261863501 | https://leetcode.com/problems/evaluate-reverse-polish-notation |
| 218 | 564 | Find the Closest Palindrome | 19.7% | Hard | 0.0840831172105414 | https://leetcode.com/problems/find-the-closest-palindrome |
| 219 | 909 | Snakes and Ladders | 38.4% | Medium | 0.08392620769993404 | https://leetcode.com/problems/snakes-and-ladders |
| 220 | 646 | Maximum Length of Pair Chain | 51.9% | Medium | 0.08112554481236843 | https://leetcode.com/problems/maximum-length-of-pair-chain |
| 221 | 376 | Wiggle Subsequence | 39.6% | Medium | 0.08068891125014274 | https://leetcode.com/problems/wiggle-subsequence |
| 222 | 122 | Best Time to Buy and Sell Stock II | 57.0% | Easy | 0.08066286273217169 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii |
| 223 | 347 | Top K Frequent Elements | 61.2% | Medium | 0.08031715021385247 | https://leetcode.com/problems/top-k-frequent-elements |
| 224 | 55 | Jump Game | 34.6% | Medium | 0.07748307858552587 | https://leetcode.com/problems/jump-game |
| 225 | 215 | Kth Largest Element in an Array | 55.4% | Medium | 0.07620046088541414 | https://leetcode.com/problems/kth-largest-element-in-an-array |
| 226 | 468 | Validate IP Address | 24.1% | Medium | 0.07598590697792203 | https://leetcode.com/problems/validate-ip-address |
| 227 | 416 | Partition Equal Subset Sum | 43.7% | Medium | 0.07558685936624726 | https://leetcode.com/problems/partition-equal-subset-sum |
| 228 | 8 | String to Integer (atoi) | 15.4% | Medium | 0.07412832776627384 | https://leetcode.com/problems/string-to-integer-atoi |
| 229 | 437 | Path Sum III | 47.2% | Medium | 0.07349765782290693 | https://leetcode.com/problems/path-sum-iii |
| 230 | 153 | Find Minimum in Rotated Sorted Array | 45.1% | Medium | 0.07343579359779528 | https://leetcode.com/problems/find-minimum-in-rotated-sorted-array |
| 231 | 64 | Minimum Path Sum | 54.5% | Medium | 0.07259220458870491 | https://leetcode.com/problems/minimum-path-sum |
| 232 | 378 | Kth Smallest Element in a Sorted Matrix | 54.3% | Medium | 0.07059096970081927 | https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix |
| 233 | 973 | K Closest Points to Origin | 63.8% | Medium | 0.06852953312583007 | https://leetcode.com/problems/k-closest-points-to-origin |
| 234 | 1011 | Capacity To Ship Packages Within D Days | 58.1% | Medium | 0.06649420875558125 | https://leetcode.com/problems/capacity-to-ship-packages-within-d-days |
| 235 | 277 | Find the Celebrity | 41.8% | Medium | 0.06562120535847293 | https://leetcode.com/problems/find-the-celebrity |
| 236 | 298 | Binary Tree Longest Consecutive Sequence | 47.1% | Medium | 0.065169635074581 | https://leetcode.com/problems/binary-tree-longest-consecutive-sequence |
| 237 | 334 | Increasing Triplet Subsequence | 40.0% | Medium | 0.06274107505168265 | https://leetcode.com/problems/increasing-triplet-subsequence |
| 238 | 300 | Longest Increasing Subsequence | 42.6% | Medium | 0.06265630749555627 | https://leetcode.com/problems/longest-increasing-subsequence |
| 239 | 189 | Rotate Array | 34.7% | Easy | 0.06260600694223208 | https://leetcode.com/problems/rotate-array |
| 240 | 1171 | Remove Zero Sum Consecutive Nodes from Linked List | 41.4% | Medium | 0.06025919151819684 | https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list |
| 241 | 88 | Merge Sorted Array | 39.4% | Easy | 0.059258174101133876 | https://leetcode.com/problems/merge-sorted-array |
| 242 | 47 | Permutations II | 46.4% | Medium | 0.05897935516253239 | https://leetcode.com/problems/permutations-ii |
| 243 | 102 | Binary Tree Level Order Traversal | 54.6% | Medium | 0.056692473087026664 | https://leetcode.com/problems/binary-tree-level-order-traversal |
| 244 | 1038 | Binary Search Tree to Greater Sum Tree | 80.8% | Medium | 0.05637058926920947 | https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree |
| 245 | 162 | Find Peak Element | 43.3% | Medium | 0.05575061760504993 | https://leetcode.com/problems/find-peak-element |
| 246 | 983 | Minimum Cost For Tickets | 60.5% | Medium | 0.05469163590186561 | https://leetcode.com/problems/minimum-cost-for-tickets |
| 247 | 1229 | Meeting Scheduler | 52.7% | Medium | 0.053560323833736816 | https://leetcode.com/problems/meeting-scheduler |
| 248 | 829 | Consecutive Numbers Sum | 37.5% | Hard | 0.05341723749698583 | https://leetcode.com/problems/consecutive-numbers-sum |
| 249 | 601 | Human Traffic of Stadium | 41.7% | Hard | 0.05223119222544569 | https://leetcode.com/problems/human-traffic-of-stadium |
| 250 | 791 | Custom Sort String | 65.7% | Medium | 0.05164658886216683 | https://leetcode.com/problems/custom-sort-string |
| 251 | 560 | Subarray Sum Equals K | 43.9% | Medium | 0.0512021569656579 | https://leetcode.com/problems/subarray-sum-equals-k |
| 252 | 648 | Replace Words | 56.6% | Medium | 0.051162052179868224 | https://leetcode.com/problems/replace-words |
| 253 | 740 | Delete and Earn | 48.6% | Medium | 0.05109668266230467 | https://leetcode.com/problems/delete-and-earn |
| 254 | 344 | Reverse String | 68.5% | Easy | 0.051072212148151434 | https://leetcode.com/problems/reverse-string |
| 255 | 681 | Next Closest Time | 45.0% | Medium | 0.05045206096038863 | https://leetcode.com/problems/next-closest-time |
| 256 | 199 | Binary Tree Right Side View | 54.1% | Medium | 0.05001737032794516 | https://leetcode.com/problems/binary-tree-right-side-view |
| 257 | 398 | Random Pick Index | 56.0% | Medium | 0.04900272661044917 | https://leetcode.com/problems/random-pick-index |
| 258 | 547 | Friend Circles | 58.6% | Medium | 0.04804286211474039 | https://leetcode.com/problems/friend-circles |
| 259 | 1019 | Next Greater Node In Linked List | 57.4% | Medium | 0.04795804429616222 | https://leetcode.com/problems/next-greater-node-in-linked-list |
| 260 | 1385 | Find the Distance Value Between Two Arrays | 67.0% | Easy | 0.04668292188270772 | https://leetcode.com/problems/find-the-distance-value-between-two-arrays |
| 261 | 670 | Maximum Swap | 43.6% | Medium | 0.04630456804168632 | https://leetcode.com/problems/maximum-swap |
| 262 | 98 | Validate Binary Search Tree | 27.8% | Medium | 0.046091107200267 | https://leetcode.com/problems/validate-binary-search-tree |
| 263 | 48 | Rotate Image | 56.7% | Medium | 0.04495138786226632 | https://leetcode.com/problems/rotate-image |
| 264 | 232 | Implement Queue using Stacks | 49.6% | Easy | 0.04423053722733957 | https://leetcode.com/problems/implement-queue-using-stacks |
| 265 | 338 | Counting Bits | 69.5% | Medium | 0.0428445715346785 | https://leetcode.com/problems/counting-bits |
| 266 | 611 | Valid Triangle Number | 48.4% | Medium | 0.04255961441879593 | https://leetcode.com/problems/valid-triangle-number |
| 267 | 114 | Flatten Binary Tree to Linked List | 49.3% | Medium | 0.04234332805480797 | https://leetcode.com/problems/flatten-binary-tree-to-linked-list |
| 268 | 739 | Daily Temperatures | 63.3% | Medium | 0.03954060923825168 | https://leetcode.com/problems/daily-temperatures |
| 269 | 66 | Plus One | 43.0% | Easy | 0.039245846990968294 | https://leetcode.com/problems/plus-one |
| 270 | 992 | Subarrays with K Different Integers | 48.6% | Hard | 0.03700699810869683 | https://leetcode.com/problems/subarrays-with-k-different-integers |
| 271 | 729 | My Calendar I | 51.8% | Medium | 0.036433902246102004 | https://leetcode.com/problems/my-calendar-i |
| 272 | 125 | Valid Palindrome | 36.7% | Easy | 0.035266657982323354 | https://leetcode.com/problems/valid-palindrome |
| 273 | 152 | Maximum Product Subarray | 31.7% | Medium | 0.034438665054543384 | https://leetcode.com/problems/maximum-product-subarray |
| 274 | 177 | Nth Highest Salary | 31.4% | Medium | 0.032054026290083464 | https://leetcode.com/problems/nth-highest-salary |
| 275 | 1146 | Snapshot Array | 37.0% | Medium | 0.0317991816929387 | https://leetcode.com/problems/snapshot-array |
| 276 | 1091 | Shortest Path in Binary Matrix | 38.2% | Medium | 0.03164821095078173 | https://leetcode.com/problems/shortest-path-in-binary-matrix |
| 277 | 339 | Nested List Weight Sum | 74.0% | Easy | 0.02960986116720276 | https://leetcode.com/problems/nested-list-weight-sum |
| 278 | 671 | Second Minimum Node In a Binary Tree | 42.7% | Easy | 0.02958795718549609 | https://leetcode.com/problems/second-minimum-node-in-a-binary-tree |
| 279 | 264 | Ugly Number II | 42.0% | Medium | 0.025923110599373623 | https://leetcode.com/problems/ugly-number-ii |
| 280 | 104 | Maximum Depth of Binary Tree | 66.0% | Easy | 0.024815169119723996 | https://leetcode.com/problems/maximum-depth-of-binary-tree |
| 281 | 426 | Convert Binary Search Tree to Sorted Doubly Linked List | 59.1% | Medium | 0.024214258120594613 | https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list |
| 282 | 662 | Maximum Width of Binary Tree | 41.0% | Medium | 0.024116924478312346 | https://leetcode.com/problems/maximum-width-of-binary-tree |
| 283 | 844 | Backspace String Compare | 46.4% | Easy | 0.0235551325028849 | https://leetcode.com/problems/backspace-string-compare |
| 284 | 50 | Pow(x;n) | 30.3% | Medium | 0.022194620516948222 | https://leetcode.com/problems/powx-n |
| 285 | 278 | First Bad Version | 35.7% | Easy | 0.021394050366625766 | https://leetcode.com/problems/first-bad-version |
| 286 | 45 | Jump Game II | 30.6% | Hard | 0.021353124470568974 | https://leetcode.com/problems/jump-game-ii |
| 287 | 350 | Intersection of Two Arrays II | 51.4% | Easy | 0.020680587107206983 | https://leetcode.com/problems/intersection-of-two-arrays-ii |
| 288 | 26 | Remove Duplicates from Sorted Array | 45.1% | Easy | 0.017426260234777304 | https://leetcode.com/problems/remove-duplicates-from-sorted-array |
| 289 | 299 | Bulls and Cows | 42.4% | Easy | 0.016227536621756702 | https://leetcode.com/problems/bulls-and-cows |
| 290 | 516 | Longest Palindromic Subsequence | 53.2% | Medium | 0.014931221774984842 | https://leetcode.com/problems/longest-palindromic-subsequence |
| 291 | 202 | Happy Number | 50.4% | Easy | 0.014045174703047602 | https://leetcode.com/problems/happy-number |
| 292 | 581 | Shortest Unsorted Continuous Subarray | 31.1% | Easy | 0.013342426083839913 | https://leetcode.com/problems/shortest-unsorted-continuous-subarray |
| 293 | 154 | Find Minimum in Rotated Sorted Array II | 41.6% | Hard | 0.013222109274363887 | https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii |
| 294 | 852 | Peak Index in a Mountain Array | 71.6% | Easy | 0.012618463959211509 | https://leetcode.com/problems/peak-index-in-a-mountain-array |
| 295 | 941 | Valid Mountain Array | 33.2% | Easy | 0.011139073683009305 | https://leetcode.com/problems/valid-mountain-array |
| 296 | 94 | Binary Tree Inorder Traversal | 63.3% | Medium | 0.007533307577636257 | https://leetcode.com/problems/binary-tree-inorder-traversal |
| 297 | 145 | Binary Tree Postorder Traversal | 55.0% | Hard | 0.00751459482064135 | https://leetcode.com/problems/binary-tree-postorder-traversal |
| 298 | 349 | Intersection of Two Arrays | 62.5% | Easy | 0.00725034896230682 | https://leetcode.com/problems/intersection-of-two-arrays |
| 299 | 203 | Remove Linked List Elements | 38.6% | Easy | 0.006479067005887776 | https://leetcode.com/problems/remove-linked-list-elements |
| 300 | 690 | Employee Importance | 57.3% | Easy | 0 | https://leetcode.com/problems/employee-importance |
| 301 | 171 | Excel Sheet Column Number | 55.9% | Easy | 0 | https://leetcode.com/problems/excel-sheet-column-number |
| 302 | 373 | Find K Pairs with Smallest Sums | 36.7% | Medium | 0 | https://leetcode.com/problems/find-k-pairs-with-smallest-sums |
| 303 | 735 | Asteroid Collision | 41.0% | Medium | 0 | https://leetcode.com/problems/asteroid-collision |
| 304 | 710 | Random Pick with Blacklist | 32.5% | Hard | 0 | https://leetcode.com/problems/random-pick-with-blacklist |
| 305 | 1064 | Fixed Point | 66.5% | Easy | 0 | https://leetcode.com/problems/fixed-point |
| 306 | 1039 | Minimum Score Triangulation of Polygon | 49.1% | Medium | 0 | https://leetcode.com/problems/minimum-score-triangulation-of-polygon |
| 307 | 1334 | Find the City With the Smallest Number of Neighbors at a Threshold Distance | 44.5% | Medium | 0 | https://leetcode.com/problems/find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance |
| 308 | 1400 | Construct K Palindrome Strings | 60.4% | Medium | 0 | https://leetcode.com/problems/construct-k-palindrome-strings |
| 309 | 1462 | Course Schedule IV | 41.9% | Medium | 0 | https://leetcode.com/problems/course-schedule-iv |