├── .gitignore ├── companies ├── Dell.csv ├── Zomato.csv ├── T System.csv ├── Valve.csv ├── FactSet.csv ├── OT.csv ├── Sony.csv ├── APT Portfolio.csv ├── Huawei.csv ├── Riot Games.csv ├── ZScaler.csv ├── Barclays.csv ├── Dataminr.csv ├── Nuro.csv ├── Sapient.csv ├── Thumbtack.csv ├── Wish.csv ├── Athenahealth.csv ├── Cashfree.csv ├── Cohesity.csv ├── DJI.csv ├── Gilt Groupe.csv ├── Optum.csv ├── Rakuten.csv ├── Tencent.csv ├── Toptal.csv ├── Citrix.csv ├── MindTickle.csv ├── National Instruments.csv ├── Works Applications.csv ├── IIT Bombay.csv ├── Akuna Capital.csv ├── Jeavio.csv ├── Splunk.csv ├── Tiger Analytics.csv ├── edabit.csv ├── razorpay.csv ├── Directi.csv ├── Duolingo.csv ├── Rupeek.csv ├── Softwire.csv ├── Akamai.csv ├── AppDynamics.csv ├── Commvault.csv ├── Drawbridge.csv ├── Hulu.csv ├── IMC.csv ├── Leap Motion.csv ├── MindTree.csv ├── TIAA.csv ├── Zopsmart.csv ├── Canonical.csv ├── Druva.csv ├── Honeywell.csv ├── Zillow.csv ├── peak6.csv ├── Activision.csv ├── Jane Street.csv ├── MAQ Software.csv ├── TripleByte.csv ├── persistent systems.csv ├── Cognizant.csv ├── zeta suite.csv ├── Box.csv ├── Pocket Gems.csv ├── BlackRock.csv ├── GoDaddy.csv ├── Moengage.csv ├── instacart.csv ├── AllinCall.csv ├── Alibaba.csv ├── Coursera.csv ├── FPT.csv ├── Netsuite.csv ├── Opendoor.csv ├── Wealthfront.csv ├── Twitch.csv ├── HBO.csv ├── Pure Storage.csv ├── Redfin.csv ├── payu.csv ├── IXL.csv ├── Info Edge.csv ├── PhonePe.csv ├── Asana.csv ├── MakeMyTrip.csv ├── Palantir Technologies.csv ├── Zenefits.csv ├── Reddit.csv ├── DRW.csv ├── Alation.csv ├── United Health Group.csv ├── Baidu.csv ├── Qualcomm.csv ├── Hotstar.csv ├── Databricks.csv ├── Deutsche Bank.csv ├── PayTM.csv ├── Epic Systems.csv ├── Nutanix.csv ├── Swiggy.csv ├── TuSimple.csv ├── DE Shaw.csv ├── Arcesium.csv ├── JP Morgan.csv ├── LiveRamp.csv ├── Postmates.csv ├── Yelp.csv ├── Intel.csv ├── Two Sigma.csv ├── Arista Networks.csv ├── Dunzo.csv ├── Zoom.csv ├── Robinhood.csv ├── American Express.csv ├── C3 IoT.csv ├── Sumologic.csv ├── Netflix.csv ├── Mercari.csv ├── Roblox.csv ├── Infosys.csv ├── Bolt.csv ├── Accenture.csv ├── Dropbox.csv ├── Zoho.csv ├── Mathworks.csv ├── Sprinklr.csv ├── Virtu Financial.csv ├── Morgan Stanley.csv ├── Affirm.csv ├── Docusign.csv ├── Citadel.csv ├── SAP.csv ├── Pinterest.csv ├── Atlassian.csv ├── Flipkart.csv ├── Booking.com.csv ├── Samsung.csv ├── HRT.csv ├── tcs.csv ├── Rubrik.csv ├── Square.csv ├── Cruise Automation.csv ├── Quora.csv ├── Grab.csv ├── eBay.csv ├── IBM.csv ├── Twilio.csv ├── Shopee.csv ├── Tesla.csv ├── Capital One.csv ├── Lyft.csv ├── Indeed.csv ├── Paypal.csv ├── Intuit.csv ├── Wayfair.csv ├── Qualtrics.csv ├── ServiceNow.csv ├── Airbnb.csv ├── Karat.csv ├── Spotify.csv ├── JPMorgan.csv ├── Visa.csv ├── Expedia.csv ├── Nvidia.csv ├── Yandex.csv ├── Cisco.csv ├── DoorDash.csv ├── Twitter.csv ├── VMware.csv ├── Walmart Global Tech.csv ├── Snapchat.csv ├── ByteDance.csv ├── Yahoo.csv ├── Salesforce.csv ├── tiktok.csv ├── Goldman Sachs.csv ├── Oracle.csv ├── LinkedIn.csv ├── Uber.csv ├── Adobe.csv ├── Bloomberg.csv └── Apple.csv ├── todo.md ├── data-gen ├── parse_readme.py ├── markdown2csv.py ├── transform_data.ipynb ├── leetcode_scraper.ipynb └── .ipynb_checkpoints │ └── leetcode_scraper-checkpoint.ipynb ├── LICENSE └── viz └── csv2markdown.ipynb /.gitignore: -------------------------------------------------------------------------------- 1 | **/.ipynb_checkpoints 2 | **/__pycache__ 3 | -------------------------------------------------------------------------------- /companies/Dell.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/two-sum/,Two Sum,3 3 | -------------------------------------------------------------------------------- /companies/Zomato.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/two-sum/,Two Sum,2 3 | -------------------------------------------------------------------------------- /companies/T System.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/grid-game/,Grid Game,1 3 | -------------------------------------------------------------------------------- /companies/Valve.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/dota2-senate/,Dota2 Senate,1 3 | -------------------------------------------------------------------------------- /companies/FactSet.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximal-square/,Maximal Square,2 3 | -------------------------------------------------------------------------------- /companies/OT.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reducing-dishes/,Reducing Dishes,1 3 | -------------------------------------------------------------------------------- /companies/Sony.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reducing-dishes/,Reducing Dishes,2 3 | -------------------------------------------------------------------------------- /companies/APT Portfolio.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/stone-game-vi/,Stone Game VI,1 3 | -------------------------------------------------------------------------------- /companies/Huawei.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/add-two-numbers/,Add Two Numbers,2 3 | -------------------------------------------------------------------------------- /companies/Riot Games.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/teemo-attacking/,Teemo Attacking,1 3 | -------------------------------------------------------------------------------- /companies/ZScaler.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/day-of-the-year/,Day of the Year,1 3 | -------------------------------------------------------------------------------- /companies/Barclays.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 3 | -------------------------------------------------------------------------------- /companies/Dataminr.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 3 | -------------------------------------------------------------------------------- /companies/Nuro.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/subrectangle-queries/,Subrectangle Queries,1 3 | -------------------------------------------------------------------------------- /companies/Sapient.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,2 3 | -------------------------------------------------------------------------------- /companies/Thumbtack.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/vowel-spellchecker/,Vowel Spellchecker,1 3 | -------------------------------------------------------------------------------- /companies/Wish.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-right-interval/,Find Right Interval,2 3 | -------------------------------------------------------------------------------- /companies/Athenahealth.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/degree-of-an-array/,Degree of an Array,4 3 | -------------------------------------------------------------------------------- /companies/Cashfree.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-erasure-value/,Maximum Erasure Value,1 3 | -------------------------------------------------------------------------------- /companies/Cohesity.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/largest-bst-subtree/,Largest BST Subtree,2 3 | -------------------------------------------------------------------------------- /companies/DJI.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/three-consecutive-odds/,Three Consecutive Odds,1 3 | -------------------------------------------------------------------------------- /companies/Gilt Groupe.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/add-one-row-to-tree/,Add One Row to Tree,1 3 | -------------------------------------------------------------------------------- /companies/Optum.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reverse-prefix-of-word/,Reverse Prefix of Word,1 3 | -------------------------------------------------------------------------------- /companies/Rakuten.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/sum-of-floored-pairs/,Sum of Floored Pairs,1 3 | -------------------------------------------------------------------------------- /companies/Tencent.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-factorization/,Minimum Factorization,1 3 | -------------------------------------------------------------------------------- /companies/Toptal.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reformat-phone-number/,Reformat Phone Number,3 3 | -------------------------------------------------------------------------------- /companies/Citrix.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-all-groups-of-farmland/,Find All Groups of Farmland,1 3 | -------------------------------------------------------------------------------- /companies/MindTickle.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-frequency-stack/,Maximum Frequency Stack,2 3 | -------------------------------------------------------------------------------- /companies/National Instruments.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,2 3 | -------------------------------------------------------------------------------- /companies/Works Applications.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/k-inverse-pairs-array/,K Inverse Pairs Array,1 3 | -------------------------------------------------------------------------------- /companies/IIT Bombay.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/score-after-flipping-matrix/,Score After Flipping Matrix,1 3 | -------------------------------------------------------------------------------- /companies/Akuna Capital.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/increasing-decreasing-string/,Increasing Decreasing String,8 3 | -------------------------------------------------------------------------------- /companies/Jeavio.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-moves-to-convert-string/,Minimum Moves to Convert String,1 3 | -------------------------------------------------------------------------------- /companies/Splunk.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,2 3 | -------------------------------------------------------------------------------- /companies/Tiger Analytics.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-closest-number-to-zero/,Find Closest Number to Zero,1 3 | -------------------------------------------------------------------------------- /companies/edabit.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/calculate-money-in-leetcode-bank/,Calculate Money in Leetcode Bank,1 3 | -------------------------------------------------------------------------------- /companies/razorpay.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/two-best-non-overlapping-events/,Two Best Non-Overlapping Events,1 3 | -------------------------------------------------------------------------------- /companies/Directi.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-the-winner-of-an-array-game/,Find the Winner of an Array Game,1 3 | -------------------------------------------------------------------------------- /companies/Duolingo.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-number-of-people-to-teach/,Minimum Number of People to Teach,2 3 | -------------------------------------------------------------------------------- /companies/Rupeek.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-kth-bit-in-nth-binary-string/,Find Kth Bit in Nth Binary String,1 3 | -------------------------------------------------------------------------------- /companies/Softwire.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/second-largest-digit-in-a-string/,Second Largest Digit in a String,1 3 | -------------------------------------------------------------------------------- /companies/Akamai.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/n-repeated-element-in-size-2n-array/,N-Repeated Element in Size 2N Array,1 3 | -------------------------------------------------------------------------------- /companies/AppDynamics.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-number-of-balls-in-a-box/,Maximum Number of Balls in a Box,Lucid 3 | -------------------------------------------------------------------------------- /companies/Commvault.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-vowel-substrings-of-a-string/,Count Vowel Substrings of a String,1 3 | -------------------------------------------------------------------------------- /companies/Drawbridge.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/set-intersection-size-at-least-two/,Set Intersection Size At Least Two,1 3 | -------------------------------------------------------------------------------- /companies/Hulu.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/,K-th Smallest in Lexicographical Order,1 3 | -------------------------------------------------------------------------------- /companies/IMC.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-artifacts-that-can-be-extracted/,Count Artifacts That Can Be Extracted,1 3 | -------------------------------------------------------------------------------- /companies/Leap Motion.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/generate-random-point-in-a-circle/,Generate Random Point in a Circle,1 3 | -------------------------------------------------------------------------------- /companies/MindTree.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-integers-with-even-digit-sum/,Count Integers With Even Digit Sum,1 3 | -------------------------------------------------------------------------------- /companies/TIAA.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-greatest-common-divisor-of-array/,Find Greatest Common Divisor of Array,1 3 | -------------------------------------------------------------------------------- /companies/Zopsmart.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reverse-nodes-in-even-length-groups/,Reverse Nodes in Even Length Groups,1 3 | -------------------------------------------------------------------------------- /companies/Canonical.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/divide-a-string-into-groups-of-size-k/,Divide a String Into Groups of Size k,1 3 | -------------------------------------------------------------------------------- /companies/Druva.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/,Maximize Sum Of Array After K Negations,1 3 | -------------------------------------------------------------------------------- /companies/Honeywell.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-distance-to-the-target-element/,Minimum Distance to the Target Element,1 3 | -------------------------------------------------------------------------------- /companies/Zillow.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/spiral-matrix/,Spiral Matrix,2 3 | https://leetcode.com/problems/two-sum/,Two Sum,2 4 | -------------------------------------------------------------------------------- /companies/peak6.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/coordinate-with-maximum-network-quality/,Coordinate With Maximum Network Quality,1 3 | -------------------------------------------------------------------------------- /companies/Activision.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/,Minimum ASCII Delete Sum for Two Strings,2 3 | -------------------------------------------------------------------------------- /companies/Jane Street.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-common-words-with-one-occurrence/,Count Common Words With One Occurrence,1 3 | -------------------------------------------------------------------------------- /companies/MAQ Software.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/unique-substrings-in-wraparound-string/,Unique Substrings in Wraparound String,1 3 | -------------------------------------------------------------------------------- /companies/TripleByte.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/,Minimum ASCII Delete Sum for Two Strings,4 3 | -------------------------------------------------------------------------------- /companies/persistent systems.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-bit-flips-to-convert-number/,Minimum Bit Flips to Convert Number,1 3 | -------------------------------------------------------------------------------- /companies/Cognizant.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/smallest-value-of-the-rearranged-number/,Smallest Value of the Rearranged Number,T-mobile 3 | -------------------------------------------------------------------------------- /companies/zeta suite.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-equal-and-divisible-pairs-in-an-array/,Count Equal and Divisible Pairs in an Array,1 3 | -------------------------------------------------------------------------------- /companies/Box.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/number-of-1-bits/,Number of 1 Bits,12 3 | https://leetcode.com/problems/word-ladder-ii/,Word Ladder II,4 4 | -------------------------------------------------------------------------------- /companies/Pocket Gems.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/,Non-negative Integers without Consecutive Ones,1 3 | -------------------------------------------------------------------------------- /companies/BlackRock.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/evaluate-division/,Evaluate Division,2 3 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,6 4 | -------------------------------------------------------------------------------- /companies/GoDaddy.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/battleships-in-a-board/,Battleships in a Board,2 3 | https://leetcode.com/problems/lru-cache/,LRU Cache,2 4 | -------------------------------------------------------------------------------- /companies/Moengage.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/redistribute-characters-to-make-all-strings-equal/,Redistribute Characters to Make All Strings Equal,1 3 | -------------------------------------------------------------------------------- /companies/instacart.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-if-every-row-and-column-contains-all-numbers/,Check if Every Row and Column Contains All Numbers,2 3 | -------------------------------------------------------------------------------- /companies/AllinCall.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/number-of-rectangles-that-can-form-the-largest-square/,Number Of Rectangles That Can Form The Largest Square,1 3 | -------------------------------------------------------------------------------- /companies/Alibaba.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/path-sum-iv/,Path Sum IV,1 3 | https://leetcode.com/problems/split-concatenated-strings/,Split Concatenated Strings,1 4 | -------------------------------------------------------------------------------- /companies/Coursera.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rank-teams-by-votes/,Rank Teams by Votes,2 3 | https://leetcode.com/problems/wildcard-matching/,Wildcard Matching,2 4 | -------------------------------------------------------------------------------- /companies/FPT.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-three-consecutive-integers-that-sum-to-a-given-number/,Find Three Consecutive Integers That Sum to a Given Number,1 3 | -------------------------------------------------------------------------------- /companies/Netsuite.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/average-salary-excluding-the-minimum-and-maximum-salary/,Average Salary Excluding the Minimum and Maximum Salary,1 3 | -------------------------------------------------------------------------------- /companies/Opendoor.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/design-excel-sum-formula/,Design Excel Sum Formula,3 3 | https://leetcode.com/problems/game-of-life/,Game of Life,10 4 | -------------------------------------------------------------------------------- /companies/Wealthfront.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram-ii/,Minimum Number of Steps to Make Two Strings Anagram II,1 3 | -------------------------------------------------------------------------------- /companies/Twitch.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/battleships-in-a-board/,Battleships in a Board,7 3 | https://leetcode.com/problems/number-of-islands/,Number of Islands,2 4 | -------------------------------------------------------------------------------- /companies/HBO.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/short-encoding-of-words/,Short Encoding of Words,2 3 | https://leetcode.com/problems/sliding-window-median/,Sliding Window Median,2 4 | -------------------------------------------------------------------------------- /companies/Pure Storage.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-repeating-substring/,Maximum Repeating Substring,3 3 | https://leetcode.com/problems/valid-square/,Valid Square,2 4 | -------------------------------------------------------------------------------- /companies/Redfin.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/string-compression/,String Compression,3 3 | https://leetcode.com/problems/string-to-integer-atoi/,String to Integer (atoi),3 4 | -------------------------------------------------------------------------------- /companies/payu.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-operations-to-obtain-zero/,Count Operations to Obtain Zero,1 3 | https://leetcode.com/problems/jump-game-ii/,Jump Game II,2 4 | -------------------------------------------------------------------------------- /companies/IXL.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-the-derangement-of-an-array/,Find the Derangement of An Array,1 3 | https://leetcode.com/problems/design-snake-game/,Design Snake Game,2 4 | -------------------------------------------------------------------------------- /companies/Info Edge.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-the-minimum-and-maximum-number-of-nodes-between-critical-points/,Find the Minimum and Maximum Number of Nodes Between Critical Points,1 3 | -------------------------------------------------------------------------------- /companies/PhonePe.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/simple-bank-system/,Simple Bank System,1 3 | https://leetcode.com/problems/distribute-coins-in-binary-tree/,Distribute Coins in Binary Tree,2 4 | -------------------------------------------------------------------------------- /companies/Asana.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/k-closest-points-to-origin/,K Closest Points to Origin,5 3 | https://leetcode.com/problems/product-of-array-except-self/,Product of Array Except Self,13 4 | -------------------------------------------------------------------------------- /companies/MakeMyTrip.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/remove-all-occurrences-of-a-substring/,Remove All Occurrences of a Substring,2 3 | https://leetcode.com/problems/remove-k-digits/,Remove K Digits,2 4 | -------------------------------------------------------------------------------- /companies/Palantir Technologies.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-if-it-is-a-straight-line/,Check If It Is a Straight Line,1 3 | https://leetcode.com/problems/utf-8-validation/,UTF-8 Validation,2 4 | -------------------------------------------------------------------------------- /companies/Zenefits.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree/,Verify Preorder Sequence in Binary Search Tree,1 3 | https://leetcode.com/problems/n-queens-ii/,N-Queens II,1 4 | -------------------------------------------------------------------------------- /companies/Reddit.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/subsets/,Subsets,3 3 | https://leetcode.com/problems/text-justification/,Text Justification,3 4 | https://leetcode.com/problems/combination-sum-ii/,Combination Sum II,3 5 | -------------------------------------------------------------------------------- /companies/DRW.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reorder-routes-to-make-all-paths-lead-to-the-city-zero/,Reorder Routes to Make All Paths Lead to the City Zero,4 3 | https://leetcode.com/problems/counting-elements/,Counting Elements,1 4 | -------------------------------------------------------------------------------- /companies/Alation.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/h-index/,H-Index,3 3 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 4 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 5 | -------------------------------------------------------------------------------- /companies/United Health Group.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-if-all-1s-are-at-least-length-k-places-away/,Check If All 1's Are at Least Length K Places Away,1 3 | https://leetcode.com/problems/day-of-the-week/,Day of the Week,1 4 | -------------------------------------------------------------------------------- /companies/Baidu.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/out-of-boundary-paths/,Out of Boundary Paths,1 3 | https://leetcode.com/problems/zuma-game/,Zuma Game,1 4 | https://leetcode.com/problems/arithmetic-slices-ii-subsequence/,Arithmetic Slices II - Subsequence,1 5 | -------------------------------------------------------------------------------- /companies/Qualcomm.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/middle-of-the-linked-list/,Middle of the Linked List,2 3 | https://leetcode.com/problems/find-the-duplicate-number/,Find the Duplicate Number,2 4 | https://leetcode.com/problems/reverse-bits/,Reverse Bits,3 5 | -------------------------------------------------------------------------------- /companies/Hotstar.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/keys-and-rooms/,Keys and Rooms,2 3 | https://leetcode.com/problems/asteroid-collision/,Asteroid Collision,3 4 | https://leetcode.com/problems/find-k-pairs-with-smallest-sums/,Find K Pairs with Smallest Sums,2 5 | -------------------------------------------------------------------------------- /companies/Databricks.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/design-hit-counter/,Design Hit Counter,9 3 | https://leetcode.com/problems/sparse-matrix-multiplication/,Sparse Matrix Multiplication,2 4 | https://leetcode.com/problems/first-missing-positive/,First Missing Positive,2 5 | -------------------------------------------------------------------------------- /companies/Deutsche Bank.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/the-time-when-the-network-becomes-idle/,The Time When the Network Becomes Idle,1 3 | https://leetcode.com/problems/minimum-operations-to-make-the-array-increasing/,Minimum Operations to Make the Array Increasing,1 4 | -------------------------------------------------------------------------------- /companies/PayTM.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/distribute-candies-to-people/,Distribute Candies to People,2 3 | https://leetcode.com/problems/reverse-words-in-a-string-iii/,Reverse Words in a String III,2 4 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,2 5 | -------------------------------------------------------------------------------- /companies/Epic Systems.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/self-dividing-numbers/,Self Dividing Numbers,1 3 | https://leetcode.com/problems/additive-number/,Additive Number,2 4 | https://leetcode.com/problems/letter-combinations-of-a-phone-number/,Letter Combinations of a Phone Number,3 5 | -------------------------------------------------------------------------------- /companies/Nutanix.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/,Check If Word Is Valid After Substitutions,1 3 | https://leetcode.com/problems/compare-version-numbers/,Compare Version Numbers,2 4 | https://leetcode.com/problems/sudoku-solver/,Sudoku Solver,2 5 | -------------------------------------------------------------------------------- /companies/Swiggy.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rabbits-in-forest/,Rabbits in Forest,2 3 | https://leetcode.com/problems/letter-combinations-of-a-phone-number/,Letter Combinations of a Phone Number,3 4 | https://leetcode.com/problems/container-with-most-water/,Container With Most Water,4 5 | -------------------------------------------------------------------------------- /companies/TuSimple.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/binary-tree-postorder-traversal/,Binary Tree Postorder Traversal,2 3 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,2 4 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,2 5 | -------------------------------------------------------------------------------- /companies/DE Shaw.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/,Number of Substrings Containing All Three Characters,1 3 | https://leetcode.com/problems/freedom-trail/,Freedom Trail,3 4 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,2 5 | -------------------------------------------------------------------------------- /companies/Arcesium.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-length-of-subarray-with-positive-product/,Maximum Length of Subarray With Positive Product,4 3 | https://leetcode.com/problems/broken-calculator/,Broken Calculator,2 4 | https://leetcode.com/problems/minimum-size-subarray-sum/,Minimum Size Subarray Sum,2 5 | -------------------------------------------------------------------------------- /companies/JP Morgan.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/lexicographically-smallest-string-after-applying-operations/,Lexicographically Smallest String After Applying Operations,JPMorgan 3 | https://leetcode.com/problems/display-table-of-food-orders-in-a-restaurant/,Display Table of Food Orders in a Restaurant,JPMorgan 4 | -------------------------------------------------------------------------------- /companies/LiveRamp.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/longest-harmonious-subsequence/,Longest Harmonious Subsequence,1 3 | https://leetcode.com/problems/distribute-candies/,Distribute Candies,1 4 | https://leetcode.com/problems/minesweeper/,Minesweeper,3 5 | https://leetcode.com/problems/spiral-matrix/,Spiral Matrix,3 6 | -------------------------------------------------------------------------------- /companies/Postmates.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/most-beautiful-item-for-each-query/,Most Beautiful Item for Each Query,razorpay 3 | https://leetcode.com/problems/determine-if-two-strings-are-close/,Determine if Two Strings Are Close,1 4 | https://leetcode.com/problems/print-words-vertically/,Print Words Vertically,2 5 | -------------------------------------------------------------------------------- /companies/Yelp.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/destination-city/,Destination City,5 3 | https://leetcode.com/problems/filter-restaurants-by-vegan-friendly-price-and-distance/,"Filter Restaurants by Vegan-Friendly, Price and Distance",4 4 | https://leetcode.com/problems/minimum-index-sum-of-two-lists/,Minimum Index Sum of Two Lists,1 5 | -------------------------------------------------------------------------------- /companies/Intel.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reverse-string/,Reverse String,2 3 | https://leetcode.com/problems/sort-colors/,Sort Colors,2 4 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,3 5 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,4 6 | https://leetcode.com/problems/two-sum/,Two Sum,3 7 | -------------------------------------------------------------------------------- /companies/Two Sigma.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/,Maximum Product of Splitted Binary Tree,4 3 | https://leetcode.com/problems/top-k-frequent-words/,Top K Frequent Words,2 4 | https://leetcode.com/problems/power-of-four/,Power of Four,Wix 5 | https://leetcode.com/problems/multiply-strings/,Multiply Strings,4 6 | -------------------------------------------------------------------------------- /companies/Arista Networks.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/construct-string-with-repeat-limit/,Construct String With Repeat Limit,1 3 | https://leetcode.com/problems/compare-version-numbers/,Compare Version Numbers,2 4 | https://leetcode.com/problems/restore-ip-addresses/,Restore IP Addresses,2 5 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,3 6 | -------------------------------------------------------------------------------- /companies/Dunzo.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/stone-game-vii/,Stone Game VII,1 3 | https://leetcode.com/problems/ways-to-make-a-fair-array/,Ways to Make a Fair Array,1 4 | https://leetcode.com/problems/maximum-number-of-coins-you-can-get/,Maximum Number of Coins You Can Get,2 5 | https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/,Max Sum of Rectangle No Larger Than K,2 6 | -------------------------------------------------------------------------------- /companies/Zoom.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rotate-string/,Rotate String,4 3 | https://leetcode.com/problems/fibonacci-number/,Fibonacci Number,3 4 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 5 | https://leetcode.com/problems/reverse-nodes-in-k-group/,Reverse Nodes in k-Group,2 6 | https://leetcode.com/problems/two-sum/,Two Sum,2 7 | -------------------------------------------------------------------------------- /companies/Robinhood.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-good-meals/,Count Good Meals,1 3 | https://leetcode.com/problems/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period/,Alert Using Same Key-Card Three or More Times in a One Hour Period,8 4 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,7 5 | https://leetcode.com/problems/insert-interval/,Insert Intervals,3 6 | -------------------------------------------------------------------------------- /companies/American Express.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reorder-routes-to-make-all-paths-lead-to-the-city-zero/,Reorder Routes to Make All Paths Lead to the City Zero,3 3 | https://leetcode.com/problems/reducing-dishes/,Reducing Dishes,2 4 | https://leetcode.com/problems/valid-palindrome/,Valid Palindrome,3 5 | https://leetcode.com/problems/3sum/,3Sum,2 6 | https://leetcode.com/problems/two-sum/,Two Sum,3 7 | -------------------------------------------------------------------------------- /companies/C3 IoT.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/sort-array-by-increasing-frequency/,Sort Array by Increasing Frequency,2 3 | https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/,Pairs of Songs With Total Durations Divisible by 60,3 4 | https://leetcode.com/problems/daily-temperatures/,Daily Temperatures,3 5 | https://leetcode.com/problems/generate-parentheses/,Generate Parentheses,3 6 | -------------------------------------------------------------------------------- /companies/Sumologic.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree-iii/,Lowest Common Ancestor of a Binary Tree III,2 3 | https://leetcode.com/problems/k-closest-points-to-origin/,K Closest Points to Origin,2 4 | https://leetcode.com/problems/decode-string/,Decode String,2 5 | https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/,Lowest Common Ancestor of a Binary Tree,3 6 | -------------------------------------------------------------------------------- /companies/Netflix.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rotating-the-box/,Rotating the Box,4 3 | https://leetcode.com/problems/logger-rate-limiter/,Logger Rate Limiter,3 4 | https://leetcode.com/problems/reconstruct-itinerary/,Reconstruct Itinerary,2 5 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 6 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 7 | -------------------------------------------------------------------------------- /companies/Mercari.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/crawler-log-folder/,Crawler Log Folder,1 3 | https://leetcode.com/problems/max-difference-you-can-get-from-changing-an-integer/,Max Difference You Can Get From Changing an Integer,1 4 | https://leetcode.com/problems/minimum-subsequence-in-non-increasing-order/,Minimum Subsequence in Non-Increasing Order,1 5 | https://leetcode.com/problems/count-largest-group/,Count Largest Group,1 6 | -------------------------------------------------------------------------------- /companies/Roblox.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/design-browser-history/,Design Browser History,5 3 | https://leetcode.com/problems/minimum-falling-path-sum-ii/,Minimum Falling Path Sum II,4 4 | https://leetcode.com/problems/number-of-matching-subsequences/,Number of Matching Subsequences,2 5 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,5 6 | https://leetcode.com/problems/find-peak-element/,Find Peak Element,2 7 | -------------------------------------------------------------------------------- /todo.md: -------------------------------------------------------------------------------- 1 | ## TODO 2 | - [x] viz: add 'back to top' link next to each company 3 | - [ ] data collection: extend scraper to collect both problem **type** and **company** 4 | - [ ] viz: add a new 'type' column for the problem frequency table 5 | - [ ] viz: add the 'major problem type' info for each company 6 | - [ ] data analysis: run UMAP to on company-indexed pivot wider dataset to find clusters for company interview profiles 7 | - [ ] refactor: convert jupyter notebook to .py file for ETL 8 | -------------------------------------------------------------------------------- /companies/Infosys.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/sort-integers-by-the-number-of-1-bits/,Sort Integers by The Number of 1 Bits,2 3 | https://leetcode.com/problems/score-of-parentheses/,Score of Parentheses,2 4 | https://leetcode.com/problems/maximum-product-subarray/,Maximum Product Subarray,3 5 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,2 6 | https://leetcode.com/problems/4sum/,4 Sum,2 7 | https://leetcode.com/problems/3sum/,3Sum,2 8 | -------------------------------------------------------------------------------- /companies/Bolt.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-if-all-characters-have-equal-number-of-occurrences/,Check if All Characters Have Equal Number of Occurrences,5 3 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,2 4 | https://leetcode.com/problems/reverse-words-in-a-string-iii/,Reverse Words in a String III,3 5 | https://leetcode.com/problems/word-pattern-ii/,Word Pattern II,2 6 | https://leetcode.com/problems/word-pattern/,Word Pattern,3 7 | -------------------------------------------------------------------------------- /companies/Accenture.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-subsequence-of-length-k-with-the-largest-sum/,Find Subsequence of Length K With the Largest Sum,1 3 | https://leetcode.com/problems/count-odd-numbers-in-an-interval-range/,Count Odd Numbers in an Interval Range,2 4 | https://leetcode.com/problems/merge-two-sorted-lists/,Merge Two Sorted Lists,2 5 | https://leetcode.com/problems/palindrome-number/,Palindrome Number,2 6 | https://leetcode.com/problems/two-sum/,Two Sum,3 7 | -------------------------------------------------------------------------------- /companies/Dropbox.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/seat-reservation-manager/,Seat Reservation Manager,1 3 | https://leetcode.com/problems/max-area-of-island/,Max Area of Island,2 4 | https://leetcode.com/problems/find-duplicate-file-in-system/,Find Duplicate File in System,6 5 | https://leetcode.com/problems/design-phone-directory/,Design Phone Directory,2 6 | https://leetcode.com/problems/game-of-life/,Game of Life,5 7 | https://leetcode.com/problems/number-of-islands/,Number of Islands,2 8 | -------------------------------------------------------------------------------- /companies/Zoho.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/sort-even-and-odd-indices-independently/,Sort Even and Odd Indices Independently,1 3 | https://leetcode.com/problems/k-diff-pairs-in-an-array/,K-diff Pairs in an Array,2 4 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 5 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,2 6 | https://leetcode.com/problems/two-sum/,Two Sum,4 7 | -------------------------------------------------------------------------------- /companies/Mathworks.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/degree-of-an-array/,Degree of an Array,3 3 | https://leetcode.com/problems/keyboard-row/,Keyboard Row,2 4 | https://leetcode.com/problems/minimum-moves-to-equal-array-elements/,Minimum Moves to Equal Array Elements,3 5 | https://leetcode.com/problems/coin-change/,Coin Change,5 6 | https://leetcode.com/problems/fraction-to-recurring-decimal/,Fraction to Recurring Decimal,5 7 | https://leetcode.com/problems/distinct-subsequences/,Distinct Subsequences,3 8 | -------------------------------------------------------------------------------- /companies/Sprinklr.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/next-greater-numerically-balanced-number/,Next Greater Numerically Balanced Number,1 3 | https://leetcode.com/problems/maximum-subarray-sum-after-one-operation/,Maximum Subarray Sum After One Operation,1 4 | https://leetcode.com/problems/max-points-on-a-line/,Max Points on a Line,2 5 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,2 6 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,2 7 | -------------------------------------------------------------------------------- /companies/Virtu Financial.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/count-number-of-homogenous-substrings/,Count Number of Homogenous Substrings,1 3 | https://leetcode.com/problems/hexspeak/,Hexspeak,2 4 | https://leetcode.com/problems/array-transformation/,Array Transformation,2 5 | https://leetcode.com/problems/how-many-apples-can-you-put-into-the-basket/,How Many Apples Can You Put into the Basket,2 6 | https://leetcode.com/problems/count-substrings-with-only-one-distinct-letter/,Count Substrings with Only One Distinct Letter,2 7 | -------------------------------------------------------------------------------- /companies/Morgan Stanley.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/best-team-with-no-conflicts/,Best Team With No Conflicts,1 3 | https://leetcode.com/problems/lru-cache/,LRU Cache,2 4 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,2 5 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,2 6 | https://leetcode.com/problems/longest-valid-parentheses/,Longest Valid Parentheses,4 7 | https://leetcode.com/problems/3sum/,3Sum,3 8 | https://leetcode.com/problems/two-sum/,Two Sum,3 9 | -------------------------------------------------------------------------------- /companies/Affirm.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/optimal-account-balancing/,Optimal Account Balancing,2 3 | https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/,Insert Delete GetRandom O(1) - Duplicates allowed,3 4 | https://leetcode.com/problems/insert-delete-getrandom-o1/,Insert Delete GetRandom O(1),10 5 | https://leetcode.com/problems/design-hit-counter/,Design Hit Counter,6 6 | https://leetcode.com/problems/valid-anagram/,Valid Anagram,3 7 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,4 8 | -------------------------------------------------------------------------------- /companies/Docusign.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/implement-trie-ii-prefix-tree/,Implement Trie II (Prefix Tree),2 3 | https://leetcode.com/problems/rectangle-overlap/,Rectangle Overlap,2 4 | https://leetcode.com/problems/minesweeper/,Minesweeper,2 5 | https://leetcode.com/problems/number-of-islands/,Number of Islands,5 6 | https://leetcode.com/problems/lru-cache/,LRU Cache,2 7 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 8 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,3 9 | -------------------------------------------------------------------------------- /companies/Citadel.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/,Pairs of Songs With Total Durations Divisible by 60,8 3 | https://leetcode.com/problems/transpose-matrix/,Transpose Matrix,2 4 | https://leetcode.com/problems/range-addition/,Range Addition,5 5 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,4 6 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/,Best Time to Buy and Sell Stock IV,2 7 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,2 8 | -------------------------------------------------------------------------------- /companies/SAP.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-students-taking-exam/,Maximum Students Taking Exam,1 3 | https://leetcode.com/problems/prison-cells-after-n-days/,Prison Cells After N Days,2 4 | https://leetcode.com/problems/monotone-increasing-digits/,Monotone Increasing Digits,9 5 | https://leetcode.com/problems/count-primes/,Count Primes,2 6 | https://leetcode.com/problems/number-of-islands/,Number of Islands,4 7 | https://leetcode.com/problems/longest-common-prefix/,Longest Common Prefix,3 8 | https://leetcode.com/problems/add-two-numbers/,Add Two Numbers,2 9 | -------------------------------------------------------------------------------- /companies/Pinterest.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/parallel-courses-iii/,Parallel Courses III,4 3 | https://leetcode.com/problems/accounts-merge/,Accounts Merge,2 4 | https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/,Number of Connected Components in an Undirected Graph,2 5 | https://leetcode.com/problems/word-pattern-ii/,Word Pattern II,2 6 | https://leetcode.com/problems/find-the-celebrity/,Find the Celebrity,3 7 | https://leetcode.com/problems/alien-dictionary/,Alien Dictionary,2 8 | https://leetcode.com/problems/clone-graph/,Clone Graph,2 9 | -------------------------------------------------------------------------------- /companies/Atlassian.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rank-teams-by-votes/,Rank Teams by Votes,18 3 | https://leetcode.com/problems/greatest-common-divisor-of-strings/,Greatest Common Divisor of Strings,2 4 | https://leetcode.com/problems/lemonade-change/,Lemonade Change,4 5 | https://leetcode.com/problems/logger-rate-limiter/,Logger Rate Limiter,10 6 | https://leetcode.com/problems/design-snake-game/,Design Snake Game,3 7 | https://leetcode.com/problems/single-number/,Single Number,2 8 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 9 | -------------------------------------------------------------------------------- /companies/Flipkart.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/number-of-students-unable-to-eat-lunch/,Number of Students Unable to Eat Lunch,7 3 | https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/,Shortest Subarray to be Removed to Make Array Sorted,2 4 | https://leetcode.com/problems/maximum-number-of-coins-you-can-get/,Maximum Number of Coins You Can Get,3 5 | https://leetcode.com/problems/car-pooling/,Car Pooling,4 6 | https://leetcode.com/problems/maximum-length-of-pair-chain/,Maximum Length of Pair Chain,2 7 | https://leetcode.com/problems/jump-game/,Jump Game,3 8 | -------------------------------------------------------------------------------- /companies/Booking.com.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/two-out-of-three/,Two Out of Three,1 3 | https://leetcode.com/problems/least-number-of-unique-integers-after-k-removals/,Least Number of Unique Integers after K Removals,3 4 | https://leetcode.com/problems/backspace-string-compare/,Backspace String Compare,3 5 | https://leetcode.com/problems/additive-number/,Additive Number,3 6 | https://leetcode.com/problems/integer-to-english-words/,Integer to English Words,2 7 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,2 8 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 9 | -------------------------------------------------------------------------------- /companies/Samsung.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-product-of-two-elements-in-an-array/,Maximum Product of Two Elements in an Array,1 3 | https://leetcode.com/problems/range-sum-query-2d-immutable/,Range Sum Query 2D - Immutable,2 4 | https://leetcode.com/problems/reorder-list/,Reorder List,2 5 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,3 6 | https://leetcode.com/problems/reverse-integer/,Reverse Integer,2 7 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,2 8 | https://leetcode.com/problems/two-sum/,Two Sum,2 9 | -------------------------------------------------------------------------------- /companies/HRT.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/equal-sum-arrays-with-minimum-number-of-operations/,Equal Sum Arrays With Minimum Number of Operations,7 3 | https://leetcode.com/problems/detect-pattern-of-length-m-repeated-k-or-more-times/,Detect Pattern of Length M Repeated K or More Times,1 4 | https://leetcode.com/problems/maximum-69-number/,Maximum 69 Number,1 5 | https://leetcode.com/problems/convert-integer-to-the-sum-of-two-no-zero-integers/,Convert Integer to the Sum of Two No-Zero Integers,1 6 | https://leetcode.com/problems/24-game/,24 Game,3 7 | https://leetcode.com/problems/find-peak-element/,Find Peak Element,3 8 | -------------------------------------------------------------------------------- /companies/tcs.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-ascending-subarray-sum/,Maximum Ascending Subarray Sum,1 3 | https://leetcode.com/problems/palindrome-partitioning-iv/,Palindrome Partitioning IV,1 4 | https://leetcode.com/problems/reverse-string/,Reverse String,3 5 | https://leetcode.com/problems/move-zeroes/,Move Zeroes,4 6 | https://leetcode.com/problems/contains-duplicate/,Contains Duplicate,2 7 | https://leetcode.com/problems/rotate-array/,Rotate Array,2 8 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 9 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 10 | -------------------------------------------------------------------------------- /companies/Rubrik.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/snapshot-array/,Snapshot Array,5 3 | https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/,Kth Smallest Number in Multiplication Table,4 4 | https://leetcode.com/problems/task-scheduler/,Task Scheduler,2 5 | https://leetcode.com/problems/majority-element/,Majority Element,2 6 | https://leetcode.com/problems/read-n-characters-given-read4/,Read N Characters Given Read4,2 7 | https://leetcode.com/problems/edit-distance/,Edit Distance,2 8 | https://leetcode.com/problems/rotate-image/,Rotate Image,2 9 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,4 10 | -------------------------------------------------------------------------------- /companies/Square.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rank-teams-by-votes/,Rank Teams by Votes,2 3 | https://leetcode.com/problems/available-captures-for-rook/,Available Captures for Rook,2 4 | https://leetcode.com/problems/unique-morse-code-words/,Unique Morse Code Words,2 5 | https://leetcode.com/problems/squirrel-simulation/,Squirrel Simulation,1 6 | https://leetcode.com/problems/the-maze/,The Maze,2 7 | https://leetcode.com/problems/design-snake-game/,Design Snake Game,3 8 | https://leetcode.com/problems/number-of-islands/,Number of Islands,2 9 | https://leetcode.com/problems/text-justification/,Text Justification,3 10 | https://leetcode.com/problems/minimum-path-sum/,Minimum Path Sum,2 11 | -------------------------------------------------------------------------------- /data-gen/parse_readme.py: -------------------------------------------------------------------------------- 1 | from markdown2csv import md_to_df 2 | import re 3 | import pandas as pd 4 | 5 | parsed_list = [] 6 | df = md_to_df('../data/leetcode_repo_readme.md') 7 | for _, row in df.iterrows(): 8 | name_and_link = row['Title'] 9 | difficulty = row['Difficulty'] 10 | solution = row['Solutions'].replace('..', 'https://github.com/fishercoder1534/Leetcode/blob') 11 | m = re.search(r'\[(.*)\]\((.*)\)', name_and_link) 12 | name = m[1] 13 | link = m[2] 14 | parsed_list.append((name, link, difficulty, solution, )) 15 | 16 | parsed_df = pd.DataFrame(parsed_list, columns=['name', 'link', 'difficulty', 'solution']) 17 | parsed_df.to_csv('../data/leetcode_problems.csv', index=False) 18 | 19 | 20 | -------------------------------------------------------------------------------- /companies/Cruise Automation.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/product-of-the-last-k-numbers/,Product of the Last K Numbers,2 3 | https://leetcode.com/problems/synonymous-sentences/,Synonymous Sentences,3 4 | https://leetcode.com/problems/car-pooling/,Car Pooling,2 5 | https://leetcode.com/problems/decode-string/,Decode String,2 6 | https://leetcode.com/problems/palindrome-permutation-ii/,Palindrome Permutation II,2 7 | https://leetcode.com/problems/the-skyline-problem/,The Skyline Problem,3 8 | https://leetcode.com/problems/number-of-islands/,Number of Islands,2 9 | https://leetcode.com/problems/unique-paths-ii/,Unique Paths II,9 10 | https://leetcode.com/problems/valid-sudoku/,Valid Sudoku,5 11 | -------------------------------------------------------------------------------- /companies/Quora.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/range-frequency-queries/,Range Frequency Queries,1 3 | https://leetcode.com/problems/maximum-number-of-words-you-can-type/,Maximum Number of Words You Can Type,1 4 | https://leetcode.com/problems/substrings-of-size-three-with-distinct-characters/,Substrings of Size Three with Distinct Characters,1 5 | https://leetcode.com/problems/construct-target-array-with-multiple-sums/,Construct Target Array With Multiple Sums,3 6 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,3 7 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,2 8 | https://leetcode.com/problems/longest-common-prefix/,Longest Common Prefix,3 9 | -------------------------------------------------------------------------------- /companies/Grab.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-number-of-buckets-required-to-collect-rainwater-from-houses/,Minimum Number of Buckets Required to Collect Rainwater from Houses,1 3 | https://leetcode.com/problems/reorder-routes-to-make-all-paths-lead-to-the-city-zero/,Reorder Routes to Make All Paths Lead to the City Zero,2 4 | https://leetcode.com/problems/bulb-switcher-iii/,Bulb Switcher III,4 5 | https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/,Number of Steps to Reduce a Number to Zero,2 6 | https://leetcode.com/problems/brick-wall/,Brick Wall,2 7 | https://leetcode.com/problems/sort-colors/,Sort Colors,3 8 | https://leetcode.com/problems/first-missing-positive/,First Missing Positive,2 9 | -------------------------------------------------------------------------------- /companies/eBay.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rotating-the-box/,Rotating the Box,2 3 | https://leetcode.com/problems/reorganize-string/,Reorganize String,3 4 | https://leetcode.com/problems/candy-crush/,Candy Crush,2 5 | https://leetcode.com/problems/odd-even-linked-list/,Odd Even Linked List,2 6 | https://leetcode.com/problems/implement-queue-using-stacks/,Implement Queue using Stacks,2 7 | https://leetcode.com/problems/number-of-islands/,Number of Islands,2 8 | https://leetcode.com/problems/longest-consecutive-sequence/,Longest Consecutive Sequence,2 9 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 10 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,4 11 | -------------------------------------------------------------------------------- /companies/IBM.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/most-visited-sector-in-a-circular-track/,Most Visited Sector in a Circular Track,6 3 | https://leetcode.com/problems/water-bottles/,Water Bottles,4 4 | https://leetcode.com/problems/backspace-string-compare/,Backspace String Compare,6 5 | https://leetcode.com/problems/degree-of-an-array/,Degree of an Array,3 6 | https://leetcode.com/problems/move-zeroes/,Move Zeroes,2 7 | https://leetcode.com/problems/maximal-square/,Maximal Square,3 8 | https://leetcode.com/problems/gas-station/,Gas Station,8 9 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,8 10 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 11 | https://leetcode.com/problems/two-sum/,Two Sum,3 12 | -------------------------------------------------------------------------------- /companies/Twilio.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/sort-array-by-increasing-frequency/,Sort Array by Increasing Frequency,2 3 | https://leetcode.com/problems/subarray-sums-divisible-by-k/,Subarray Sums Divisible by K,3 4 | https://leetcode.com/problems/knight-dialer/,Knight Dialer,2 5 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,3 6 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,5 7 | https://leetcode.com/problems/lru-cache/,LRU Cache,7 8 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,2 9 | https://leetcode.com/problems/text-justification/,Text Justification,3 10 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,3 11 | -------------------------------------------------------------------------------- /data-gen/markdown2csv.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | import argparse 3 | 4 | def md_to_df(md_path): 5 | df = pd.read_table(md_path, sep="|", header=0, index_col=1, skipinitialspace=True).dropna(axis=1, how='all').iloc[1:] 6 | df.columns = df.columns.str.strip() 7 | return df 8 | 9 | def md_to_csv(md_path, csv_path): 10 | df = md_to_df(md_path) 11 | df.to_csv(csv_path, index=False) 12 | 13 | if __name__ == '__main__': 14 | parser = argparse.ArgumentParser(description='Convert Markdown table to CSV') 15 | parser.add_argument('--md', type=str, help='path to the source markdown file') 16 | parser.add_argument('--csv', type=str, help='path to the destination csv file') 17 | args = parser.parse_args() 18 | md_to_csv(args.md, args.csv) 19 | 20 | -------------------------------------------------------------------------------- /companies/Shopee.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/palindrome-pairs/,Palindrome Pairs,3 3 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 4 | https://leetcode.com/problems/lru-cache/,LRU Cache,2 5 | https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/,Construct Binary Tree from Inorder and Postorder Traversal,3 6 | https://leetcode.com/problems/merge-sorted-array/,Merge Sorted Array,4 7 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,4 8 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,5 9 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,2 10 | https://leetcode.com/problems/merge-two-sorted-lists/,Merge Two Sorted Lists,3 11 | -------------------------------------------------------------------------------- /companies/Tesla.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-changes-to-make-alternating-binary-string/,Minimum Changes To Make Alternating Binary String,2 3 | https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/,Find Winner on a Tic Tac Toe Game,2 4 | https://leetcode.com/problems/largest-perimeter-triangle/,Largest Perimeter Triangle,3 5 | https://leetcode.com/problems/spiral-matrix-iii/,Spiral Matrix III,2 6 | https://leetcode.com/problems/basic-calculator-ii/,Basic Calculator II,2 7 | https://leetcode.com/problems/jump-game-ii/,Jump Game II,2 8 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,3 9 | https://leetcode.com/problems/generate-parentheses/,Generate Parentheses,2 10 | https://leetcode.com/problems/3sum/,3Sum,2 11 | -------------------------------------------------------------------------------- /companies/Capital One.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rotating-the-box/,Rotating the Box,2 3 | https://leetcode.com/problems/restore-the-array-from-adjacent-pairs/,Restore the Array From Adjacent Pairs,2 4 | https://leetcode.com/problems/four-divisors/,Four Divisors,1 5 | https://leetcode.com/problems/candy-crush/,Candy Crush,3 6 | https://leetcode.com/problems/license-key-formatting/,License Key Formatting,18 7 | https://leetcode.com/problems/count-primes/,Count Primes,14 8 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,4 9 | https://leetcode.com/problems/reverse-nodes-in-k-group/,Reverse Nodes in k-Group,13 10 | https://leetcode.com/problems/integer-to-roman/,Integer to Roman,3 11 | https://leetcode.com/problems/add-two-numbers/,Add Two Numbers,2 12 | -------------------------------------------------------------------------------- /companies/Lyft.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/time-based-key-value-store/,Time Based Key-Value Store,7 3 | https://leetcode.com/problems/asteroid-collision/,Asteroid Collision,4 4 | https://leetcode.com/problems/max-stack/,Max Stack,2 5 | https://leetcode.com/problems/water-and-jug-problem/,Water and Jug Problem,4 6 | https://leetcode.com/problems/range-sum-query-2d-immutable/,Range Sum Query 2D - Immutable,4 7 | https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times/,Read N Characters Given Read4 II - Call multiple times,8 8 | https://leetcode.com/problems/read-n-characters-given-read4/,Read N Characters Given Read4,2 9 | https://leetcode.com/problems/word-ladder/,Word Ladder,4 10 | https://leetcode.com/problems/decode-ways/,Decode Ways,7 11 | https://leetcode.com/problems/minimum-window-substring/,Minimum Window Substring,9 12 | -------------------------------------------------------------------------------- /companies/Indeed.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period/,Alert Using Same Key-Card Three or More Times in a One Hour Period,4 3 | https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/,Find Words That Can Be Formed by Characters,6 4 | https://leetcode.com/problems/sum-of-even-numbers-after-queries/,Sum of Even Numbers After Queries,1 5 | https://leetcode.com/problems/subdomain-visit-count/,Subdomain Visit Count,25 6 | https://leetcode.com/problems/maximum-length-of-repeated-subarray/,Maximum Length of Repeated Subarray,8 7 | https://leetcode.com/problems/binary-tree-tilt/,Binary Tree Tilt,1 8 | https://leetcode.com/problems/merge-sorted-array/,Merge Sorted Array,2 9 | https://leetcode.com/problems/word-search/,Word Search,9 10 | https://leetcode.com/problems/text-justification/,Text Justification,3 11 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,3 12 | -------------------------------------------------------------------------------- /companies/Paypal.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/,Reverse Substrings Between Each Pair of Parentheses,2 3 | https://leetcode.com/problems/squares-of-a-sorted-array/,Squares of a Sorted Array,2 4 | https://leetcode.com/problems/happy-number/,Happy Number,4 5 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 6 | https://leetcode.com/problems/lru-cache/,LRU Cache,2 7 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 8 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,3 9 | https://leetcode.com/problems/zigzag-conversion/,ZigZag Conversion,2 10 | https://leetcode.com/problems/median-of-two-sorted-arrays/,Median of Two Sorted Arrays,3 11 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,2 12 | https://leetcode.com/problems/two-sum/,Two Sum,3 13 | -------------------------------------------------------------------------------- /companies/Intuit.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/delete-nodes-and-return-forest/,Delete Nodes And Return Forest,2 3 | https://leetcode.com/problems/unique-email-addresses/,Unique Email Addresses,6 4 | https://leetcode.com/problems/boats-to-save-people/,Boats to Save People,3 5 | https://leetcode.com/problems/subdomain-visit-count/,Subdomain Visit Count,2 6 | https://leetcode.com/problems/decode-string/,Decode String,2 7 | https://leetcode.com/problems/palindrome-linked-list/,Palindrome Linked List,2 8 | https://leetcode.com/problems/reverse-linked-list/,Reverse Linked List,2 9 | https://leetcode.com/problems/lru-cache/,LRU Cache,8 10 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,2 11 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,2 12 | https://leetcode.com/problems/sudoku-solver/,Sudoku Solver,4 13 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,2 14 | https://leetcode.com/problems/two-sum/,Two Sum,2 15 | -------------------------------------------------------------------------------- /companies/Wayfair.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/minimum-moves-to-reach-target-score/,Minimum Moves to Reach Target Score,1 3 | https://leetcode.com/problems/delete-characters-to-make-fancy-string/,Delete Characters to Make Fancy String,1 4 | https://leetcode.com/problems/the-number-of-full-rounds-you-have-played/,The Number of Full Rounds You Have Played,4 5 | https://leetcode.com/problems/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period/,Alert Using Same Key-Card Three or More Times in a One Hour Period,5 6 | https://leetcode.com/problems/subdomain-visit-count/,Subdomain Visit Count,9 7 | https://leetcode.com/problems/max-chunks-to-make-sorted/,Max Chunks To Make Sorted,2 8 | https://leetcode.com/problems/maximum-length-of-repeated-subarray/,Maximum Length of Repeated Subarray,7 9 | https://leetcode.com/problems/add-strings/,Add Strings,20 10 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,4 11 | https://leetcode.com/problems/valid-palindrome/,Valid Palindrome,2 12 | https://leetcode.com/problems/valid-sudoku/,Valid Sudoku,3 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Huan Xu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /companies/Qualtrics.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/sort-integers-by-the-power-value/,Sort Integers by The Power Value,2 3 | https://leetcode.com/problems/fixed-point/,Fixed Point,2 4 | https://leetcode.com/problems/max-area-of-island/,Max Area of Island,4 5 | https://leetcode.com/problems/first-unique-character-in-a-string/,First Unique Character in a String,3 6 | https://leetcode.com/problems/summary-ranges/,Summary Ranges,2 7 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 8 | https://leetcode.com/problems/binary-tree-right-side-view/,Binary Tree Right Side View,4 9 | https://leetcode.com/problems/word-break/,Word Break,7 10 | https://leetcode.com/problems/longest-consecutive-sequence/,Longest Consecutive Sequence,2 11 | https://leetcode.com/problems/word-ladder/,Word Ladder,6 12 | https://leetcode.com/problems/validate-binary-search-tree/,Validate Binary Search Tree,2 13 | https://leetcode.com/problems/unique-paths-ii/,Unique Paths II,4 14 | https://leetcode.com/problems/jump-game/,Jump Game,2 15 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,4 16 | https://leetcode.com/problems/3sum/,3Sum,5 17 | -------------------------------------------------------------------------------- /companies/ServiceNow.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/,Pairs of Songs With Total Durations Divisible by 60,2 3 | https://leetcode.com/problems/rectangle-overlap/,Rectangle Overlap,2 4 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,2 5 | https://leetcode.com/problems/palindrome-linked-list/,Palindrome Linked List,2 6 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 7 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 8 | https://leetcode.com/problems/binary-tree-level-order-traversal/,Binary Tree Level Order Traversal,3 9 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,2 10 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,3 11 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,2 12 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,3 13 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 14 | https://leetcode.com/problems/median-of-two-sorted-arrays/,Median of Two Sorted Arrays,4 15 | -------------------------------------------------------------------------------- /companies/Airbnb.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold/,Find the Smallest Divisor Given a Threshold,2 3 | https://leetcode.com/problems/smallest-common-region/,Smallest Common Region,7 4 | https://leetcode.com/problems/pyramid-transition-matrix/,Pyramid Transition Matrix,1 5 | https://leetcode.com/problems/pour-water/,Pour Water,6 6 | https://leetcode.com/problems/design-circular-queue/,Design Circular Queue,3 7 | https://leetcode.com/problems/tag-validator/,Tag Validator,2 8 | https://leetcode.com/problems/mini-parser/,Mini Parser,1 9 | https://leetcode.com/problems/flatten-nested-list-iterator/,Flatten Nested List Iterator,4 10 | https://leetcode.com/problems/palindrome-pairs/,Palindrome Pairs,14 11 | https://leetcode.com/problems/alien-dictionary/,Alien Dictionary,14 12 | https://leetcode.com/problems/flatten-2d-vector/,Flatten 2D Vector,9 13 | https://leetcode.com/problems/fraction-to-recurring-decimal/,Fraction to Recurring Decimal,3 14 | https://leetcode.com/problems/intersection-of-two-linked-lists/,Intersection of Two Linked Lists,2 15 | https://leetcode.com/problems/minimum-window-substring/,Minimum Window Substring,6 16 | https://leetcode.com/problems/combination-sum/,Combination Sum,5 17 | -------------------------------------------------------------------------------- /companies/Karat.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-if-every-row-and-column-contains-all-numbers/,Check if Every Row and Column Contains All Numbers,4 3 | https://leetcode.com/problems/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period/,Alert Using Same Key-Card Three or More Times in a One Hour Period,16 4 | https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/,Find Words That Can Be Formed by Characters,12 5 | https://leetcode.com/problems/longest-common-subsequence/,Longest Common Subsequence,2 6 | https://leetcode.com/problems/subdomain-visit-count/,Subdomain Visit Count,40 7 | https://leetcode.com/problems/maximum-length-of-repeated-subarray/,Maximum Length of Repeated Subarray,16 8 | https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/,Lowest Common Ancestor of a Binary Tree,3 9 | https://leetcode.com/problems/word-search-ii/,Word Search II,5 10 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,4 11 | https://leetcode.com/problems/number-of-islands/,Number of Islands,4 12 | https://leetcode.com/problems/word-search/,Word Search,17 13 | https://leetcode.com/problems/text-justification/,Text Justification,10 14 | https://leetcode.com/problems/valid-sudoku/,Valid Sudoku,3 15 | -------------------------------------------------------------------------------- /companies/Spotify.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree-iii/,Lowest Common Ancestor of a Binary Tree III,2 3 | https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/,Remove All Adjacent Duplicates in String II,2 4 | https://leetcode.com/problems/analyze-user-website-visit-pattern/,Analyze User Website Visit Pattern,6 5 | https://leetcode.com/problems/sliding-window-median/,Sliding Window Median,4 6 | https://leetcode.com/problems/ransom-note/,Ransom Note,10 7 | https://leetcode.com/problems/moving-average-from-data-stream/,Moving Average from Data Stream,16 8 | https://leetcode.com/problems/valid-anagram/,Valid Anagram,8 9 | https://leetcode.com/problems/linked-list-cycle/,Linked List Cycle,4 10 | https://leetcode.com/problems/longest-consecutive-sequence/,Longest Consecutive Sequence,3 11 | https://leetcode.com/problems/balanced-binary-tree/,Balanced Binary Tree,4 12 | https://leetcode.com/problems/maximum-depth-of-binary-tree/,Maximum Depth of Binary Tree,4 13 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,13 14 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,10 15 | https://leetcode.com/problems/two-sum/,Two Sum,8 16 | -------------------------------------------------------------------------------- /companies/JPMorgan.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/determine-color-of-a-chessboard-square/,Determine Color of a Chessboard Square,1 3 | https://leetcode.com/problems/maximum-units-on-a-truck/,Maximum Units on a Truck,2 4 | https://leetcode.com/problems/even-odd-tree/,Even Odd Tree,3 5 | https://leetcode.com/problems/minimum-value-to-get-positive-step-by-step-sum/,Minimum Value to Get Positive Step by Step Sum,2 6 | https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/,Maximum Number of Events That Can Be Attended,2 7 | https://leetcode.com/problems/minimum-absolute-difference/,Minimum Absolute Difference,2 8 | https://leetcode.com/problems/reconstruct-original-digits-from-english/,Reconstruct Original Digits from English,69 9 | https://leetcode.com/problems/intersection-of-two-arrays/,Intersection of Two Arrays,2 10 | https://leetcode.com/problems/counting-bits/,Counting Bits,2 11 | https://leetcode.com/problems/paint-fence/,Paint Fence,2 12 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,3 13 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,5 14 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,8 15 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,2 16 | https://leetcode.com/problems/add-two-numbers/,Add Two Numbers,3 17 | https://leetcode.com/problems/two-sum/,Two Sum,3 18 | -------------------------------------------------------------------------------- /companies/Visa.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/create-target-array-in-the-given-order/,Create Target Array in the Given Order,1 3 | https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/,Remove All Adjacent Duplicates in String II,2 4 | https://leetcode.com/problems/last-stone-weight/,Last Stone Weight,11 5 | https://leetcode.com/problems/backspace-string-compare/,Backspace String Compare,3 6 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,4 7 | https://leetcode.com/problems/minimum-moves-to-equal-array-elements/,Minimum Moves to Equal Array Elements,3 8 | https://leetcode.com/problems/string-compression/,String Compression,4 9 | https://leetcode.com/problems/meeting-rooms-ii/,Meeting Rooms II,3 10 | https://leetcode.com/problems/maximal-square/,Maximal Square,6 11 | https://leetcode.com/problems/largest-number/,Largest Number,2 12 | https://leetcode.com/problems/reverse-words-in-a-string/,Reverse Words in a String,2 13 | https://leetcode.com/problems/linked-list-cycle/,Linked List Cycle,3 14 | https://leetcode.com/problems/longest-consecutive-sequence/,Longest Consecutive Sequence,2 15 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 16 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,3 17 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,2 18 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,3 19 | https://leetcode.com/problems/reverse-integer/,Reverse Integer,2 20 | https://leetcode.com/problems/add-two-numbers/,Add Two Numbers,2 21 | https://leetcode.com/problems/two-sum/,Two Sum,4 22 | -------------------------------------------------------------------------------- /companies/Expedia.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-difference-between-increasing-elements/,Maximum Difference Between Increasing Elements,3 3 | https://leetcode.com/problems/number-of-different-integers-in-a-string/,Number of Different Integers in a String,2 4 | https://leetcode.com/problems/reformat-date/,Reformat Date,14 5 | https://leetcode.com/problems/the-kth-factor-of-n/,The kth Factor of n,6 6 | https://leetcode.com/problems/making-file-names-unique/,Making File Names Unique,14 7 | https://leetcode.com/problems/least-number-of-unique-integers-after-k-removals/,Least Number of Unique Integers after K Removals,4 8 | https://leetcode.com/problems/rearrange-words-in-a-sentence/,Rearrange Words in a Sentence,1 9 | https://leetcode.com/problems/find-pivot-index/,Find Pivot Index,2 10 | https://leetcode.com/problems/degree-of-an-array/,Degree of an Array,5 11 | https://leetcode.com/problems/palindromic-substrings/,Palindromic Substrings,2 12 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,2 13 | https://leetcode.com/problems/string-compression/,String Compression,8 14 | https://leetcode.com/problems/best-meeting-point/,Best Meeting Point,4 15 | https://leetcode.com/problems/move-zeroes/,Move Zeroes,2 16 | https://leetcode.com/problems/integer-to-english-words/,Integer to English Words,3 17 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,5 18 | https://leetcode.com/problems/climbing-stairs/,Climbing Stairs,7 19 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,2 20 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,6 21 | https://leetcode.com/problems/two-sum/,Two Sum,7 22 | -------------------------------------------------------------------------------- /companies/Nvidia.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/last-stone-weight/,Last Stone Weight,8 3 | https://leetcode.com/problems/degree-of-an-array/,Degree of an Array,2 4 | https://leetcode.com/problems/k-empty-slots/,K Empty Slots,2 5 | https://leetcode.com/problems/design-circular-queue/,Design Circular Queue,3 6 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,2 7 | https://leetcode.com/problems/single-element-in-a-sorted-array/,Single Element in a Sorted Array,2 8 | https://leetcode.com/problems/lonely-pixel-i/,Lonely Pixel I,3 9 | https://leetcode.com/problems/serialize-and-deserialize-binary-tree/,Serialize and Deserialize Binary Tree,4 10 | https://leetcode.com/problems/missing-number/,Missing Number,2 11 | https://leetcode.com/problems/add-and-search-word-data-structure-design/,Add and Search Word - Data structure design,2 12 | https://leetcode.com/problems/reverse-linked-list/,Reverse Linked List,2 13 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 14 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/,Best Time to Buy and Sell Stock IV,3 15 | https://leetcode.com/problems/intersection-of-two-linked-lists/,Intersection of Two Linked Lists,3 16 | https://leetcode.com/problems/lru-cache/,LRU Cache,3 17 | https://leetcode.com/problems/sort-colors/,Sort Colors,3 18 | https://leetcode.com/problems/search-a-2d-matrix/,Search a 2D Matrix,2 19 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,2 20 | https://leetcode.com/problems/valid-sudoku/,Valid Sudoku,3 21 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,2 22 | https://leetcode.com/problems/regular-expression-matching/,Regular Expression Matching,4 23 | -------------------------------------------------------------------------------- /companies/Yandex.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element/,Longest Subarray of 1's After Deleting One Element,3 3 | https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/,Number of Students Doing Homework at a Given Time,2 4 | https://leetcode.com/problems/number-of-recent-calls/,Number of Recent Calls,3 5 | https://leetcode.com/problems/maximize-distance-to-closest-person/,Maximize Distance to Closest Person,8 6 | https://leetcode.com/problems/max-stack/,Max Stack,3 7 | https://leetcode.com/problems/permutation-in-string/,Permutation in String,4 8 | https://leetcode.com/problems/reverse-words-in-a-string-iii/,Reverse Words in a String III,2 9 | https://leetcode.com/problems/string-compression/,String Compression,3 10 | https://leetcode.com/problems/is-subsequence/,Is Subsequence,3 11 | https://leetcode.com/problems/line-reflection/,Line Reflection,2 12 | https://leetcode.com/problems/move-zeroes/,Move Zeroes,6 13 | https://leetcode.com/problems/zigzag-iterator/,Zigzag Iterator,6 14 | https://leetcode.com/problems/summary-ranges/,Summary Ranges,6 15 | https://leetcode.com/problems/reverse-linked-list/,Reverse Linked List,3 16 | https://leetcode.com/problems/evaluate-reverse-polish-notation/,Evaluate Reverse Polish Notation,2 17 | https://leetcode.com/problems/valid-palindrome/,Valid Palindrome,2 18 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,4 19 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,3 20 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,3 21 | https://leetcode.com/problems/median-of-two-sorted-arrays/,Median of Two Sorted Arrays,2 22 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,2 23 | -------------------------------------------------------------------------------- /companies/Cisco.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-difference-between-increasing-elements/,Maximum Difference Between Increasing Elements,6 3 | https://leetcode.com/problems/maximum-population-year/,Maximum Population Year,2 4 | https://leetcode.com/problems/check-if-binary-string-has-at-most-one-segment-of-ones/,Check if Binary String Has at Most One Segment of Ones,1 5 | https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/,Pairs of Songs With Total Durations Divisible by 60,2 6 | https://leetcode.com/problems/expressive-words/,Expressive Words,11 7 | https://leetcode.com/problems/find-pivot-index/,Find Pivot Index,2 8 | https://leetcode.com/problems/beautiful-arrangement/,Beautiful Arrangement,3 9 | https://leetcode.com/problems/coin-change-2/,Coin Change 2,2 10 | https://leetcode.com/problems/validate-ip-address/,Validate IP Address,8 11 | https://leetcode.com/problems/decode-string/,Decode String,8 12 | https://leetcode.com/problems/top-k-frequent-elements/,Top K Frequent Elements,3 13 | https://leetcode.com/problems/first-bad-version/,First Bad Version,2 14 | https://leetcode.com/problems/word-search-ii/,Word Search II,16 15 | https://leetcode.com/problems/house-robber/,House Robber,6 16 | https://leetcode.com/problems/number-of-1-bits/,Number of 1 Bits,4 17 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 18 | https://leetcode.com/problems/decode-ways/,Decode Ways,9 19 | https://leetcode.com/problems/unique-paths-ii/,Unique Paths II,3 20 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,2 21 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,11 22 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 23 | https://leetcode.com/problems/rotate-image/,Rotate Image,16 24 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,5 25 | https://leetcode.com/problems/3sum/,3Sum,2 26 | -------------------------------------------------------------------------------- /companies/DoorDash.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/find-nearest-point-that-has-the-same-x-or-y-coordinate/,Find Nearest Point That Has the Same X or Y Coordinate,3 3 | https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/,Minimum Number of Steps to Make Two Strings Anagram,7 4 | https://leetcode.com/problems/longest-common-subsequence/,Longest Common Subsequence,5 5 | https://leetcode.com/problems/car-pooling/,Car Pooling,4 6 | https://leetcode.com/problems/buddy-strings/,Buddy Strings,13 7 | https://leetcode.com/problems/asteroid-collision/,Asteroid Collision,7 8 | https://leetcode.com/problems/number-of-distinct-islands/,Number of Distinct Islands,2 9 | https://leetcode.com/problems/exclusive-time-of-functions/,Exclusive Time of Functions,2 10 | https://leetcode.com/problems/design-in-memory-file-system/,Design In-Memory File System,4 11 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,2 12 | https://leetcode.com/problems/k-diff-pairs-in-an-array/,K-diff Pairs in an Array,2 13 | https://leetcode.com/problems/path-sum-iii/,Path Sum III,3 14 | https://leetcode.com/problems/shortest-distance-from-all-buildings/,Shortest Distance from All Buildings,5 15 | https://leetcode.com/problems/serialize-and-deserialize-binary-tree/,Serialize and Deserialize Binary Tree,7 16 | https://leetcode.com/problems/walls-and-gates/,Walls and Gates,11 17 | https://leetcode.com/problems/integer-to-english-words/,Integer to English Words,4 18 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,2 19 | https://leetcode.com/problems/basic-calculator/,Basic Calculator,6 20 | https://leetcode.com/problems/number-of-islands/,Number of Islands,5 21 | https://leetcode.com/problems/binary-tree-right-side-view/,Binary Tree Right Side View,2 22 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,18 23 | https://leetcode.com/problems/largest-rectangle-in-histogram/,Largest Rectangle in Histogram,2 24 | https://leetcode.com/problems/jump-game/,Jump Game,3 25 | https://leetcode.com/problems/jump-game-ii/,Jump Game II,3 26 | https://leetcode.com/problems/sudoku-solver/,Sudoku Solver,4 27 | -------------------------------------------------------------------------------- /data-gen/transform_data.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "id": "75f28a50", 6 | "metadata": {}, 7 | "source": [ 8 | "## Generate pivot wider CSV" 9 | ] 10 | }, 11 | { 12 | "cell_type": "code", 13 | "execution_count": 2, 14 | "id": "5332f87a", 15 | "metadata": {}, 16 | "outputs": [], 17 | "source": [ 18 | "import pandas as pd" 19 | ] 20 | }, 21 | { 22 | "cell_type": "code", 23 | "execution_count": 53, 24 | "id": "b4ae5a29", 25 | "metadata": {}, 26 | "outputs": [], 27 | "source": [ 28 | "df = pd.read_csv('../data/leetcode_problems_and_companies.csv')\n", 29 | "df = df.drop(['problem_link'], axis = 1)\n", 30 | "df = df.pivot_table(columns=['problem_name'], values='num_occur', index='company_name', aggfunc='sum').fillna(0)\n", 31 | "df.to_csv('../data/companies_and_leetcode_problems.csv', index=False)" 32 | ] 33 | }, 34 | { 35 | "cell_type": "markdown", 36 | "id": "72e54b4c", 37 | "metadata": {}, 38 | "source": [ 39 | "## Generate CSV for each company" 40 | ] 41 | }, 42 | { 43 | "cell_type": "code", 44 | "execution_count": 62, 45 | "id": "daed41c6", 46 | "metadata": {}, 47 | "outputs": [], 48 | "source": [ 49 | "df = pd.read_csv('../data/leetcode_problems_and_companies.csv')\n", 50 | "companies = list(set(df['company_name']))\n", 51 | "for company in companies:\n", 52 | " sub_df = df.query(f'company_name == \"{company}\"')\n", 53 | " sub_df = sub_df.drop(['company_name'], axis = 1)\n", 54 | " sub_df.to_csv(f'../companies/{company}.csv', index=False)" 55 | ] 56 | }, 57 | { 58 | "cell_type": "code", 59 | "execution_count": null, 60 | "id": "9649af13", 61 | "metadata": {}, 62 | "outputs": [], 63 | "source": [] 64 | } 65 | ], 66 | "metadata": { 67 | "kernelspec": { 68 | "display_name": "Python [conda env:cs320]", 69 | "language": "python", 70 | "name": "conda-env-cs320-py" 71 | }, 72 | "language_info": { 73 | "codemirror_mode": { 74 | "name": "ipython", 75 | "version": 3 76 | }, 77 | "file_extension": ".py", 78 | "mimetype": "text/x-python", 79 | "name": "python", 80 | "nbconvert_exporter": "python", 81 | "pygments_lexer": "ipython3", 82 | "version": "3.9.7" 83 | } 84 | }, 85 | "nbformat": 4, 86 | "nbformat_minor": 5 87 | } 88 | -------------------------------------------------------------------------------- /companies/Twitter.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/time-needed-to-buy-tickets/,Time Needed to Buy Tickets,2 3 | https://leetcode.com/problems/finding-the-users-active-minutes/,Finding the Users Active Minutes,10 4 | https://leetcode.com/problems/design-authentication-manager/,Design Authentication Manager,1 5 | https://leetcode.com/problems/minimum-elements-to-add-to-form-a-given-sum/,Minimum Elements to Add to Form a Given Sum,1 6 | https://leetcode.com/problems/tweet-counts-per-frequency/,Tweet Counts Per Frequency,6 7 | https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/,Minimum Number of Steps to Make Two Strings Anagram,2 8 | https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/,Minimum Add to Make Parentheses Valid,2 9 | https://leetcode.com/problems/maximum-frequency-stack/,Maximum Frequency Stack,2 10 | https://leetcode.com/problems/binary-gap/,Binary Gap,eBay 11 | https://leetcode.com/problems/accounts-merge/,Accounts Merge,3 12 | https://leetcode.com/problems/palindromic-substrings/,Palindromic Substrings,2 13 | https://leetcode.com/problems/design-search-autocomplete-system/,Design Search Autocomplete System,2 14 | https://leetcode.com/problems/design-log-storage-system/,Design Log Storage System,5 15 | https://leetcode.com/problems/random-pick-with-weight/,Random Pick with Weight,2 16 | https://leetcode.com/problems/minimum-moves-to-equal-array-elements/,Minimum Moves to Equal Array Elements,3 17 | https://leetcode.com/problems/insert-delete-getrandom-o1/,Insert Delete GetRandom O(1),5 18 | https://leetcode.com/problems/design-hit-counter/,Design Hit Counter,7 19 | https://leetcode.com/problems/rearrange-string-k-distance-apart/,Rearrange String k Distance Apart,3 20 | https://leetcode.com/problems/flatten-nested-list-iterator/,Flatten Nested List Iterator,3 21 | https://leetcode.com/problems/reconstruct-itinerary/,Reconstruct Itinerary,4 22 | https://leetcode.com/problems/paint-house/,Paint House,4 23 | https://leetcode.com/problems/word-search-ii/,Word Search II,5 24 | https://leetcode.com/problems/implement-trie-prefix-tree/,Implement Trie,6 25 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,2 26 | https://leetcode.com/problems/word-search/,Word Search,23 27 | https://leetcode.com/problems/subsets/,Subsets,3 28 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,3 29 | -------------------------------------------------------------------------------- /companies/VMware.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/rearrange-words-in-a-sentence/,Rearrange Words in a Sentence,2 3 | https://leetcode.com/problems/missing-number-in-arithmetic-progression/,Missing Number In Arithmetic Progression,2 4 | https://leetcode.com/problems/longest-repeating-substring/,Longest Repeating Substring,2 5 | https://leetcode.com/problems/rotting-oranges/,Rotting Oranges,4 6 | https://leetcode.com/problems/max-stack/,Max Stack,3 7 | https://leetcode.com/problems/lfu-cache/,LFU Cache,2 8 | https://leetcode.com/problems/all-oone-data-structure/,All O`one Data Structure,2 9 | https://leetcode.com/problems/rearrange-string-k-distance-apart/,Rearrange String k Distance Apart,2 10 | https://leetcode.com/problems/missing-number/,Missing Number,2 11 | https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree/,Verify Preorder Sequence in Binary Search Tree,4 12 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,2 13 | https://leetcode.com/problems/palindrome-linked-list/,Palindrome Linked List,2 14 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,4 15 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 16 | https://leetcode.com/problems/lru-cache/,LRU Cache,2 17 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 18 | https://leetcode.com/problems/validate-binary-search-tree/,Validate Binary Search Tree,2 19 | https://leetcode.com/problems/sort-colors/,Sort Colors,3 20 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,5 21 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,4 22 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 23 | https://leetcode.com/problems/search-insert-position/,Search Insert Position,2 24 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,3 25 | https://leetcode.com/problems/longest-valid-parentheses/,Longest Valid Parentheses,2 26 | https://leetcode.com/problems/remove-duplicates-from-sorted-array/,Remove Duplicates from Sorted Array,2 27 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,4 28 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,5 29 | https://leetcode.com/problems/3sum/,3Sum,3 30 | https://leetcode.com/problems/median-of-two-sorted-arrays/,Median of Two Sorted Arrays,2 31 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,5 32 | -------------------------------------------------------------------------------- /companies/Walmart Global Tech.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/remove-colored-pieces-if-both-neighbors-are-the-same-color/,Remove Colored Pieces if Both Neighbors are the Same Color,9 3 | https://leetcode.com/problems/slowest-key/,Slowest Key,2 4 | https://leetcode.com/problems/reformat-date/,Reformat Date,2 5 | https://leetcode.com/problems/split-a-string-in-balanced-strings/,Split a String in Balanced Strings,2 6 | https://leetcode.com/problems/find-smallest-common-element-in-all-rows/,Find Smallest Common Element in All Rows,2 7 | https://leetcode.com/problems/subdomain-visit-count/,Subdomain Visit Count,2 8 | https://leetcode.com/problems/design-hashmap/,Design HashMap,3 9 | https://leetcode.com/problems/degree-of-an-array/,Degree of an Array,3 10 | https://leetcode.com/problems/valid-palindrome-ii/,Valid Palindrome II,2 11 | https://leetcode.com/problems/strange-printer/,Strange Printer,4 12 | https://leetcode.com/problems/continuous-subarray-sum/,Continuous Subarray Sum,2 13 | https://leetcode.com/problems/lfu-cache/,LFU Cache,2 14 | https://leetcode.com/problems/partition-equal-subset-sum/,Partition Equal Subset Sum,2 15 | https://leetcode.com/problems/decode-string/,Decode String,2 16 | https://leetcode.com/problems/find-k-pairs-with-smallest-sums/,Find K Pairs with Smallest Sums,2 17 | https://leetcode.com/problems/design-twitter/,Design Twitter,2 18 | https://leetcode.com/problems/paint-house-ii/,Paint House II,2 19 | https://leetcode.com/problems/house-robber/,House Robber,2 20 | https://leetcode.com/problems/lru-cache/,LRU Cache,4 21 | https://leetcode.com/problems/gas-station/,Gas Station,3 22 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/,Best Time to Buy and Sell Stock II,4 23 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,3 24 | https://leetcode.com/problems/path-sum/,Path Sum,2 25 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,5 26 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,2 27 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,5 28 | https://leetcode.com/problems/first-missing-positive/,First Missing Positive,2 29 | https://leetcode.com/problems/count-and-say/,Count and Say,2 30 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,5 31 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,2 32 | https://leetcode.com/problems/generate-parentheses/,Generate Parentheses,3 33 | https://leetcode.com/problems/remove-nth-node-from-end-of-list/,Remove Nth Node From End of List,3 34 | https://leetcode.com/problems/3sum/,3Sum,7 35 | https://leetcode.com/problems/median-of-two-sorted-arrays/,Median of Two Sorted Arrays,2 36 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,3 37 | https://leetcode.com/problems/two-sum/,Two Sum,3 38 | -------------------------------------------------------------------------------- /companies/Snapchat.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/largest-merge-of-two-strings/,Largest Merge Of Two Strings,1 3 | https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/,Minimum Remove to Make Valid Parentheses,2 4 | https://leetcode.com/problems/shortest-path-in-binary-matrix/,Shortest Path in Binary Matrix,3 5 | https://leetcode.com/problems/subarray-sums-divisible-by-k/,Subarray Sums Divisible by K,3 6 | https://leetcode.com/problems/knight-dialer/,Knight Dialer,2 7 | https://leetcode.com/problems/design-search-autocomplete-system/,Design Search Autocomplete System,2 8 | https://leetcode.com/problems/word-abbreviation/,Word Abbreviation,1 9 | https://leetcode.com/problems/the-maze/,The Maze,3 10 | https://leetcode.com/problems/predict-the-winner/,Predict the Winner,2 11 | https://leetcode.com/problems/lfu-cache/,LFU Cache,3 12 | https://leetcode.com/problems/ternary-expression-parser/,Ternary Expression Parser,1 13 | https://leetcode.com/problems/evaluate-division/,Evaluate Division,5 14 | https://leetcode.com/problems/decode-string/,Decode String,5 15 | https://leetcode.com/problems/android-unlock-patterns/,Android Unlock Patterns,3 16 | https://leetcode.com/problems/sparse-matrix-multiplication/,Sparse Matrix Multiplication,5 17 | https://leetcode.com/problems/minimum-height-trees/,Minimum Height Trees,2 18 | https://leetcode.com/problems/game-of-life/,Game of Life,2 19 | https://leetcode.com/problems/alien-dictionary/,Alien Dictionary,2 20 | https://leetcode.com/problems/meeting-rooms-ii/,Meeting Rooms II,2 21 | https://leetcode.com/problems/different-ways-to-add-parentheses/,Different Ways to Add Parentheses,2 22 | https://leetcode.com/problems/power-of-two/,Power of Two,2 23 | https://leetcode.com/problems/basic-calculator-ii/,Basic Calculator II,3 24 | https://leetcode.com/problems/basic-calculator/,Basic Calculator,2 25 | https://leetcode.com/problems/word-search-ii/,Word Search II,5 26 | https://leetcode.com/problems/implement-trie-prefix-tree/,Implement Trie,4 27 | https://leetcode.com/problems/number-of-islands/,Number of Islands,2 28 | https://leetcode.com/problems/find-peak-element/,Find Peak Element,4 29 | https://leetcode.com/problems/lru-cache/,LRU Cache,3 30 | https://leetcode.com/problems/word-break-ii/,Word Break II,3 31 | https://leetcode.com/problems/word-ladder/,Word Ladder,4 32 | https://leetcode.com/problems/word-ladder-ii/,Word Ladder II,3 33 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,3 34 | https://leetcode.com/problems/pascals-triangle/,Pascal's Triangle,2 35 | https://leetcode.com/problems/word-search/,Word Search,7 36 | https://leetcode.com/problems/minimum-window-substring/,Minimum Window Substring,2 37 | https://leetcode.com/problems/add-binary/,Add Binary,3 38 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,5 39 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,3 40 | -------------------------------------------------------------------------------- /companies/ByteDance.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/the-number-of-weak-characters-in-the-game/,The Number of Weak Characters in the Game,4 3 | https://leetcode.com/problems/closest-dessert-cost/,Closest Dessert Cost,3 4 | https://leetcode.com/problems/max-consecutive-ones-iii/,Max Consecutive Ones III,2 5 | https://leetcode.com/problems/maximum-swap/,Maximum Swap,2 6 | https://leetcode.com/problems/k-inverse-pairs-array/,K Inverse Pairs Array,2 7 | https://leetcode.com/problems/permutation-in-string/,Permutation in String,2 8 | https://leetcode.com/problems/continuous-subarray-sum/,Continuous Subarray Sum,3 9 | https://leetcode.com/problems/the-maze-ii/,The Maze II,2 10 | https://leetcode.com/problems/the-maze/,The Maze,4 11 | https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/,K-th Smallest in Lexicographical Order,2 12 | https://leetcode.com/problems/split-array-largest-sum/,Split Array Largest Sum,2 13 | https://leetcode.com/problems/frog-jump/,Frog Jump,2 14 | https://leetcode.com/problems/decode-string/,Decode String,2 15 | https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/,Kth Smallest Element in a Sorted Matrix,2 16 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,4 17 | https://leetcode.com/problems/basic-calculator-ii/,Basic Calculator II,4 18 | https://leetcode.com/problems/basic-calculator/,Basic Calculator,3 19 | https://leetcode.com/problems/maximal-square/,Maximal Square,2 20 | https://leetcode.com/problems/add-and-search-word-data-structure-design/,Add and Search Word - Data structure design,2 21 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,3 22 | https://leetcode.com/problems/implement-trie-prefix-tree/,Implement Trie,2 23 | https://leetcode.com/problems/number-of-islands/,Number of Islands,6 24 | https://leetcode.com/problems/sort-list/,Sort List,3 25 | https://leetcode.com/problems/lru-cache/,LRU Cache,5 26 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,6 27 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/,Best Time to Buy and Sell Stock II,3 28 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,3 29 | https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/,Construct Binary Tree from Preorder and Inorder Traversal,2 30 | https://leetcode.com/problems/restore-ip-addresses/,Restore IP Addresses,2 31 | https://leetcode.com/problems/largest-rectangle-in-histogram/,Largest Rectangle in Histogram,2 32 | https://leetcode.com/problems/plus-one/,Plus One,2 33 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,2 34 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,3 35 | https://leetcode.com/problems/n-queens-ii/,N-Queens II,2 36 | https://leetcode.com/problems/n-queens/,N-Queens,3 37 | https://leetcode.com/problems/combination-sum/,Combination Sum,3 38 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,6 39 | https://leetcode.com/problems/longest-valid-parentheses/,Longest Valid Parentheses,3 40 | https://leetcode.com/problems/reverse-nodes-in-k-group/,Reverse Nodes in k-Group,2 41 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,8 42 | https://leetcode.com/problems/generate-parentheses/,Generate Parentheses,2 43 | https://leetcode.com/problems/3sum/,3Sum,3 44 | -------------------------------------------------------------------------------- /companies/Yahoo.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/maximum-product-of-two-elements-in-an-array/,Maximum Product of Two Elements in an Array,2 3 | https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/,How Many Numbers Are Smaller Than the Current Number,2 4 | https://leetcode.com/problems/matrix-cells-in-distance-order/,Matrix Cells in Distance Order,1 5 | https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/,Sum of Root To Leaf Binary Numbers,2 6 | https://leetcode.com/problems/binary-search/,Binary Search,2 7 | https://leetcode.com/problems/binary-number-with-alternating-bits/,Binary Number with Alternating Bits,1 8 | https://leetcode.com/problems/top-k-frequent-words/,Top K Frequent Words,4 9 | https://leetcode.com/problems/valid-parenthesis-string/,Valid Parenthesis String,3 10 | https://leetcode.com/problems/trim-a-binary-search-tree/,Trim a Binary Search Tree,2 11 | https://leetcode.com/problems/maximum-distance-in-arrays/,Maximum Distance in Arrays,1 12 | https://leetcode.com/problems/merge-two-binary-trees/,Merge Two Binary Trees,3 13 | https://leetcode.com/problems/can-place-flowers/,Can Place Flowers,2 14 | https://leetcode.com/problems/find-bottom-left-tree-value/,Find Bottom Left Tree Value,2 15 | https://leetcode.com/problems/increasing-subsequences/,Increasing Subsequences,1 16 | https://leetcode.com/problems/largest-palindrome-product/,Largest Palindrome Product,1 17 | https://leetcode.com/problems/find-all-anagrams-in-a-string/,Find All Anagrams in a String,3 18 | https://leetcode.com/problems/first-unique-character-in-a-string/,First Unique Character in a String,3 19 | https://leetcode.com/problems/intersection-of-two-arrays-ii/,Intersection of Two Arrays II,4 20 | https://leetcode.com/problems/coin-change/,Coin Change,2 21 | https://leetcode.com/problems/palindrome-linked-list/,Palindrome Linked List,2 22 | https://leetcode.com/problems/basic-calculator-ii/,Basic Calculator II,2 23 | https://leetcode.com/problems/contains-duplicate/,Contains Duplicate,2 24 | https://leetcode.com/problems/rotate-array/,Rotate Array,2 25 | https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/,Two Sum II - Input array is sorted,2 26 | https://leetcode.com/problems/one-edit-distance/,One Edit Distance,2 27 | https://leetcode.com/problems/lru-cache/,LRU Cache,3 28 | https://leetcode.com/problems/pascals-triangle/,Pascal's Triangle,2 29 | https://leetcode.com/problems/restore-ip-addresses/,Restore IP Addresses,5 30 | https://leetcode.com/problems/scramble-string/,Scramble String,2 31 | https://leetcode.com/problems/climbing-stairs/,Climbing Stairs,3 32 | https://leetcode.com/problems/powx-n/,"Pow(x, n)",3 33 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 34 | https://leetcode.com/problems/divide-two-integers/,Divide Two Integers,2 35 | https://leetcode.com/problems/reverse-nodes-in-k-group/,Reverse Nodes in k-Group,2 36 | https://leetcode.com/problems/4sum/,4 Sum,2 37 | https://leetcode.com/problems/3sum/,3Sum,5 38 | https://leetcode.com/problems/roman-to-integer,Roman to Integer,4 39 | https://leetcode.com/problems/palindrome-number/,Palindrome Number,2 40 | https://leetcode.com/problems/reverse-integer/,Reverse Integer,2 41 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,4 42 | https://leetcode.com/problems/add-two-numbers/,Add Two Numbers,6 43 | https://leetcode.com/problems/two-sum/,Two Sum,4 44 | -------------------------------------------------------------------------------- /companies/Salesforce.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/check-whether-two-strings-are-almost-equivalent/,Check Whether Two Strings are Almost Equivalent,1 3 | https://leetcode.com/problems/construct-the-lexicographically-largest-valid-sequence/,Construct the Lexicographically Largest Valid Sequence,3 4 | https://leetcode.com/problems/count-sorted-vowel-strings/,Count Sorted Vowel Strings,2 5 | https://leetcode.com/problems/least-number-of-unique-integers-after-k-removals/,Least Number of Unique Integers after K Removals,2 6 | https://leetcode.com/problems/count-good-nodes-in-binary-tree/,Count Good Nodes in Binary Tree,2 7 | https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/,Maximum Number of Events That Can Be Attended,2 8 | https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold/,Find the Smallest Divisor Given a Threshold,3 9 | https://leetcode.com/problems/minimum-absolute-difference/,Minimum Absolute Difference,3 10 | https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/,Check If a Number Is Majority Element in a Sorted Array,1 11 | https://leetcode.com/problems/height-checker/,Height Checker,1 12 | https://leetcode.com/problems/last-stone-weight/,Last Stone Weight,2 13 | https://leetcode.com/problems/boats-to-save-people/,Boats to Save People,5 14 | https://leetcode.com/problems/daily-temperatures/,Daily Temperatures,2 15 | https://leetcode.com/problems/design-hashmap/,Design HashMap,3 16 | https://leetcode.com/problems/maximum-product-of-three-numbers/,Maximum Product of Three Numbers,7 17 | https://leetcode.com/problems/design-in-memory-file-system/,Design In-Memory File System,3 18 | https://leetcode.com/problems/teemo-attacking/,Teemo Attacking,2 19 | https://leetcode.com/problems/zuma-game/,Zuma Game,6 20 | https://leetcode.com/problems/pacific-atlantic-water-flow/,Pacific Atlantic Water Flow,2 21 | https://leetcode.com/problems/flatten-nested-list-iterator/,Flatten Nested List Iterator,2 22 | https://leetcode.com/problems/remove-duplicate-letters/,Remove Duplicate Letters,2 23 | https://leetcode.com/problems/integer-to-english-words/,Integer to English Words,3 24 | https://leetcode.com/problems/missing-number/,Missing Number,2 25 | https://leetcode.com/problems/shortest-word-distance/,Shortest Word Distance,2 26 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,6 27 | https://leetcode.com/problems/maximal-square/,Maximal Square,3 28 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,3 29 | https://leetcode.com/problems/number-of-islands/,Number of Islands,6 30 | https://leetcode.com/problems/rotate-array/,Rotate Array,2 31 | https://leetcode.com/problems/largest-number/,Largest Number,6 32 | https://leetcode.com/problems/binary-search-tree-iterator/,Binary Search Tree Iterator,3 33 | https://leetcode.com/problems/min-stack/,Min Stack,3 34 | https://leetcode.com/problems/lru-cache/,LRU Cache,10 35 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 36 | https://leetcode.com/problems/flatten-binary-tree-to-linked-list/,Flatten Binary Tree to Linked List,2 37 | https://leetcode.com/problems/sort-colors/,Sort Colors,3 38 | https://leetcode.com/problems/search-a-2d-matrix/,Search a 2D Matrix,2 39 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,19 40 | https://leetcode.com/problems/jump-game/,Jump Game,2 41 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,3 42 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,3 43 | https://leetcode.com/problems/sudoku-solver/,Sudoku Solver,2 44 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,2 45 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 46 | https://leetcode.com/problems/3sum/,3Sum,3 47 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,3 48 | https://leetcode.com/problems/two-sum/,Two Sum,3 49 | -------------------------------------------------------------------------------- /viz/csv2markdown.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "id": "415073d3", 7 | "metadata": {}, 8 | "outputs": [], 9 | "source": [ 10 | "import pandas as pd\n", 11 | "import os\n", 12 | "import os.path as osp" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": 16, 18 | "id": "d1410d74", 19 | "metadata": {}, 20 | "outputs": [], 21 | "source": [ 22 | "badge = '\\n'\n", 23 | "prompt = '## Leetcode Company-wise Problem Lists\\\n", 24 | "\\n\\nCurated lists of Leetcode questions group by companies, updated as of May, 2022.\\\n", 25 | "\\n\\nShout out to fishercoder1534 for the awesome [Leetcode](https://github.com/fishercoder1534/Leetcode) repo for solutions.'\n", 26 | "index = '\\n\\n## Company Index\\n'\n", 27 | "body = ''\n", 28 | "\n", 29 | "leetcode_problems = pd.read_csv('../data/leetcode_problems.csv') # provides solutions and difficulty levels\n", 30 | "\n", 31 | "companies_dir = '../companies'\n", 32 | "company_index = 1\n", 33 | "for fname in sorted(os.listdir(companies_dir)):\n", 34 | " fpath = osp.join(companies_dir, fname)\n", 35 | " company_name = fname.split('.')[0]\n", 36 | " df = pd.read_csv(fpath)\n", 37 | " # merge problem_link and problem_name as a markdown link\n", 38 | " problems = []\n", 39 | " for _, row in df.iterrows():\n", 40 | " problem = f\"[{row['problem_name']}]({row['problem_link']})\"\n", 41 | " problems.append(problem)\n", 42 | " df['problem'] = problems\n", 43 | " # add difficulty and solutions\n", 44 | " df = pd.merge(df, leetcode_problems, left_on='problem_link', right_on='link')\n", 45 | " # drop unnecessary columns\n", 46 | " df = df.drop(['problem_link', 'problem_name', 'name', 'link'], axis = 1)\n", 47 | " # filter numeric rows\n", 48 | " df = df[pd.to_numeric(df.num_occur, errors='coerce').notnull()]\n", 49 | " df['num_occur'] = df['num_occur'].apply(pd.to_numeric, errors='coerce')\n", 50 | " # sort by occurances\n", 51 | " df = df.sort_values(by ='num_occur', ascending=False).reset_index(drop=True)\n", 52 | " # filter rows to have >= 1 occurances and are in the most frequent 20 questions\n", 53 | " df = df.query('(num_occur >= 1) and (index < 20)')\n", 54 | " # change column name\n", 55 | " df.columns = ['Occurence', 'Problem', 'Difficulty', 'Solution']\n", 56 | " if len(df.index) >= 1:\n", 57 | " # add to markdown body and index\n", 58 | " body += f'\\n\\n## {company_name}\\n'\n", 59 | " body += '\\n[[back to top]](#company-index)\\n'\n", 60 | " body += df.to_markdown(index=False)\n", 61 | " index += f'{company_index}. [{company_name}](#{company_name.replace(\" \", \"-\").lower()})\\n'\n", 62 | " company_index += 1\n", 63 | "\n", 64 | "markdown = badge + prompt + index + body\n", 65 | "\n", 66 | "with open('README.md', 'w') as f:\n", 67 | " f.write(markdown)" 68 | ] 69 | }, 70 | { 71 | "cell_type": "code", 72 | "execution_count": null, 73 | "id": "f49b1f91", 74 | "metadata": {}, 75 | "outputs": [], 76 | "source": [] 77 | } 78 | ], 79 | "metadata": { 80 | "interpreter": { 81 | "hash": "de874ab3c1e2d3a16f14367c5e475a4bd6a9ea04150e3961bd56ba9d3ed6a477" 82 | }, 83 | "kernelspec": { 84 | "display_name": "Python [conda env:cs320]", 85 | "language": "python", 86 | "name": "python3" 87 | }, 88 | "language_info": { 89 | "codemirror_mode": { 90 | "name": "ipython", 91 | "version": 3 92 | }, 93 | "file_extension": ".py", 94 | "mimetype": "text/x-python", 95 | "name": "python", 96 | "nbconvert_exporter": "python", 97 | "pygments_lexer": "ipython3", 98 | "version": "3.9.7" 99 | } 100 | }, 101 | "nbformat": 4, 102 | "nbformat_minor": 5 103 | } 104 | -------------------------------------------------------------------------------- /companies/tiktok.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/plates-between-candles/,Plates Between Candles,3 3 | https://leetcode.com/problems/the-number-of-weak-characters-in-the-game/,The Number of Weak Characters in the Game,3 4 | https://leetcode.com/problems/minimum-time-to-type-word-using-special-typewriter/,Minimum Time to Type Word Using Special Typewriter,3 5 | https://leetcode.com/problems/incremental-memory-leak/,Incremental Memory Leak,1 6 | https://leetcode.com/problems/closest-dessert-cost/,Closest Dessert Cost,2 7 | https://leetcode.com/problems/kth-missing-positive-number/,Kth Missing Positive Number,3 8 | https://leetcode.com/problems/reformat-date/,Reformat Date,10 9 | https://leetcode.com/problems/design-a-stack-with-increment-operation/,Design a Stack With Increment Operation,13 10 | https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/,Minimum Number of Steps to Make Two Strings Anagram,2 11 | https://leetcode.com/problems/jump-game-iv/,Jump Game IV,2 12 | https://leetcode.com/problems/path-with-maximum-gold/,Path with Maximum Gold,2 13 | https://leetcode.com/problems/time-based-key-value-store/,Time Based Key-Value Store,3 14 | https://leetcode.com/problems/validate-stack-sequences/,Validate Stack Sequences,2 15 | https://leetcode.com/problems/score-of-parentheses/,Score of Parentheses,2 16 | https://leetcode.com/problems/backspace-string-compare/,Backspace String Compare,2 17 | https://leetcode.com/problems/custom-sort-string/,Custom Sort String,2 18 | https://leetcode.com/problems/asteroid-collision/,Asteroid Collision,5 19 | https://leetcode.com/problems/maximum-swap/,Maximum Swap,8 20 | https://leetcode.com/problems/find-k-closest-elements/,Find K Closest Elements,4 21 | https://leetcode.com/problems/subarray-sum-equals-k/,Subarray Sum Equals K,5 22 | https://leetcode.com/problems/continuous-subarray-sum/,Continuous Subarray Sum,2 23 | https://leetcode.com/problems/max-consecutive-ones-ii/,Max Consecutive Ones II,3 24 | https://leetcode.com/problems/path-sum-iii/,Path Sum III,4 25 | https://leetcode.com/problems/split-array-largest-sum/,Split Array Largest Sum,6 26 | https://leetcode.com/problems/frog-jump/,Frog Jump,2 27 | https://leetcode.com/problems/evaluate-division/,Evaluate Division,4 28 | https://leetcode.com/problems/decode-string/,Decode String,5 29 | https://leetcode.com/problems/russian-doll-envelopes/,Russian Doll Envelopes,2 30 | https://leetcode.com/problems/design-snake-game/,Design Snake Game,3 31 | https://leetcode.com/problems/odd-even-linked-list/,Odd Even Linked List,2 32 | https://leetcode.com/problems/serialize-and-deserialize-binary-tree/,Serialize and Deserialize Binary Tree,4 33 | https://leetcode.com/problems/walls-and-gates/,Walls and Gates,5 34 | https://leetcode.com/problems/move-zeroes/,Move Zeroes,2 35 | https://leetcode.com/problems/sliding-window-maximum/,Sliding Window Maximum,3 36 | https://leetcode.com/problems/count-complete-tree-nodes/,Count Complete Tree Nodes,4 37 | https://leetcode.com/problems/kth-largest-element-in-an-array/,Kth Largest Element in an Array,3 38 | https://leetcode.com/problems/course-schedule-ii/,Course Schedule II,2 39 | https://leetcode.com/problems/course-schedule/,Course Schedule,7 40 | https://leetcode.com/problems/count-primes/,Count Primes,2 41 | https://leetcode.com/problems/number-of-islands/,Number of Islands,6 42 | https://leetcode.com/problems/intersection-of-two-linked-lists/,Intersection of Two Linked Lists,3 43 | https://leetcode.com/problems/lru-cache/,LRU Cache,6 44 | https://leetcode.com/problems/gas-station/,Gas Station,5 45 | https://leetcode.com/problems/palindrome-partitioning/,Palindrome Partitioning,3 46 | https://leetcode.com/problems/surrounded-regions/,Surrounded Regions,2 47 | https://leetcode.com/problems/binary-tree-maximum-path-sum/,Binary Tree Maximum Path Sum,6 48 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,2 49 | https://leetcode.com/problems/validate-binary-search-tree/,Validate Binary Search Tree,2 50 | https://leetcode.com/problems/restore-ip-addresses/,Restore IP Addresses,3 51 | https://leetcode.com/problems/spiral-matrix-ii/,Spiral Matrix II,6 52 | https://leetcode.com/problems/merge-intervals/,Merge Intervals,2 53 | https://leetcode.com/problems/n-queens/,N-Queens,2 54 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 55 | https://leetcode.com/problems/jump-game-ii/,Jump Game II,3 56 | https://leetcode.com/problems/sudoku-solver/,Sudoku Solver,3 57 | https://leetcode.com/problems/search-insert-position/,Search Insert Position,2 58 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,4 59 | https://leetcode.com/problems/merge-k-sorted-lists/,Merge k Sorted Lists,2 60 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,3 61 | https://leetcode.com/problems/3sum/,3Sum,4 62 | https://leetcode.com/problems/roman-to-integer,Roman to Integer,5 63 | https://leetcode.com/problems/integer-to-roman/,Integer to Roman,2 64 | -------------------------------------------------------------------------------- /companies/Goldman Sachs.csv: -------------------------------------------------------------------------------- 1 | problem_link,problem_name,num_occur 2 | https://leetcode.com/problems/keep-multiplying-found-values-by-two/,Keep Multiplying Found Values by Two,1 3 | https://leetcode.com/problems/remove-duplicates-from-an-unsorted-linked-list/,Remove Duplicates From an Unsorted Linked List,2 4 | https://leetcode.com/problems/check-if-the-sentence-is-pangram/,Check if the Sentence Is Pangram,3 5 | https://leetcode.com/problems/find-the-winner-of-the-circular-game/,Find the Winner of the Circular Game,4 6 | https://leetcode.com/problems/minimum-length-of-string-after-deleting-similar-ends/,Minimum Length of String After Deleting Similar Ends,Amazon 7 | https://leetcode.com/problems/perform-string-shifts/,Perform String Shifts,1 8 | https://leetcode.com/problems/count-number-of-teams/,Count Number of Teams,7 9 | https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/,Remove All Adjacent Duplicates in String II,2 10 | https://leetcode.com/problems/high-five/,High Five,12 11 | https://leetcode.com/problems/greatest-common-divisor-of-strings/,Greatest Common Divisor of Strings,3 12 | https://leetcode.com/problems/height-checker/,Height Checker,20 13 | https://leetcode.com/problems/rotate-string/,Rotate String,3 14 | https://leetcode.com/problems/delete-and-earn/,Delete and Earn,11 15 | https://leetcode.com/problems/asteroid-collision/,Asteroid Collision,3 16 | https://leetcode.com/problems/find-pivot-index/,Find Pivot Index,9 17 | https://leetcode.com/problems/subarray-product-less-than-k/,Subarray Product Less Than K,2 18 | https://leetcode.com/problems/design-hashmap/,Design HashMap,3 19 | https://leetcode.com/problems/insert-into-a-binary-search-tree/,Insert into a Binary Search Tree,2 20 | https://leetcode.com/problems/fraction-addition-and-subtraction/,Fraction Addition and Subtraction,5 21 | https://leetcode.com/problems/design-in-memory-file-system/,Design In-Memory File System,2 22 | https://leetcode.com/problems/k-diff-pairs-in-an-array/,K-diff Pairs in an Array,2 23 | https://leetcode.com/problems/coin-change-2/,Coin Change 2,3 24 | https://leetcode.com/problems/fibonacci-number/,Fibonacci Number,3 25 | https://leetcode.com/problems/find-permutation/,Find Permutation,2 26 | https://leetcode.com/problems/circular-array-loop/,Circular Array Loop,2 27 | https://leetcode.com/problems/minimum-moves-to-equal-array-elements/,Minimum Moves to Equal Array Elements,4 28 | https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/,Minimum Number of Arrows to Burst Balloons,2 29 | https://leetcode.com/problems/string-compression/,String Compression,6 30 | https://leetcode.com/problems/elimination-game/,Elimination Game,4 31 | https://leetcode.com/problems/first-unique-character-in-a-string/,First Unique Character in a String,4 32 | https://leetcode.com/problems/coin-change/,Coin Change,2 33 | https://leetcode.com/problems/h-index-ii/,H-Index II,2 34 | https://leetcode.com/problems/valid-anagram/,Valid Anagram,3 35 | https://leetcode.com/problems/implement-queue-using-stacks/,Implement Queue using Stacks,3 36 | https://leetcode.com/problems/kth-largest-element-in-an-array/,Kth Largest Element in an Array,2 37 | https://leetcode.com/problems/minimum-size-subarray-sum/,Minimum Size Subarray Sum,2 38 | https://leetcode.com/problems/number-of-islands/,Number of Islands,3 39 | https://leetcode.com/problems/largest-number/,Largest Number,2 40 | https://leetcode.com/problems/fraction-to-recurring-decimal/,Fraction to Recurring Decimal,3 41 | https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/,Find Minimum in Rotated Sorted Array,2 42 | https://leetcode.com/problems/lru-cache/,LRU Cache,6 43 | https://leetcode.com/problems/linked-list-cycle/,Linked List Cycle,2 44 | https://leetcode.com/problems/best-time-to-buy-and-sell-stock/,Best Time to Buy and Sell Stock,11 45 | https://leetcode.com/problems/pascals-triangle-ii/,Pascal's Triangle II,2 46 | https://leetcode.com/problems/pascals-triangle/,Pascal's Triangle,3 47 | https://leetcode.com/problems/decode-ways/,Decode Ways,3 48 | https://leetcode.com/problems/search-a-2d-matrix/,Search a 2D Matrix,2 49 | https://leetcode.com/problems/climbing-stairs/,Climbing Stairs,2 50 | https://leetcode.com/problems/minimum-path-sum/,Minimum Path Sum,3 51 | https://leetcode.com/problems/maximum-subarray/,Maximum Subarray,2 52 | https://leetcode.com/problems/group-anagrams/,Group Anagrams,2 53 | https://leetcode.com/problems/permutations/,Permutations,2 54 | https://leetcode.com/problems/trapping-rain-water/,Trapping Rain Water,38 55 | https://leetcode.com/problems/search-in-rotated-sorted-array/,Search in Rotated Sorted Array,2 56 | https://leetcode.com/problems/valid-parentheses/,Valid Parentheses,2 57 | https://leetcode.com/problems/3sum-closest/,3Sum Closest,2 58 | https://leetcode.com/problems/3sum/,3Sum,4 59 | https://leetcode.com/problems/container-with-most-water/,Container With Most Water,3 60 | https://leetcode.com/problems/string-to-integer-atoi/,String to Integer (atoi),3 61 | https://leetcode.com/problems/longest-palindromic-substring/,Longest Palindromic Substring,5 62 | https://leetcode.com/problems/median-of-two-sorted-arrays/,Median of Two Sorted Arrays,18 63 | https://leetcode.com/problems/longest-substring-without-repeating-characters/,Longest Substring Without Repeating Characters,4 64 | https://leetcode.com/problems/two-sum/,Two Sum,7 65 | -------------------------------------------------------------------------------- /data-gen/leetcode_scraper.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": null, 6 | "id": "abeb0073", 7 | "metadata": {}, 8 | "outputs": [], 9 | "source": [ 10 | "from selenium import webdriver\n", 11 | "from selenium.webdriver.chrome.options import Options\n", 12 | "from selenium.common.exceptions import NoSuchElementException\n", 13 | "from tqdm import tqdm\n", 14 | "import time\n", 15 | "import pandas as pd" 16 | ] 17 | }, 18 | { 19 | "cell_type": "code", 20 | "execution_count": null, 21 | "id": "c2b6ff54", 22 | "metadata": {}, 23 | "outputs": [], 24 | "source": [ 25 | "options = Options()\n", 26 | "options.headless = True\n", 27 | "driver = webdriver.Chrome(options=options)\n", 28 | "driver.set_window_size(1920, 1080)\n", 29 | "driver.maximize_window()" 30 | ] 31 | }, 32 | { 33 | "cell_type": "code", 34 | "execution_count": null, 35 | "id": "a9bacba8", 36 | "metadata": {}, 37 | "outputs": [], 38 | "source": [ 39 | "# click helper, wait until page source changed\n", 40 | "def click(button, timeout=3):\n", 41 | " prev_src = driver.page_source\n", 42 | " elapsed = 0\n", 43 | " unit_time = timeout / 10\n", 44 | " button.click()\n", 45 | " while prev_src == driver.page_source and elapsed <= timeout:\n", 46 | " time.sleep(unit_time)\n", 47 | " timeout -= unit_time\n", 48 | " elapsed += unit_time\n", 49 | " \n", 50 | "# login to leetcode\n", 51 | "def login(username, password):\n", 52 | " login_url = 'https://leetcode.com/accounts/login/'\n", 53 | " driver.get(login_url)\n", 54 | " time.sleep(2)\n", 55 | " username_field = driver.find_element_by_xpath('//input[@id=\"id_login\"]')\n", 56 | " password_field = driver.find_element_by_xpath('//input[@id=\"id_password\"]')\n", 57 | " signin_button = driver.find_element_by_xpath('//button[@id=\"signin_btn\"]')\n", 58 | " username_field.send_keys(username)\n", 59 | " password_field.send_keys(password)\n", 60 | " click(signin_button)\n", 61 | " print('successfully logged in!') \n", 62 | "\n", 63 | "# get company info from a problem URL\n", 64 | "def get_problem_companies_info(problem_url, debug=False):\n", 65 | " companies_info = dict() # key: company name, value: number of occurances\n", 66 | " driver.get(problem_url)\n", 67 | " time.sleep(2)\n", 68 | " # locate and click on the 'Companies'