We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Electronics Shop
Electronics Shop
Sort by
recency
|
2397 Discussions
|
Please Login in order to post a comment
Here is my Python code! We first find all possible combinations of keyboards and drives and then find the largest sum of those. I appended -1 so if there is no combination within budget, it returns -1.
What is the best time complexity that can be achieved?
Here is my c++ solution, you can find the video here : https://youtu.be/yC-TXToDbD0
Very simple python solution here