-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select Leetcode Problems #4
Comments
This is a big feature. Going to need a few things:
In my mind, there are more important features that I want to have first (which I've created issues for), so I'm probably not going to be working on this right away. But if somebody wants to start designing and coding this, I'd be happy to give feedback and review PRs. On the UI, users should be able to filter by:
Need db migration to add "Contest" and "Tags" ( Will need a CRON job to update the Questions table when the contest questions are released. |
Partially solved by this PR: Still need to add a difficulty filter for the topics. I'm going to hold off on the contests/problems selection. I don't think it's high priority. |
Hi guys, First of all, big shout out to @marwanhawari for making the extension, it makes solving leetcode with friends so much fun. Second, I really like this purposed feature, my mate and I usually practice together 1 - 2 specific questions at night. Is it ok for me to continue contributing to this feature? Cheers |
Awesome, contributions are welcome! Here's a rough idea of what needs to be done to let users select specific questions:
let body: RoomSettings = {
questionFilter: {
kind: QuestionFilterKind.Questions
selections: [ { id: 1, title: "Two Sum", titleSlug: "two-sum", difficulty: Difficulty.Easy } ]
};
duration?: ...;
difficulty: ...;
}
I might be missing something, but I just brain-dumped this and that's all I can think of for now. Of course, this is a lot and I don't expect you to do all of this (unless you want to). Also, the best way to get a hold of me if you have questions is in the LeetRooms discord: https://discord.gg/bJBDNpSUWQ |
I really appreciate your step to step guide! This is absolutely amazing along with the I like your idea and I will keep you updated on the progress either here or in discord:
|
Added Questions to QuestionFilterKind, if the filterKind is Questions, the selections will be an array of title-slug, first we need to find the questions by slug, the rest are remaining the same, basically a copy and paste from the exisiting "Topics" logic, potentially should be refactored. Added question router and two endpoints, one for search a specific question by search term, the other one will randomly return 10 questions for the user to pick. Fixes: marwanhawari#4
Added a new Tab called Questions, added search functionality which is server side search, each time the server will return the most relevant 5 results. If the user chooses Questions over Topics, then the question title slug will be saved into `RoomSetting.questionFilter.selections`. Added questions type to QuestionFilter in order to display the questions again when setting modal is reopened. The user can max select 4 questions, which is the same as current behaviour. Fixes: marwanhawari#4
For right now, it appears that the plugin only gives a random set of problems. Being able to choose a set of problems for the room would be helpful for practice.
The text was updated successfully, but these errors were encountered: