-
-
Notifications
You must be signed in to change notification settings - Fork 224
Simplify removeById #550
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
Simplify removeById #550
Conversation
|
does this not reverse the list? I suppose a new test would be nice here |
Nope, I just reimplemented |
We already have tests, but not for preserving order. I did add those tests. Also the name of this function is misleading, it actually only removes the first item that have the correspondent id. Added a test and comments to clarify it as well. |
I believe I wrote the code that way to avoid recursion, but your solution can be recursiveless as well with
What is your problem? I'd like to help you with your local setup if you want. And thanks for pr! |
@lenguyenthanh sorry for the delay, but I would be thankful if you help me. I was trying to run TracebackThen I have tried Traceback |
This is the problem, You need to use jdk 21 to compile/run/test |
Thanks for the help! I'll upgrade it |
I failed to run tests and scared to run benchmarks, so I will rely on CI. I hope this code works the same as previous one, and improves performance.