Quixey Challenge
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Hi, quixey is doing a programming challenge to try to recruit talent. You can win $100 if you solve the problem in 1 minute or less, and it is very doable (I just won, although last time I tried and did not).
The challenge is to find a bug in 1 minute or less. It is in python and pretty simple. You will need to talk over skype when it is your turn.
I apologize for this is somewhat spammy, but I think many golfers would be good at this and have a good chance of winning. (And I am selfish, if you win with this referral link, then I get 50$ :)
Below is an example problem (from the practice set)
Good Luck,
flagitious
http://www.quixeychallenge.com/?ref=darrenks314
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
def topological_ordering(nodes):
ordered_nodes = OrderedSet(node for node in nodes if not node.incoming_nodes)
for node in ordered_nodes:
for nextnode in node.outgoing_nodes:
if ordered_nodes.issuperset(nextnode.outgoing_nodes):
ordered_nodes.add(nextnode)
return ordered_nodes
Sample output:
def topological_ordering(nodes):
ordered_nodes = OrderedSet(node for node in nodes if not node.incoming_nodes)
for node in ordered_nodes:
for nextnode in node.outgoing_nodes:
if ordered_nodes.issuperset(nextnode.incoming_nodes):
ordered_nodes.add(nextnode)
return ordered_nodes
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | eban | 27 | 0.0160 | 2012/01/20 11:03:32 | 1B / 12B / 12B |
2 | kaki | 27 | 0.0284 | 2012/01/20 11:19:11 | 1B / 16B / 10B |
3 | leonid | 27 | 0.0157 | 2012/01/20 23:08:08 | 1B / 16B / 9B |
4 | clock | 34 | 0.0223 | 2012/01/20 09:51:07 | 0B / 21B / 11B |
5 | might be US only (sorry!) | 58 | 0.0401 | 2012/01/20 03:39:33 | 0B / 44B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 29 | 0.0540 | 2012/01/20 09:24:01 | 0B / 17B / 10B |
2 | tails | 29 | 0.0186 | 2012/01/20 13:29:27 | 0B / 17B / 10B |
3 | eban | 29 | 0.0211 | 2012/01/20 15:34:33 | 0B / 17B / 10B |
4 | nai | 29 | 0.0176 | 2012/01/20 15:50:27 | 0B / 17B / 10B |
5 | Hem | 29 | 0.0206 | 2012/01/21 19:58:08 | 0B / 17B / 10B |
6 | twobit | 30 | 0.0174 | 2012/01/20 09:44:53 | 0B / 17B / 11B |
7 | teebee(alnum) | 47 | 0.0159 | 2012/02/12 12:28:38 | 0B / 40B / 0B |
8 | jonathan camacho | 47 | 0.0108 | 2014/09/03 06:15:12 | 0B / 32B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 54 | 0.0247 | 2012/01/20 23:19:49 | 0B / 35B / 15B |
2 | twobit | 54 | 0.1954 | 2012/01/21 23:49:40 | 0B / 35B / 17B |
3 | Hendrik | 54 | 0.0797 | 2012/01/22 01:15:06 | 0B / 35B / 15B |
4 | hallvabo | 56 | 0.0235 | 2012/01/20 19:04:24 | 0B / 30B / 25B |
5 | teebee | 57 | 0.0289 | 2012/01/20 12:58:51 | 0B / 37B / 19B |
6 | recursive | 62 | 0.4099 | 2012/01/20 01:49:30 | 0B / 46B / 14B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | o-cn | 47 | 0.0319 | 2012/01/20 19:18:38 | 0B / 28B / 19B |
2 | clock | 47 | 0.0302 | 2012/01/22 13:42:03 | 0B / 28B / 19B |
3 | primo | 48 | 0.0288 | 2012/01/20 08:51:08 | 0B / 35B / 13B |
4 | teebee | 48 | 0.0291 | 2012/01/20 09:31:43 | 0B / 35B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kaki | 65 | 0.0262 | 2012/01/20 11:40:59 | 0B / 45B / 19B |
2 | dico_leque | 65 | 0.0322 | 2012/01/22 02:05:54 | 0B / 42B / 22B |
3 | kaki | 63 | 0.0315 | 2012/04/28 06:45:33 | 0B / 45B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 70 | 0.0892 | 2012/01/22 01:59:18 | 0B / 54B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hakusui | 56 | 0.1015 | 2012/01/20 08:25:55 | 0B / 35B / 21B |
2 | nn | 56 | 0.0298 | 2012/01/20 08:58:11 | 0B / 35B / 21B |
3 | kaki | 56 | 0.0204 | 2012/01/20 12:12:46 | 0B / 34B / 22B |
4 | 0mg | 56 | 0.0262 | 2012/01/20 19:47:58 | 0B / 34B / 22B |
5 | clock | 56 | 0.0191 | 2012/01/22 13:48:21 | 0B / 35B / 21B |
6 | Hendrik | 57 | 0.0207 | 2012/01/22 07:56:45 | 0B / 38B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Hendrik | 43 | 0.0149 | 2012/01/22 04:53:58 | 0B / 27B / 16B |
2 | twobit | 43 | 0.0144 | 2012/01/22 05:01:42 | 0B / 27B / 16B |
3 | pooq | 43 | 0.0145 | 2012/01/22 05:47:42 | 0B / 27B / 16B |
4 | teebee | 46 | 0.0149 | 2012/01/20 12:19:46 | 0B / 27B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 59 | 0.0217 | 2012/01/20 17:29:46 | 0B / 35B / 23B |
2 | pooq | 59 | 0.2119 | 2012/01/22 02:58:44 | 0B / 35B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 68 | 0.0181 | 2012/04/02 22:10:13 | 0B / 47B / 18B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 38 | 0.0109 | 2012/04/14 06:48:21 | 0B / 27B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 59 | 0.0716 | 2012/01/22 02:01:40 | 0B / 38B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | I., S. | 25 | 0.0289 | 2012/01/20 22:13:21 | 0B / 15B / 10B |
2 | pooq | 25 | 0.0337 | 2012/01/22 00:55:32 | 0B / 15B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | inaniwa | 53 | 0.0129 | 2012/01/20 16:42:00 | 0B / 32B / 21B |
2 | nn | 54 | 0.0147 | 2012/01/20 23:53:25 | 0B / 31B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rst76 | 48 | 0.0145 | 2012/01/22 05:47:21 | 0B / 34B / 12B |
2 | Hendrik | 48 | 0.0133 | 2012/01/22 06:36:07 | 0B / 34B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 117 | 0.1031 | 2012/01/21 04:34:23 | 0B / 68B / 45B |
2 | hakusui | 118 | 0.1114 | 2012/01/21 00:54:03 | 0B / 68B / 46B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | *yuko* | 80 | 0.0421 | 2012/01/21 09:41:26 | 0B / 52B / 25B |
2 | *yuko* | 77 | 0.0134 | 2012/11/19 20:02:03 | 0B / 49B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 78 | 0.2430 | 2012/01/22 05:48:21 | 0B / 48B / 29B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 26 | 0.0138 | 2012/01/20 10:15:35 | 0B / 16B / 10B |
2 | twobit | 26 | 0.0126 | 2012/01/20 10:32:43 | 0B / 16B / 10B |
3 | eban | 26 | 0.0157 | 2012/01/20 10:48:04 | 0B / 15B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hakusui | 15 | 0.0166 | 2012/01/20 07:56:03 | 0B / 12B / 3B |
2 | nn | 15 | 0.0148 | 2012/01/20 08:31:59 | 0B / 12B / 3B |
3 | inaniwa | 15 | 0.0146 | 2012/01/20 09:07:09 | 0B / 12B / 3B |
4 | teebee | 15 | 0.0192 | 2012/01/20 09:25:44 | 0B / 12B / 3B |
5 | clock | 15 | 0.0137 | 2012/01/20 09:25:58 | 0B / 12B / 3B |
6 | eban | 15 | 0.0132 | 2012/01/20 10:34:45 | 0B / 12B / 3B |
7 | kaki | 15 | 0.0135 | 2012/01/20 11:09:19 | 0B / 12B / 3B |
8 | lvogel | 15 | 0.0141 | 2012/01/20 22:19:17 | 0B / 15B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 23 | 0.0107 | 2019/08/07 19:55:46 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | clock | 29 | 0.0846 | 2012/01/20 09:53:37 | 0B / 12B / 16B |
2 | teebee | 29 | 0.0149 | 2012/01/20 10:33:31 | 0B / 12B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 59 | 0.4779 | 2012/01/22 21:44:40 | 0B / 39B / 20B |
2 | pooq(teebee) | 55 | 0.3862 | 2012/01/23 07:44:29 | 0B / 34B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | twobit | 15 | 0.0274 | 2012/01/20 10:13:33 | 0B / 9B / 6B |
2 | clock | 15 | 0.0244 | 2012/01/20 10:18:57 | 0B / 9B / 6B |
3 | tails | 15 | 0.0538 | 2012/01/20 13:57:12 | 0B / 9B / 6B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 11 | 0.0279 | 2012/01/20 14:56:32 | 3B / 8B / 0B |
2 | clock | 11 | 0.0863 | 2012/01/23 00:17:23 | 2B / 7B / 2B |
3 | twobit | 12 | 0.0275 | 2012/01/20 09:30:20 | 1B / 11B / 0B |
4 | eban | 12 | 0.0297 | 2012/01/20 11:09:34 | 1B / 11B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | kaki | 26 | 0.0438 | 2012/01/20 15:22:12 | 0B / 15B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 44 | 1.2584 | 2012/01/20 09:07:34 | 0B / 30B / 13B |
2 | hakusui | 53 | 1.3779 | 2012/01/20 07:59:09 | 0B / 36B / 17B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Vim | nn | 11 | 10000 |
2 | sed | hakusui | 15 | 7333 |
3 | GolfScript | twobit | 15 | 7333 |
4 | Bash | lvogel | 19 | 5789 |
5 | Zsh | lvogel | 19 | 5789 |
6 | Fish | lvogel | 19 | 5789 |
7 | z80 | *yuko* | 22 | 5000 |
8 | jq | pooq | 23 | 4782 |
9 | J | I., S. | 25 | 4400 |
10 | AWK | teebee | 26 | 4230 |
11 | goruby | kaki | 26 | 4230 |
12 | Ruby | eban | 27 | 4074 |
13 | Perl | teebee | 29 | 3793 |
14 | wake | clock | 29 | 3793 |
15 | REXX | pooq | 38 | 2894 |
16 | Logo | teebee | 43 | 2558 |
17 | Lua | Hendrik | 43 | 2558 |
18 | Groovy | nn | 44 | 2500 |
19 | Asymptote | teebee | 47 | 2340 |
20 | PHP | o-cn | 47 | 2340 |
21 | Brainfuck | hakusui | 48 | 2291 |
22 | Haskell | rst76 | 48 | 2291 |
23 | C | inaniwa | 53 | 2075 |
24 | Python | leonid | 54 | 2037 |
25 | R | pooq(teebee) | 55 | 2000 |
26 | JavaScript | hakusui | 56 | 1964 |
27 | Xtal | teebee | 59 | 1864 |
28 | BASIC | pooq | 59 | 1864 |
29 | Scheme | kaki | 63 | 1746 |
30 | Kite | teebee | 66 | 1666 |
31 | Icon | pooq | 68 | 1617 |
32 | Io | pooq | 70 | 1571 |
33 | Fortran | *yuko* | 77 | 1428 |
34 | Maxima | pooq | 78 | 1410 |
35 | Pascal | *yuko* | 96 | 1145 |
36 | Java | teebee | 117 | 940 |
return to the top page