Top N Most Recently Asked Problems is a JavaScript-based tool designed to generate URLs for accessing LeetCode problems specifically categorized by company, difficulty, and timeframe. This tool allows users to focus their study on the most frequently asked questions in technical interviews.
- Generates LeetCode URLs for specific companies based on difficulty and timeframe.
- Fetches the most recently asked problems for targeted interview preparation.
- Outputs problem details in a structured format.
Before you begin, ensure you have met the following requirements:
- A modern web browser (e.g., Chrome, Firefox) to run the JavaScript code.
- LeetCode Premium access to view company-specific problems.
To generate a URL for a specific company (e.g., Amazon, Meta, Google), follow these steps:
-
Open LeetCode:
- Visit the LeetCode homepage at https://leetcode.com/.
-
Open Developer Tools:
- Right-click anywhere on the page and select Inspect, or press
F12on your keyboard.
- Right-click anywhere on the page and select Inspect, or press
-
Go to the Console Tab:
- In the Developer Tools, click on the Console tab.
-
Run the Script:
- Copy and paste the code from
create_leetcode_url.jsinto the console and pressEnter. You will need to modify the script to select your company, timeframe, and difficulties.
- Copy and paste the code from
-
Generate the URL:
- The script will output a URL that you can use to access the LeetCode problems for the specified company.
Once you have the URL, you can obtain the top N most recently asked questions by following these steps:
-
Open LeetCode Company Page:
- Navigate to the specific company page on LeetCode (e.g., https://leetcode.com/company/microsoft/).
-
Open Developer Tools:
- Right-click on the page and select Inspect, or press
F12on your keyboard.
- Right-click on the page and select Inspect, or press
-
Go to the Console Tab:
- Click on the Console tab in the Developer Tools.
-
Run the Script:
- Copy and paste the code from
get_top_n_most_recently_asked_problems.jsinto the console and pressEnter.
- Copy and paste the code from
-
View the Results:
- The script will extract and display the top N most recently asked questions in a structured format in the console.
This project is licensed under the MIT License - see the LICENSE file for details.
