Giter VIP home page Giter VIP logo

Comments (14)

slycelote avatar slycelote commented on May 31, 2024

Possibly. Depends on how many people want it.

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

You reopened it to count how many people would expect leetcode support?

I don't know cf, but as far as I know, only novices like me will copy the code to the local IDE among Leetcode users, and Leetcode only needs to implement a class, so the IDE plug-in may not be very useful.

But I very much hope, if possible, to add support for simulation problems to Leetcode.
Like this
https://leetcode-cn.com/problems/stack-of-plates-lcci/

When the input data represents a function call and the corresponding parameters, the user can simply input the string itself, and then view the result at the i-th position, just like this.
https://github.com/mingy532/Trivial_thing/blob/master/Reflection_in_boost.cpp#L157

Instead of manually writing a lot of things such as

Solution s;
s->func1(...)
s->func2(...)
...

If you plan to add support for leetcode, I hope you can add this feature.

from caide.

slycelote avatar slycelote commented on May 31, 2024

The issue is open to track progress of this feature request, including user comments/plus-ones (although I can't give any ETA). Thanks for detailed explanation of simulation problems. I can't read Chinese, but I assume it's similar to Dinner Plate Stacks.

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

I saw this question in the《crack the coding interview》. The Chinese site LeetCode puts all the questions in this book into one topic, so I don't know its official title number.
They are indeed the same problem, thank you for taking the time to find it.

from caide.

slycelote avatar slycelote commented on May 31, 2024

@KargathEx I added basic support for LeetCode and published a beta release here. I'd appreciate if you could test this out.

Regarding "simulation problems" -- do you have more examples, or maybe there's a general way to search for them?

Note that quite a few LeetCode problems involve custom structures, like TreeNode. Those are not yet supported either.

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

Thanks, I will try it!
By the way, about the construction of custom data structures, you can refer to this
https://github.com/KargathEx/lc_debug/blob/main/lc.h

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

simulation problems:https://leetcode.com/tag/simulation/

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

Asking an unrelated question, how do you guys debug simulation problems while playing at codeforce, I find it too hard to keep track of its state in my head, and too tiring to manually write code that simulates function calls.

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

https://www.boost.org/doc/libs/develop/libs/describe/doc/html/describe.html#example_json_rpc
This one might work too, but I don't know how to handle the case where the input parameter is empty.

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

It works fine.

but Error for this link:
https://leetcode.com/problems/k-highest-ranked-items-within-a-price-range/
aaaaa

from caide.

slycelote avatar slycelote commented on May 31, 2024

simulation problems:https://leetcode.com/tag/simulation/

Thanks! I found a better tag: https://leetcode.com/tag/design/

how do you guys debug simulation problems while playing at codeforce, I find it too hard to keep track of its state in my head, and too tiring to manually write code that simulates function calls.

I don't really have experience with those, do you have example URLs?

It works fine.

but Error for this link: https://leetcode.com/problems/k-highest-ranked-items-within-a-price-range/

Thanks! The problem is with multi-dimensional vectors. This will be fixed in release version.

from caide.

mingyEx avatar mingyEx commented on May 31, 2024

Thanks, I will try it! By the way, about the construction of custom data structures, you can refer to this https://github.com/KargathEx/lc_debug/blob/main/lc.h

Sorry I just noticed that link is inaccessible , update:
https://github.com/luckystone60/leetcode-helper

from caide.

slycelote avatar slycelote commented on May 31, 2024

@KargathEx I published another beta release that should support majority of LeetCode problems: https://github.com/slycelote/caide/releases/tag/v2.10.0-beta2

from caide.

slycelote avatar slycelote commented on May 31, 2024

Published 2.10 release

from caide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.