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.
- All Contests
- HourRank 24
- Kth Minimum
- Discussions
Kth Minimum
Kth Minimum
Sort by
recency
|
12 Discussions
|
Please Login in order to post a comment
Looks like default reading in python3 is incorrect. I've tried the following code with test case #6
the output on my computer is:
instead of expected
Disappointed that the C++ boilerplate solution still uses int vars, when the constraints obviously required something else.
Awarding 20% points because I've discovered the bug in the boilerplate?? I expected better.
With respect: your problems are interesting, and I suspect good examples of exploring problem spaces. But I believe your descriptions are too terse. When I have fifteen minutes to solves a problem (HackHour 24), but still cannot understand the simpler problems after 5 minutes? Agree, I probably need to study the algorithm space more ... and am happy to research. But in 10 minutes? It becomes not a test of skill, but of specific domain knowledge. I think the questions are obfuscated, and ask that you vet them a little more.
generate_list function in Python would be:
Do I have to optimize this part as well? Or leave it as it is? I only passed 11 test cases using sort and heapq (I changed append to heappush).
I still have a question: is there an error in "explanation 0"? why is list B iterated from 3rd element instead of 2nd? )
Using min-heap and then popping doesn't make the cut either. ;-(