Quixey Challenge

Submit

Your name:
File:
Open code-statistics:

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

Ruby _

RankUserSizeTimeDateStatistics
1eban270.01602012/01/20 11:03:321B / 12B / 12B
2kaki270.02842012/01/20 11:19:111B / 16B / 10B
3leonid270.01572012/01/20 23:08:081B / 16B / 9B
4clock340.02232012/01/20 09:51:070B / 21B / 11B
5might be US only (sorry!)580.04012012/01/20 03:39:330B / 44B / 12B

Perl _

RankUserSizeTimeDateStatistics
1teebee290.05402012/01/20 09:24:010B / 17B / 10B
2tails290.01862012/01/20 13:29:270B / 17B / 10B
3eban290.02112012/01/20 15:34:330B / 17B / 10B
4nai290.01762012/01/20 15:50:270B / 17B / 10B
5Hem290.02062012/01/21 19:58:080B / 17B / 10B
6twobit300.01742012/01/20 09:44:530B / 17B / 11B
7teebee(alnum)470.01592012/02/12 12:28:380B / 40B / 0B
8jonathan camacho470.01082014/09/03 06:15:120B / 32B / 13B

Python _

RankUserSizeTimeDateStatistics
1leonid540.02472012/01/20 23:19:490B / 35B / 15B
2twobit540.19542012/01/21 23:49:400B / 35B / 17B
3Hendrik540.07972012/01/22 01:15:060B / 35B / 15B
4hallvabo560.02352012/01/20 19:04:240B / 30B / 25B
5teebee570.02892012/01/20 12:58:510B / 37B / 19B
6recursive620.40992012/01/20 01:49:300B / 46B / 14B

PHP _

RankUserSizeTimeDateStatistics
1o-cn470.03192012/01/20 19:18:380B / 28B / 19B
2clock470.03022012/01/22 13:42:030B / 28B / 19B
3primo480.02882012/01/20 08:51:080B / 35B / 13B
4teebee480.02912012/01/20 09:31:430B / 35B / 13B

Scheme _

RankUserSizeTimeDateStatistics
1kaki650.02622012/01/20 11:40:590B / 45B / 19B
2dico_leque650.03222012/01/22 02:05:540B / 42B / 22B
3kaki630.03152012/04/28 06:45:330B / 45B / 18B

Io _

RankUserSizeTimeDateStatistics
1pooq700.08922012/01/22 01:59:180B / 54B / 13B

JavaScript _

RankUserSizeTimeDateStatistics
1hakusui560.10152012/01/20 08:25:550B / 35B / 21B
2nn560.02982012/01/20 08:58:110B / 35B / 21B
3kaki560.02042012/01/20 12:12:460B / 34B / 22B
40mg560.02622012/01/20 19:47:580B / 34B / 22B
5clock560.01912012/01/22 13:48:210B / 35B / 21B
6Hendrik570.02072012/01/22 07:56:450B / 38B / 19B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik430.01492012/01/22 04:53:580B / 27B / 16B
2twobit430.01442012/01/22 05:01:420B / 27B / 16B
3pooq430.01452012/01/22 05:47:420B / 27B / 16B
4teebee460.01492012/01/20 12:19:460B / 27B / 18B

Xtal _

RankUserSizeTimeDateStatistics
1teebee590.02172012/01/20 17:29:460B / 35B / 23B
2pooq590.21192012/01/22 02:58:440B / 35B / 23B

Kite _

RankUserSizeTimeDateStatistics
1teebee660.65802012/01/20 11:11:040B / 45B / 21B

Icon _

RankUserSizeTimeDateStatistics
1pooq680.01812012/04/02 22:10:130B / 47B / 18B

REXX _

RankUserSizeTimeDateStatistics
1pooq380.01092012/04/14 06:48:210B / 27B / 10B

BASIC _

RankUserSizeTimeDateStatistics
1pooq590.07162012/01/22 02:01:400B / 38B / 15B

J _

RankUserSizeTimeDateStatistics
1I., S.250.02892012/01/20 22:13:210B / 15B / 10B
2pooq250.03372012/01/22 00:55:320B / 15B / 10B

C _

RankUserSizeTimeDateStatistics
1inaniwa530.01292012/01/20 16:42:000B / 32B / 21B
2nn540.01472012/01/20 23:53:250B / 31B / 23B

Haskell _

RankUserSizeTimeDateStatistics
1rst76480.01452012/01/22 05:47:210B / 34B / 12B
2Hendrik480.01332012/01/22 06:36:070B / 34B / 12B

Java _

RankUserSizeTimeDateStatistics
1teebee1170.10312012/01/21 04:34:230B / 68B / 45B
2hakusui1180.11142012/01/21 00:54:030B / 68B / 46B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*960.01382012/01/21 09:21:100B / 65B / 26B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*800.04212012/01/21 09:41:260B / 52B / 25B
2*yuko*770.01342012/11/19 20:02:030B / 49B / 26B

Maxima _

RankUserSizeTimeDateStatistics
1pooq780.24302012/01/22 05:48:210B / 48B / 29B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee470.13522012/01/20 11:33:000B / 30B / 17B

AWK _

RankUserSizeTimeDateStatistics
1teebee260.01382012/01/20 10:15:350B / 16B / 10B
2twobit260.01262012/01/20 10:32:430B / 16B / 10B
3eban260.01572012/01/20 10:48:040B / 15B / 11B

sed _

RankUserSizeTimeDateStatistics
1hakusui150.01662012/01/20 07:56:030B / 12B / 3B
2nn150.01482012/01/20 08:31:590B / 12B / 3B
3inaniwa150.01462012/01/20 09:07:090B / 12B / 3B
4teebee150.01922012/01/20 09:25:440B / 12B / 3B
5clock150.01372012/01/20 09:25:580B / 12B / 3B
6eban150.01322012/01/20 10:34:450B / 12B / 3B
7kaki150.01352012/01/20 11:09:190B / 12B / 3B
8lvogel150.01412012/01/20 22:19:170B / 15B / 0B

Bash _

RankUserSizeTimeDateStatistics
1lvogel190.01972012/01/20 22:22:230B / 15B / 3B

Zsh _

RankUserSizeTimeDateStatistics
1lvogel190.17752012/01/20 22:22:360B / 15B / 3B

Fish _

RankUserSizeTimeDateStatistics
1lvogel190.28652012/01/20 22:22:490B / 15B / 3B

wake _

RankUserSizeTimeDateStatistics
1clock290.08462012/01/20 09:53:370B / 12B / 16B
2teebee290.01492012/01/20 10:33:310B / 12B / 16B

R _

RankUserSizeTimeDateStatistics
1pooq590.47792012/01/22 21:44:400B / 39B / 20B
2pooq(teebee)550.38622012/01/23 07:44:290B / 34B / 21B

Brainfuck _

RankUserSizeTimeDateStatistics
1hakusui480.01332012/01/21 00:34:470B / 0B / 48B

GolfScript _

RankUserSizeTimeDateStatistics
1twobit150.02742012/01/20 10:13:330B / 9B / 6B
2clock150.02442012/01/20 10:18:570B / 9B / 6B
3tails150.05382012/01/20 13:57:120B / 9B / 6B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*220.01402012/01/21 08:10:1416B / 4B / 2B

Vim _

RankUserSizeTimeDateStatistics
1nn110.02792012/01/20 14:56:323B / 8B / 0B
2clock110.08632012/01/23 00:17:232B / 7B / 2B
3twobit120.02752012/01/20 09:30:201B / 11B / 0B
4eban120.02972012/01/20 11:09:341B / 11B / 0B

goruby _

RankUserSizeTimeDateStatistics
1kaki260.04382012/01/20 15:22:120B / 15B / 11B

Groovy _

RankUserSizeTimeDateStatistics
1nn441.25842012/01/20 09:07:340B / 30B / 13B
2hakusui531.37792012/01/20 07:59:090B / 36B / 17B

Logo _

RankUserSizeTimeDateStatistics
1teebee430.01432012/01/20 12:37:160B / 30B / 6B

Language Ranking_

RankLangUserSizeScore
1Vimnn1110000
2sedhakusui157333
3GolfScripttwobit157333
4Bashlvogel195789
5Zshlvogel195789
6Fishlvogel195789
7z80*yuko*225000
8JI., S.254400
9AWKteebee264230
10gorubykaki264230
11Rubyeban274074
12Perlteebee293793
13wakeclock293793
14REXXpooq382894
15Logoteebee432558
16LuaHendrik432558
17Groovynn442500
18Asymptoteteebee472340
19PHPo-cn472340
20Brainfuckhakusui482291
21Haskellrst76482291
22Cinaniwa532075
23Pythonleonid542037
24Rpooq(teebee)552000
25JavaScripthakusui561964
26Xtalteebee591864
27BASICpooq591864
28Schemekaki631746
29Kiteteebee661666
30Iconpooq681617
31Iopooq701571
32Fortran*yuko*771428
33Maximapooq781410
34Pascal*yuko*961145
35Javateebee117940

return top