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.
- Prepare
- Algorithms
- Recursion
- Repetitive K-Sums
- Discussions
Repetitive K-Sums
Repetitive K-Sums
Sort by
recency
|
29 Discussions
|
Please Login in order to post a comment
Python Hybrid Algo Approach
Here is Repetitive K-Sums problem solution in Python Java C++ and c programming - https://programs.programmingoneonone.com/2021/07/hackerrank-repetitive-k-sums-problem-solution.html
This problem doesn't test the performance of your solution nearly as much as I was expecting. I was expecting to pass half of the test cases at most on my first submission, since I hadn't optimized it at all yet, but it turns out unoptimized is good enough.
The verification seems picky about which duplications are OK!?
Would love an example where k > 2 and n > 1. How is 3-sum done?