Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make the Problem List Ordered & Leverage GraphQL API #626

Open
@AerysNan

Description

@AerysNan

I don't know whether it's a bug or a feature. So I post it as a feature proposal anyway.

🚀 Feature Proposal

Make the problems on the left sidebar ordered by their problem ID.

Motivation

It may make people feel much better if they are ordered.

Contribution

There are two ways to solve this problem:

  1. We can sort the problem list after retrieving it fromLeetCodeExecutor.listProblems by each problem'sfid.
  2. Or we can make the result coming fromleetcode-cli ordered. I investigate the source code ofleetcode-tools/leetcode-cli a little bit and suppose the functionplugin.getProblems is the one that should be updated. After gathering all the problems from different categories. We can sort them by theirfid attributed.

Another issue

Besides, I notice that thegraphql method inleetcode-cli is defined but not leveraged. Can we usegraphql to get problems a specific company or tag? So that we can abandon thecompany.js file to avoid hardcoding tag and company information (enven now this information is not updated frequently though).


The issue section ofleetcode-tools/leetcode-cli is closed but I find that that repository and this one are maintained by the same group of people. So I post this here. I would appreciate it if you could kindly consider my proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp