Comments (14)
Possibly. Depends on how many people want it.
from caide.
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.
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.
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.
@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.
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.
simulation problems:https://leetcode.com/tag/simulation/
from caide.
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.
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.
It works fine.
but Error for this link:
https://leetcode.com/problems/k-highest-ranked-items-within-a-price-range/
from caide.
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.
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.
@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.
Published 2.10 release
from caide.
Related Issues (20)
- Caide for docker HOT 1
- Console is waiting for input. HOT 2
- Unable to parse the problem from Codechef. HOT 4
- Cannot parse double-char named problems. HOT 1
- Cannot parse double-char HOT 2
- Support "regex" input type HOT 1
- Display running time per test in the report HOT 3
- Code analysis errors HOT 7
- Link error when the Visual Studio solution has just been created HOT 8
- How to include prewritten code library? HOT 7
- I also had a question, Is there any way to make the questions parse into a certain directory. HOT 1
- Visual Studio not responding when loading the caide solution HOT 2
- Including Prewritten Headers HOT 8
- Hanging Of Visual Studio HOT 9
- Use gcc in command line caide in windows HOT 1
- httpServer doesn't exit on Return key in Windows HOT 4
- Caide should not remove constructor from TopCoder solution HOT 3
- How to modify the automatically generated code template HOT 3
- VsCaide-What is the difference between run tests and debug tests? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caide.