-
-
Notifications
You must be signed in to change notification settings - Fork 39
Implemented longest increasing subsequence dp algorithm #19
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
Conversation
Now the new BST function has more methods and in general feels more like my previous DoublyLinkedList implementation.
Nice implementation, @spirosmaggioros. A question: Why is there always need References |
Haven't looked it up, i learned zig the past 4 days. One day i saw that the std::vector equivelant is the ArrayList, so i thought i can just use this. I can look it up and fix it if you wish or if you think it will be better in any case. Well, looked it up. I can't use a bounded array because i can't have a fixed size. The size needs to be dynamic as i can't know somehow with how many elements i will end up. I guess setting an upper bound is not ideal and will be less efficient. |
This comment was marked as outdated.
This comment was marked as outdated.
That's your implementation, i don't pass any length in my original one. I think you meant to write As for your implementation, if you have an array of size 1000 and the lis is 2, the |
|
will do |
Just an lis implementation using the lower bound trick that runs in O(nlogn)