Last active
January 23, 2016 18:04
-
-
Save vihanb/1d99599b50c82d4a6d7f to your computer and use it in GitHub Desktop.
Header Parsing Challenge Test Cases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pyth - <h2>Pyth, <s>40</s> <s>36</s> <s>34</s> 32 bytes</h2> | |
Ruby - <h2>Ruby (2.2.2p95), 124 bytes</h2> | |
TeaScript - <h1><a href="https://esolangs.org/wiki/TeaScript" rel="nofollow">TeaScript</a>, 16 bytes</h1> | |
Bash - <h1>Bash</h1> | |
Jelly - <h1>Jelly, 29 bytes</h1> | |
Pyth - <h2>Pyth, 17 bytes</h2> | |
JavaScript - <h1>JavaScript, 131238 - 10 = 131228 bytes</h1> | |
Vitsy - <h1>Vitsy, 40 bytes</h1> | |
Java - <h2>Java, 81 bytes</h2> | |
Brainf*ck - <h1>Brainf*ck, <s>489</s> 466 characters</h1> | |
C# - <h2>C# - 158</h2> | |
MATL - <h1><a href="https://esolangs.org/wiki/MATL" rel="nofollow">MATL</a>, 48 bytes</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6), 70</h1> | |
PlatyPar - <h1><a href="https://github.com/cyoce/PlatyPar" rel="nofollow">PlatyPar</a>, 7 bytes</h1> | |
Ruby - <h1>Ruby, 263 - 30% = 184 bytes</h1> | |
MATL - <h1><a href="https://esolangs.org/wiki/MATL" rel="nofollow">MATL</a>, 9 <s>14</s> bytes</h1> | |
F# - <h2>F#, <s>364</s> 288 bytes</h2> | |
Seriously - <h2>Seriously, 14 bytes</h2> | |
Detour - <h1><a href="https://rawgit.com/cyoce/detour/master/interp.html" rel="nofollow">Detour</a>, <s>17</s> <s>13</s> 11 bytes</h1> | |
Detour - <h1><a href="https://rawgit.com/cyoce/detour/master/interp.html" rel="nofollow">Detour</a>, <s>10</s> 9 bytes</h1> | |
Python 3 - <h1>Python 3, 138</h1> | |
Seriously - <h2>Seriously, 54 bytes</h2> | |
Japt - <h1>Japt, <s>55</s> <s>49</s> 41 bytes</h1> | |
CJam - <h2>CJam, <s>31</s> 30 bytes</h2> | |
Octave - <h1>Octave, <s>111</s> 110 bytes</h1> | |
Python 2 - <h1>Python 2, example implementation</h1> | |
F# - <h2>F#, 33 bytes</h2> | |
Jolf - <h1>Jolf, 37 bytes, noncompeting</h1> | |
Scala - <h2>Scala, score: 62</h2> | |
Python 2 - <h1>Python 2, <s>378</s> 365 Bytes</h1> | |
Japt - <h1>Japt, <s>62</s> <s>60</s> <s>55</s> <s>52</s> 51 bytes</h1> | |
Japt - <h1>Japt, <s>28</s> 25</h1> | |
Pyth - <h2>Pyth, <strike>93</strike> 85 bytes</h2> | |
Python 3 - <h1>Python 3, <s>48</s> 45 bytes</h1> | |
Pike - <h1><a href="http://pike.lysator.liu.se" rel="nofollow">Pike</a>, 94 bytes</h1> | |
Python - <h1>Python, <s>212</s> 201 bytes</h1> | |
Python 2 - <h1>Python 2, 211 bytes</h1> | |
Python 2 - <h1>Python 2, <s>157</s> 132 bytes</h1> | |
beeswax - <h1><a href="http://rosettacode.org/wiki/Category:Beeswax" rel="nofollow">beeswax</a>, 31 bytes</h1> | |
Java (1.8) - <h3>Java (1.8) - Boqkel'fovru (<s>486 477 465 452 402 396 391 358</s> 354 bytes)</h3> | |
Falcon - <h1><a href="http://falconpl.org" rel="nofollow">Falcon</a>, 16 bytes</h1> | |
Pike - <h1><a href="http://pike.lysator.liu.se/" rel="nofollow">Pike</a>, 35 bytes</h1> | |
Python 3 - <h1>Python <s>2</s> 3, <s>255</s> <s>204</s> <s>180</s> 178 bytes</h1> | |
CoffeeScript - <h1>CoffeeScript, 144 bytes</h1> | |
Python 2 - <h1>Python 2, <s>235</s> <s>193</s> 167 Bytes</h1> | |
Rust - <h1>Rust, 79</h1> | |
Ti-Basic 84 - <h2>Ti-Basic 84, 10 bytes</h2> | |
Lua - <h1>Lua, 87 Bytes</h1> | |
Ruby - <h1>Ruby, <s>129</s> <s>126</s> <s>127</s> 126 characters</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6), <s>213</s> 208 bytes</h1> | |
R - <h1>R - 81 bytes and 117 bytes</h1> | |
Mathematica - <h2>Mathematica, <s>36</s> 33 bytes</h2> | |
Python 2.7 - <h1>Python 2.7, 282 bytes</h1> | |
Python - <h1>Python, 109 bytes</h1> | |
ES6 - <h2>ES6, <s>178</s> 172 bytes</h2> | |
Retina - <h2><a href="https://github.com/mbuettner/retina" rel="nofollow">Retina</a>, <s>102</s> 85 bytes</h2> | |
JavaScript (ES7) - <h2>JavaScript (ES7), 114 bytes</h2> | |
Ruby - <h1>Ruby, 99</h1> | |
PHP - <h1>PHP, <s>144</s> <s>130</s> <s>127</s> <s>122</s> <s>121</s> <s>120</s> 119 Bytes</h1> | |
Octave - <h2>Octave, 96 bytes</h2> | |
Java - <h1>Java, <s>131</s> <s>122</s> 110 bytes</h1> | |
Seriously - <h2><a href="https://github.com/Mego/Seriously" rel="nofollow">Seriously</a>, <s>4</s> 3 bytes</h2> | |
Java - <h1>Java, 219 Bytes</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6), 142 <s>146 147</s></h1> | |
C - <h1>C, 259 bytes</h1> | |
Haskell - <h1>Haskell, <s>119</s> 104 bytes</h1> | |
Jelly - <h1><a href="http://github.com/DennisMitchell/jelly" rel="nofollow">Jelly</a>, non-competing</h1> | |
Seriously - <h2>Seriously, 32 bytes</h2> | |
Dyalog APL - <h2>Dyalog APL, 18 bytes</h2> | |
Python 3 - <h2>Python 3, <s>279</s> <s>278</s> <s>272</s> 173 bytes</h2> | |
CJam - <h1>CJam</h1> | |
Ruby - <h1>Ruby (2.2.2p95), 277 <s>295 306 331 364</s></h1> | |
Julia - <h1>Julia, <s>22</s> 20 bytes</h1> | |
MATL - <h1><a href="https://esolangs.org/wiki/MATL">MATL</a>, 53 bytes</h1> | |
R - <h1>R <s>36</s> 34 bytes</h1> | |
Pyth - <h2>Pyth, <s>53</s> <s>48</s> 47 bytes</h2> | |
Lua - <h1>Lua, 80 bytes</h1> | |
Retina - <h1>Retina</h1> | |
PHP - <h2>PHP, 230 bytes</h2> | |
Python - <h1><strong>Python - <strike>525</strike> <strike>491</strike> <strike>478</strike> 430 bytes</strong></h1> | |
Python - <h1>Python, 278 characters</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6), 149 bytes</h1> | |
Python 2 - <h2>Python 2, 107 bytes</h2> | |
JavaScript (ES6) - <h1>JavaScript (ES6), 189 bytes:</h1> | |
JavaScript ES6 - <h2>JavaScript ES6, 157 bytes</h2> | |
Perl - <h2>Perl, 248 bytes</h2> | |
Pyth - <h1>Pyth, 38 bytes</h1> | |
PowerShell v2+ - <h2>PowerShell v2+, <s>177</s> <s>231</s> 168 bytes</h2> | |
05AB1E - <h1><a href="https://github.com/Adriandmen/05AB1E" rel="nofollow">05AB1E</a>, 6 bytes</h1> | |
Retina - <h1>Retina, 46 bytes</h1> | |
CJam - <h1>CJam, <s>33</s> 26 bytes</h1> | |
Retina - <h2><a href="https://github.com/mbuettner/retina/" rel="nofollow">Retina</a>, Colopee'pokri, <s>165</s> <s>157</s> <s>143</s> <s>127</s> 123 bytes</h2> | |
Pyth - <h2>Pyth, 117 bytes (Kricola'popo)</h2> | |
Groovy - <h1>Groovy 45</h1> | |
JavaScript - <h1>JavaScript, 220 bytes.</h1> | |
Groovy - <h1>Groovy 45</h1> | |
JavaScript - <h1>JavaScript, 220 bytes.</h1> | |
Detour - <h1><a href="http://rawgit.com/cyoce/detour/master/interp.html" rel="nofollow">Detour</a>, 2 bytes</h1> | |
JavaScript ES6 - <h1>JavaScript ES6, 75 bytes</h1> | |
Tcl - <h2>Tcl</h2> | |
Python 2 - <h2>Python 2</h2> | |
Java - <h1>Java, <s>99.04</s> <s>98.46</s> 97.66 lcs() calls</h1> | |
CJam - <h2>CJam, <s>40</s> 39 bytes</h2> | |
Retina - <h2>Retina, <s>82</s> <s>81</s> <s>77</s> <s>74</s> <s>68</s> 67 bytes</h2> | |
Pyth - <h2>Pyth, <strike>18</strike> <strike>16</strike> 10 bytes</h2> | |
Pyth - <h1>Pyth, <s>30</s> 28 bytes</h1> | |
JavaScript ES6 - <h1>JavaScript ES6, 54 bytes</h1> | |
Powershell - <h2>Powershell - <s>172</s> <s>166</s> 193 bytes</h2> | |
sed - <h3>sed, <s>136</s> 128 bytes</h3> | |
JavaScript (ES6) - <h1>JavaScript (ES6), <s>256</s> <s>244</s> <s>208</s> 187 bytes</h1> | |
Japt - <h1>Japt, <s>90</s> <s>87</s> 86 bytes</h1> | |
Mathematica - <h1>Mathematica, 80 bytes</h1> | |
MATL - <h1><a href="https://esolangs.org/wiki/MATL" rel="nofollow">MATL</a>, 37 <s>40</s> bytes</h1> | |
Mathematica - <h1>Mathematica, <s>30</s> <s>24</s> 22 bytes</h1> | |
R - <h1>R 29 bytes</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6), <s>108</s> <s>107</s> 106 bytes</h1> | |
Matlab - <h1>Matlab, 15</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6) 184 <s>187 195</s></h1> | |
Java - <h1>Java, <del>183</del> 182 Bytes</h1> | |
Python 3 - <h1>Python 3, <s>101</s> 106 bytes</h1> | |
C - <h2>C, 26 byte source, 2,139,103,367 byte output, valid program</h2> | |
Windows Calculator - <h1>Windows Calculator - 5 characters</h1> | |
PlatyPar - <h1><a href="https://github.com/cyoce/PlatyPar" rel="nofollow">PlatyPar</a>, 4 bytes</h1> | |
Perl - <h1>Perl 5 <s>228 205 186 184 178 177 153 150 149 142</s> 137 (136+1 for -E)</h1> | |
TI-BASIC - <h1>TI-BASIC, <s>59</s> <s>57</s> <s>50</s> <s>37</s> 36 bytes</h1> | |
πΌππππ - <h1>πΌππππ, 12 chars / 22 bytes</h1> | |
Haskell - <h2>Haskell, 29 bytes</h2> | |
Python - <h1>Python, <s>97</s> 95 bytes</h1> | |
JavaScript (ES6) - <h1>JavaScript (ES6), 354 bytes (231 characters)</h1> | |
A-Ray - <h2><a href="https://github.com/mannymang/A-Ray" rel="nofollow">A-Ray</a>, <s>9</s> 7 bytes</h2> | |
Python 3 - <h1>Python 3, <s>187</s> <s>180</s> <s>173</s> 154 bytes</h1> | |
MATLAB - <h1>MATLAB, 167 bytes/characters:</h1> | |
TrumpScript - <h1><a href="http://samshadwell.github.io/TrumpScript/" rel="nofollow">TrumpScript</a>, 37 bytes</h1> | |
Pure Bash - <h1>Pure Bash, 7</h1> | |
Ruby - <h1>Ruby, <s>69</s> 65</h1> | |
C - <h1>C, (14 + 15) = 29 byte source, 17,179,875,837 (16 GB) byte executable</h1> | |
R - <h1>R - 39</h1> | |
C - <h1>C, 123 bytes</h1> | |
Japt - <h1>Japt, 38 bytes</h1> | |
Acc!! - <h2><a href="http://codegolf.stackexchange.com/a/62493/16766">Acc!!</a>, 122 bytes</h2> | |
bc - <h1>bc, 75 bytes</h1> | |
PHP - <h1>PHP <strike>405</strike> 325</h1> | |
PHP - <h1>PHP β 3302 bytes</h1> | |
JavaScript - <p><strong>JavaScript, <s>266</s> <s>263</s> 244 bytes</strong></p> | |
AWK - <p><strong>AWK - 140 bytes</strong></p> | |
Retina - <h1><a href="https://github.com/mbuettner/retina" rel="nofollow">Retina</a>, 50 bytes, <s>71.8%</s> 72.15%</h1> | |
PowerShell - <h2>PowerShell, 40 Bytes</h2> | |
Ruby - <h1>Ruby, 85 characters</h1> | |
brainfuck - <h1>brainfuck, 52 bytes</h1> | |
Retina - <h2><a href="https://github.com/mbuettner/retina">Retina</a>, 44 bytes</h2> | |
Python 2 - <h1>Python 2, <s>154</s> 147 bytes</h1> | |
Haskell - <h1>Haskell, <s>111</s> 109 bytes</h1> | |
CJam - <h2>CJam, 10 bytes</h2> | |
JavaScript ES6 - <h1>JavaScript ES6, 36 bytes</h1> | |
Japt - <h1>Japt, 13 bytes</h1> | |
Haskell - <h2>Haskell, <s>160</s> 157 bytes</h2> | |
Python 3 - <h1>Python 3, 39 bytes.</h1> | |
Ruby - <h1>Ruby, 35 bytes</h1> | |
Pyth - <h1>Pyth, <s>46</s> <s>44</s> <s>43</s> <s>42</s> <s>39</s> 35 bytes</h1> | |
MATL - <h1><a href="https://esolangs.org/wiki/MATL" rel="nofollow">MATL</a>, 48 <s>49<s> <s>50</s> 53</s> 56</s> bytes</h1> | |
Python 2 - <h2>Python 2 & PuLP β 2,644,688 squares (optimally minimized); 10,753,553 squares (optimally maximized)</h2> | |
OCaml - <h1>OCaml, 1588 (n = 36)</h1> | |
Python 2 - <b>Python 2</b> | |
Help, WarDoq! - <h1><a href="http://esolangs.org/wiki/Help,_WarDoq%21">Help, WarDoq!</a>, 1 byte</h1> | |
JavaScript - <h1>JavaScript 2688!!</h1> | |
Haskell - <h1>Haskell (50 characters)</h1> | |
HTML + CSS - <h1>HTML + CSS <del>118</del> <del>78</del> <del>77</del> 75 characters</h1> | |
Python 2 - <h1>Python 2 (29)</h1> | |
HQ9+ - <strong>HQ9+ (1 character)</strong> | |
Cross-browser JavaScript - <h2>Cross-browser JavaScript (41 characters)</h2> | |
PHP - <h2>PHP - 54 characters (no cheating)</h2> | |
Fish - <h1><a href="http://esolangs.org/wiki/Fish">Fish</a> - 8 chars</h1> | |
Clojure - <strong>Clojure - 1 char (cheating!) or 91 chars</strong> | |
(ucb)logo - <h2>(ucb)logo - 28 chars</h2> | |
Erlang escript - <h2>Erlang escript <strike>225</strike> <strike>164</strike> 140</h2> | |
Ti-Basic 84 - <h2>Ti-Basic 84, 1</h2> | |
Chicken - <h2><a href="http://esolangs.org/wiki/Chicken">Chicken</a>, 7</h2> | |
cat - <h1>cat, 0 - β characters</h1> | |
Zozotez Lisp - <h1><a href="http://sylwester.no/zozotez/" rel="nofollow">Zozotez Lisp</a>: 73</h1> | |
J - <h1>J - 20 (16?) char</h1> | |
Raw .exe - <strong>Raw .exe, 247 bytes</strong> | |
QuinePig - <h1><a href="https://esolangs.org/wiki/QuinePig" rel="nofollow">QuinePig</a>, 3 Bytes (made after the challenge)</h1> | |
ΰ² _ΰ² - <h1><a href="http://meta.codegolf.stackexchange.com/a/7390/41247">ΰ² _ΰ² </a>,</h1> | |
JavaScript - <strong>JavaScript (291 characters):</strong> | |
Haskell - <h2>Haskell, <strike>272</strike>, <strike>250</strike>, 243 characters</h2> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment