LeetTest EN
bombtastic · Firefox
One-click random testcases for LeetCode, pasted into the Testcase tab. Plus numeric difficulty ratings and company tags.
简介
Stop hand-writing testcases. LeetTest generates fresh random inputs for the LeetCode problem you're on and pastes them straight into the Testcase tab, so you can hit Run and see how your solution handles cases you didn't think of.
WHAT IT DOES
★ One-click random testcases
Open a problem, click Generate Testcases, and LeetTest fills the Testcase tab with 8 new cases in the problem's input format. It switches to the Testcase tab and Source view for you, even if LeetCode left you on Test Result.
★ Numeric difficulty ratings
"Medium" covers a lot of ground. LeetTest adds a contest-based numeric rating next to Easy / Medium / Hard (for example "Medium - 1486"), so you know how hard a problem really is. Problems without a rating show "Not found".
★ Company tags
See which companies have asked the problem, right under the title, without LeetCode Premium.
★ Your settings
Hide difficulty entirely to practice without bias, or turn the numeric rating and company tags on and off. Changes apply to open LeetCode tabs instantly.
★ Report bad testcases in two clicks
Generators are built per problem, and occasionally one misses a constraint. If a set looks wrong, hit the report button and pick what went wrong. Reported problems get their generator rebuilt, so every report makes it better for everyone.
Works on Chrome and Firefox.
PRIVACY
LeetTest has no accounts and never reads your code. To fetch ratings and testcases, it sends only the name of the problem you're viewing (for example "two-sum") and the extension version to the LeetTest server. Reports send the problem name and the reason you picked. Your settings stay in your browser.
Feedback and ideas are welcome: leave a review or open an issue on GitHub.
LeetTest 是做什么的
LeetTest 是一款面向 Firefox 的实用工具类扩展,主要用来解决浏览器里某类具体的小问题。官方对它的介绍是:One-click random testcases for LeetCode, pasted into the Testcase tab. Plus numeric difficulty ratings and company tags.在Firefox 附加组件商店(AMO)上,它当前版本 2.1.0,评分 5(4 人评价),约 108 名用户。
适合什么人用
从功能定位看,LeetTest 更适合想补上浏览器原生缺失功能的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 LeetTest
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
LeetTest 是免费的吗?
LeetTest 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
LeetTest 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
LeetTest 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 LeetTest?
在扩展管理页找到 LeetTest,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 2
scriptingstorage