7 ms·
The solution exposed don't seems competitive enough to solve with good rank the problem exposed here https://highload.fun/tasks/14 https://highload.fun/tasks/14
by victor82 3y ago
The solution exposed don't seems competitive enough to solve with good rank the problem exposed here https://highload.fun/tasks/14 https://highload.fun/tasks/14
That site is really good to play with SIMD code.
- reaperman 3y agoHow can I see Yuriy’s top solution for this task?
- anonymoushn 3y agoYou can ask him but he probably won't share
- reaperman 3y agoKind of a weird leaderboard if you can’t even check to see if answers satisfy correctness. I’ve seen plenty of leaderboards where the top answers would fail cases that weren’t covered by the leaderboards testing.
- paulmd 3y agoYeah, most of the leetcode top solutions are a hardcoded table of answers for the scoring questions followed by the general solution.
- anonymoushn 3y agoI think it's not such a big deal because the input generators are usually pretty good and because most solutions that give up some correctness for performance can pretty cheaply detect that they done goofed and fall back to a slow path where they start over and do it some other way. This ends up being useful because scoring is the median runtime of 3 successful runs (so if you fail one of the 3 then your submission fails completely). It also means that probabilistic solutions that would be correct in non-adversarial environments (like using a bloom filter or N bloom filters tuned to give an exact result given the input constraints with probability >99.9%) are admissible.
- o_bender 3y agoThis particular solution does satisfy correctness, although I can't share the source code (as the competition is ongoing). Feel free to provide your input data and I'll run it to compare with your expected result.
- renewiltord 3y agoIs the code for some of the solutions available? Thanks for the link. That's a fun place.
- victor82 3y agoThe solution codes are not available as you can continuously update your solution.
- pvitz 3y agoWhat is actually the task here? Parsing is clear and it looks like one has to sum all parsed timestamps, but what does the additional comment about the shortest time mean?
- anonymoushn 3y agoIt means that your solution is scored on how fast it runs. Frequently we end up with solutions that use tricks that would not be applicable to the n=1 problem in TFA ("parse 1 timestamp") when we try to get the fastest solutions for "find the sum of all these timestamps."