Since LeetCode stopped displaying the number of dislikes for questions, this Homebrew tap provides a convenient way to view the dislikes count for any LeetCode problem directly in your terminal on macOS.
To install leetcode-dislikes using Homebrew, follow these steps:
-
Tap into the Repository:
brew tap IamSinha27/leetcode-dislikes
-
Install the Formula:
brew install leetcode-dislikes
Once installed, you can use leetcode-dislikes to fetch the dislikes count for a specific LeetCode problem.
leetcode-dislikes {problem-name}- Replace
{problem-name}with the title slug of the LeetCode problem. - Ensure the problem name is in lowercase.
- If the problem name on LeetCode contains spaces, replace the spaces with hyphens (
-). For example,Two Sumshould be written astwo-sum.
To fetch the dislikes count for the LeetCode problem "Two Sum":
leetcode-dislikes two-sumThis will display the number of dislikes for the problem "Two Sum" directly in your terminal.