![]() |
|
[HFCC] The Hack Forums Coding Contest - Week 1 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [HFCC] The Hack Forums Coding Contest - Week 1 (/showthread.php?tid=5564022) |
[HFCC] The Hack Forums Coding Contest - Week 1 - Haxalot - Mar 1, 2017 About
What's the Point?
Scoreboard
Since this is the first week, there will probably need to be some tweaking done. Perhaps the programming problems were too easy or too difficult. Or perhaps there weren't enough challenges to solve. Or maybe the timings were bad for some members here. These problems will be gradually ironed out over the coming weeks as I commence with future contests. I'm always open to hearing feedback as well, so either reply here or drop me a PM. * - Ronan. - Mar 1, 2017 I'd advise creating your own problems, hackerrank solutions are readily available. Codewars has a pretty good workflow for this, allowing you to port your challenges to multiple languages. * - Haxalot - Mar 1, 2017 (Mar 1, 2017 03:23 PM)Ronan. Wrote: I'd advise creating your own problems, hackerrank solutions are readily available. I will not be wasting my time doing this. If a minority of members want to cheat to boost their ego, then so be it. Any obvious cheating will lead to them being disqualified and barred in future contests. These contests are only being hosted for the benefit of the members who do not want to cheat. * - Haxalot - Mar 3, 2017 If anyone else is interested, the contest has just started. * - Gorzoid - Mar 4, 2017 Currently #1 on leaderboard, that last one is tricky, I run out of memory calculating the set if N is greater than 4, not sure what the pattern is |:< * - Haxalot - Mar 4, 2017 (Mar 4, 2017 04:27 AM)Gorzoid Wrote: Currently #1 on leaderboard, that last one is tricky, I run out of memory calculating the set if N is greater than 4, not sure what the pattern is |:< Congrats! I haven't attempted #5 yet (I will do later today), but it sounds like your solution is using the wrong time complexity. Given the size of the numbers involved, you're probably looking for an O(1) solution. I've really enjoyed the other questions actually. #4 was brilliant - one of the best medium-style questions I've encountered thus far. * - Gorzoid - Mar 4, 2017 Yeah I was using python to calculate every possible set from 0 to 2^5-1 and filter only the ones that xorsum'd to 0, it wasn't meant as a solution but just a way to find the pattern, I found the pattern and formula now but it requires alot of arbitrary precision arithmetic and thats quite difficult in C, which I did all my solutions in, and when tried to python it didnt seem to be work either. 4 wasn't too hard for me, it and 1 are the only ones I have 100% correct, there's just a few edge cases in 2 and 3 and im not sure what they are. * - Haxalot - Mar 6, 2017 The contest is now over. The end leaderboard is:
|