Hey Guest, Welcome to the Coding Area

The Coding Area is a place where you can take what you've learned about programming and apply it to real problems. Take as many challenges as you want, each time trying to improve your score. Practice programming, chat with coders, write your own challenges, get ranked, and win prizes here!

Programming Challenges

The rules for challenges are fairly simple. You are given a score out of 10 based on correctness and timing. You are timed when writing code and then your code is tested against a set of test cases. Click here to learn more about the challenges.

Guest Challenge 1

Guest Challenge 2

Guest Challenge 3

  • Welcome to Coderbyte!

    (3:59 PM) cod3r: hoal
    (3:59 PM) cod3r: dssd
    (4:08 PM) cod3r: that last challenge was kind of hard
    (4:10 PM) kittycoder: hola everyeone
    (4:10 PM) kittycoder: this website is working well so far
    (8:42 PM) flim1: yoyoy
    (9:25 PM) flim1: ;;
    (9:25 PM) flim1: gangsta
    (1:42 AM) moosemen: nice challlenges so far
    (3:07 AM) jumpsuitman: testing here
    (3:07 AM) jumpsuitman: everythings fine i believe
    (3:07 AM) jumpsuitman: blue nice
    (7:58 PM) moosemen: last place :{
    (10:13 PM) leetcod3r: damn, longest word is kind of hard with JS
    (1:11 PM) leetcod3r: welcome everyone
    (1:40 AM) Monkeymonkey: Interesting concept.
    (1:40 AM) Monkeymonkey: I like how it is all in the browser.
    (1:41 AM) Monkeymonkey: But there are lots of things that are somewhat flaky, and many of the problems are underspecified.
    (7:55 AM) cedric: SimpleSymbols and CheckNums are very buggy, and the "Submit Code" requets is in timeout
    (8:39 AM) Monkeymonkey: Was CheckNums the one sent the numeric input as a string?
    (8:39 AM) Monkeymonkey: I recall one of them num+1 did not do what was expected.
    (9:06 AM) roncli: Interesting concept. "Submit Code" needs a dialog so you don't submit accidentally.
    (9:33 AM) Monkeymonkey: Also, the submit code button runs your code once more. Completely harmless, but still a bit of a bugge.
    (9:39 AM) plowman: is there any way to see which test cases failed?
    (9:39 AM) Monkeymonkey: Not without digging, as far as I can see.
    (9:39 AM) Monkeymonkey: You also can't re-visit scenarios and try them again later.
    (9:40 AM) plowman: a shame, that longest word thing im just curious what testcases would have failed
    (9:41 AM) Monkeymonkey: Yeah, I got that with a couple.
    (9:41 AM) Monkeymonkey: You can usually figure it out if you think hard, but sometimes things are a bit weird.
    (9:41 AM) Monkeymonkey: Did you account for punctuation?
    (9:42 AM) plowman: yeah but I did do an interpretation where
    (9:42 AM) plowman: i would count apple;apple as one word for example
    (9:42 AM) plowman: i wasnt sure ignore meant count it as a word boundary or not
    (9:43 AM) plowman: if it was a word boundary then it was that :D
    (9:43 AM) Monkeymonkey: Then there's further interpretation, is cat-fish 7 letters or 8?
    (9:44 AM) plowman: yeah, do hyphens count as punctuation... mmm
    (9:44 AM) plowman: not sure, i assuem dnot
    (9:44 AM) plowman: but assumptions make a failure out of test cases. man, I kind of wish when writing code I had a little box that would let me test the method I was writing
    (9:44 AM) plowman: breaking out and doing unit tests is such a pain compared to somethign liek this
    (9:46 AM) mrdaniel: hmm guys im sorry about all of those points you mentioned.. ill be sure to fix the wording of the challenges and make things more clear
    (9:47 AM) mrdaniel: and thanks for submitting some written challenges guys
    (9:47 AM) mrdaniel: all the help is really appreciated :)
    (9:49 AM) Monkeymonkey: No need to apologise. We only mention it to try and help.
    (9:51 AM) Monkeymonkey: plowman, I often just switch over to my firefox or chrome window and write the method in the console
    (9:54 AM) plowman: yeah, was thinking of doing the same. was also curious if it was safe to use browser specific javascript
    (9:54 AM) Monkeymonkey: It runs on your browser.
    (9:54 AM) Monkeymonkey: but it's eval'd (and a lot of stuff stripped out)
    (9:55 AM) plowman: for the actual test submission too? or just the run code test
    (9:55 AM) Monkeymonkey: (including the function definition )
    (9:55 AM) Monkeymonkey: For the test, too.
    (9:56 AM) Monkeymonkey: If you're quick on the break button, or make an error that firebug will break on, you can even monkey with the test cases live.
    (9:56 AM) plowman: lol
    (9:57 AM) plowman: good call on the breakpoint, knew i could crash it with a loop
    (9:57 AM) plowman: but yeah break on error would work wouldnt it
    (10:01 AM) Monkeymonkey: mrdaniel, what exactly are we/should we be allowed to use in the test cases? I never tried to make a function before running out of challenges.
    (10:03 AM) mrdaniel: what do you mean use in the test cases?
    (10:03 AM) Monkeymonkey: which language features/key words are disabled when you do your codeMirror thing?
    (10:04 AM) mrdaniel: oh for JS certain keywords like document, window, location etc
    (10:04 AM) Monkeymonkey: ah, just the dom stuff?
    (10:05 AM) mrdaniel: yeah for now.. i suppose.. unless someone (or you) figures out some other things that should be blocked ha
    (10:05 AM) Monkeymonkey: ^_^
    (10:05 AM) Monkeymonkey: A little bit redundant when things like firebug and bookmarklets exist.
    (10:06 AM) Monkeymonkey: I mean, when you're running someone else's code it's all a good idea, but when the person you are trying to restrict is in control of the VM, there's not much you can do.
    (10:07 AM) mrdaniel: yeah i know, especially with JS =/
    (10:07 AM) Monkeymonkey: But it might be a good plan if you have some kind of 'share your answers' section become available after solving a challenge
    (10:07 AM) mrdaniel: yeah we'll have the answers and test cases posted after each answer very soon
    (10:08 AM) Monkeymonkey: As long as you keep the actual answers server side (which you appear to) I don't think it's all that important
    (10:08 AM) mrdaniel: yeah we just dont want any answer sharing =/
    (10:08 AM) mrdaniel: we dont want other coders knowing what the test cases are
    (10:09 AM) Monkeymonkey: That's an impossible task unless you do something like server side V8. Why not generate them dynamically?
    (10:09 AM) mrdaniel: yeah were working on that
    (10:09 AM) Monkeymonkey: The v8 or the dynamic?
    (10:09 AM) mrdaniel: were going to change the way test cases work
    (10:09 AM) mrdaniel: dynamic
    (10:10 AM) mrdaniel: we dont want people creating a new account.. after they learn what the test cases were and modify the code to fit those test cases
    (10:10 AM) Monkeymonkey: Indeed.
    (10:11 AM) mrdaniel: btw thanks a lot for the email, we appreciate all the help
    (10:11 AM) Monkeymonkey: You could just have user/admin review of each other's submitted test cases
    (10:12 AM) plowman: Ive only taken a couple tests, do they all come in the same format of accepting one string of input?
    (10:12 AM) Monkeymonkey: anyone found with if(input === "blah") {return "halb";} could be banned
    (10:12 AM) mrdaniel: yeah that's a good idea too
    (10:12 AM) Monkeymonkey: Probably a lot more effective than trying to hide the test cases
    (10:12 AM) mrdaniel: or could just get a proper email instead of being banned just yet :)
    (10:13 AM) Monkeymonkey: Also, showing the test cases after you get a certain threshold of right answers would be nice.
    (10:13 AM) Monkeymonkey: but that's somewhat counter to your goal :/
    (10:14 AM) Monkeymonkey: (although once you have code that passes 100% it's somewhat moot)
    (10:14 AM) mrdaniel: yeah we're definitely going to have the answers shown after you complete challenges now
    (10:14 AM) Monkeymonkey: Personally I'd like it if you could submit extra tries, and the answers only show if you get 100% of test cases correct.
    (10:15 AM) Monkeymonkey: (that way if you stumble on an almost-right way, you don't get spoilers)
    (10:15 AM) Monkeymonkey: of course, after the first submission, you don't get extra points
    (10:16 AM) Monkeymonkey: but some people may prefer the answers if they're 90% of the way there
    (10:38 AM) Monkeymonkey: What other languages are you planning on supporting?
    (10:38 AM) Monkeymonkey: coffeescript immediately springs to mind
    (10:38 AM) Monkeymonkey: there are also js implementations of python around
    (10:38 AM) Monkeymonkey: along with haskell, scheme and lisp
    (10:46 AM) Monkeymonkey: /me gasps
    (10:46 AM) Monkeymonkey: :D:D:D
    (10:46 AM) Monkeymonkey: http://forthfreak.net/jsforth80x25.html
    (10:46 AM) Monkeymonkey: Do eeeeeeet
    (11:08 AM) Monkeymonkey: Definitely need to add jQuery and $ (and your other globals) to that list of protected words. Even then,I can see ways around it.
    (11:10 AM) Monkeymonkey: Alternatively, you can just give up on restricting what the client can run (it's their computer after all, if they really want to run something, they will). Focus on making dynamic (server side) test generators.
    (11:12 AM) Monkeymonkey: If anyone's savvy enough to go extracting answers from the browser, they'll know how to solve most of the simple challenges, and you can make the hard ones too tedious to enumerate by having dynamic answers (or an answer tester that involves logic).
    (1:14 PM) plowman: ah that was my prblem
    (1:14 PM) plowman: having multiple returns , even if its valid
    (1:14 PM) plowman: seems to cause hiccuprs and false test results
    (1:51 PM) LukasNovotny: Awesome site, however it really needs monospace font in the editor :p
    (2:26 PM) download13: I really like the idea, but a lot of parts need polishing.
    (6:05 PM) Monkeymonkey: Whee, first tier 2.
    (6:06 PM) Monkeymonkey: And I completely forgot to include any optimizations at all.
    (6:07 PM) Monkeymonkey: Could have been a whole factor of a square root faster if I'd applied my brain before hitting submit. :(
    (6:26 PM) download13: Is there any way to see what test cases failed and why? I just did one, and can't figure out how the tests could have failed.
    (6:27 PM) mrdaniel: we're currently changing the results screen
    (6:28 PM) mrdaniel: to include test cases and better tools to analyze your code
    (7:16 PM) jclark: my request keeps timing out, it's very frustrating to have to rewrite my answer two extra times
    (7:25 PM) jclark: I can only submit an answer if I don't click 'run your code' first, otherwise 'request timed out'
    (7:26 PM) mrdaniel: which challenge is that for?
    (8:14 PM) Monkeymonkey: Feature Idea: A 'My Library' section, or similar. Where you can access your submitted solutions for other questions, as well as a section for stuff that you just want accessable.
    (8:15 PM) Monkeymonkey: Being able to bring it up to copy-paste while working on a challenge ould be sufficient, but automatically including the functions contained in another file would be a nice bonus.
    (8:29 PM) mrdaniel: we're actually working up something like that first idea Monkeymonkey.. calling it My library sounds pretty good though
    (8:29 PM) mrdaniel: a page where you could access all your challenges completed :)
    (8:45 PM) Monkeymonkey: Accessing them without leaving the current challenge would be nice.
    (8:46 PM) Monkeymonkey: That way you can reuse code easily.
    (8:48 PM) Monkeymonkey: Also being able to add stuff that isn't a challenge, so you can write something like a prime seive once and just copy it when you want it.
    (11:03 PM) Monkeymonkey: What were your plans for an interactive code tester? Is it possible to have the test run all the code submitted, and then repeatedly call a function and react to output?
    (1:45 AM) testtest321: Woo, something broke. I think it's the issue jclark had.
    (1:47 AM) Monkeymonkey: ^ that was me, just exploring the tier 1 challenges I couldn't access.
    (1:48 AM) Monkeymonkey: My program consisted of modifying the return line to :
    (1:48 AM) Monkeymonkey: return str.foo(blah).bar === str.foo(moo).bar
    (1:49 AM) Monkeymonkey: where foo and bar are functions that are part of the string and array prototype respectively
    (1:50 AM) Monkeymonkey: there was nothing else in the program, it ran fine on 'run my code' but broke completely after submitting.
    (1:50 AM) Monkeymonkey: Upon re-submitting it rand a blank program.
    (1:51 AM) Monkeymonkey: (actual functions censored to avoid spoilers)
    (1:51 AM) Monkeymonkey: Also, this: '(ie. if num = 4, return (4 * 3 * 2 * 1)). For the test cases, the range will be between 1 and 50'
    (1:51 AM) Monkeymonkey: 50! does not fit in a float.
    (1:53 AM) Monkeymonkey: The only possible way to return 50! in js would be a string, or array.
    (1:56 AM) Monkeymonkey: Otherwise it's 'the nearest floating point approximation to...'
    (1:59 AM) Monkeymonkey: Or just restrict the input to 18
    (4:34 AM) LukasNovotny: what other languages can we expect? I'd love to see lua :)
    (9:57 AM) crucialcoder: One of the test case examples given for the Alphabet Soup challenge doesn't seem correct.
    (9:59 AM) crucialcoder: not sure how to get back and look at it to be sure, but I believe it was saying that the result for "Coderbyte" should be "eebCdorty".
    (9:59 AM) crucialcoder: Shouldn't "b" come before the "ee"?
    (10:00 AM) crucialcoder: I lost on my time because I was trying to figure out the question and figure out what I was missing.
    (10:01 AM) crucialcoder: Maybe I was still missing something, but I just gave up. I ended up assuming that the example was wrong and submitting anyway. I got the 5 points for correctness.
    (11:15 AM) mrdaniel: Yeah sorry about that, the example was wrong and we fixed it
    (12:28 PM) mrdaniel: Check out the results page everyone :)
    (12:29 PM) mrdaniel: let us know if somethings glitchy
    (7:22 PM) jclark: Regarding my solution for AB Check, when I run it myself I get correct results, but 'Anaylze your code' returns incorrect results.
    (7:24 PM) jclark: I think it's running the wrong version of my solution, or else running it in a different way than the Chrome javascript console.
    (7:25 PM) jclark: By the way, I still frequently get 'request timed out', though I'm learning to cope by making heavy use of the clipboard.
    (7:25 PM) jclark: Furthermore, the Forums link at the top of the page does nothing for me,
    (7:30 PM) jclark: A final note, I think some of the descriptions of the challenges are misleading. For instance 'words will be separated by single spaces', suggests that spaces will only be used to separate words. I feel like there is some danger in trying to be too tricky with the challenge descriptions.
    (7:35 PM) jclark: Ugh, and my solution is correct for Prime Time, but it failed three test cases.
    (8:38 PM) macaecollege: I was excited to do some more of these until I kept getting the request tied out issue. And then when I go back to resubmit my solution, I can get it to pass every test, but the results say otherwise... kind of annoying.
    (6:38 AM) LukasNovotny: Workaround for request time out - refresh page, you will be asked whether you want to resubmit form, press yes and voila, it works :)
    (7:41 AM) adardesign: hi
    (8:05 AM) TheMeijeh: this site is silly
    (8:05 AM) TheMeijeh: 123546789 is not a word
    (12:30 PM) TheMeijeh: in time convert colon is misspelled as semicolon
    (4:39 PM) gruber76: Hahaha! Someone needs to work on their coding skills: "points: 50 Challenges Completed: 5 Average Score: 9.7" Lol.
    (4:48 PM) gruber76: Hah! Bug report: if you finish a challenge in less than a minute, it thinks you took 59 minutes and gives you zero points.
    (4:59 PM) leetcod3r: i hope you guys get some new languages soon :)
    (5:00 PM) leetcod3r: JS is pretty cool, but i'd prefer some languages like java or python
    (7:51 PM) jclark: May I also recommend (once you fix broken scoring) a way to retry a challenge without affecting your score.
    (9:04 PM) rhysbrettbowen: looks like most things in the site is buggy
    (9:22 PM) Monkeymonkey: Why still no love for anyone past 100pts? There's now 15 tier one challenges, so there'll be up to five challenges anyone on tier 2 can't see or do.
    (9:46 PM) mrdaniel: we'll have about 6 new tier 2 challenges up later tonight :)
    (9:59 PM) mrdaniel: sorry for the delay, we've really been working hard to get all of the annoying little bugs fixed in the scoring system
    (10:33 PM) Monkeymonkey: Being able to do the tier one challenges (without gaining points for it) would be nice.
    (10:35 PM) Monkeymonkey: Also, tier 1 should cap at 100 pts (if you're planning on keeping the cap) rather than capping when you pass 100 points (if someone got exactly 10 points for each of 10 challenges, they'd have 100 whereas someone who got 9 points for one and 10 points for 10 others would get 109)
    (7:09 AM) Monkeymonkey: :O 20 minutes to implement a order < n^2 prime seive is a little harsh.
    (7:09 AM) Monkeymonkey: Especially as the test cases didn't require it to be nearly that fast.
    (7:10 AM) Monkeymonkey: (Also having the code eval'd rather than run makes for a performance penalty that is hard to overcome) Increase the time a little, or change the description to say input will be between 1 and 10^3 or sommat.
    (11:35 AM) ericbock: It'd be nice to see another user's solution to a problem I've already submitted, similar to vimgolf.
    (12:50 PM) woolstar: The system seems to be stuck once I submit a solution.
    (12:51 PM) woolstar: It would also be nice to have a sandbox to try general code, where I could test what features don't work in your engine. (like multiple returns)
    (12:28 AM) Chips: hi, i think there's something wrong with the task 'Palindrome Two'. Gave me 0 points, my function worked at least for the examples and some more tests i did.
    (12:36 AM) mrdaniel: sorry about that, your code was correct so we corrected your points :)
    (12:45 AM) Chips: Thanks for your quick response and correction!
    (2:35 AM) Monkeymonkey: I think I just had the same issue as chips.
    (2:35 AM) Monkeymonkey: All my manual testing gets the right result, but it said I got 0 correct.
    (2:47 AM) Monkeymonkey: It would also be nice if we could submit a less rushed solution after the one we get points for.
    (3:22 AM) Chips: i agree with monkeymonkey on that one. sometime you might even go a step further and have something like a repository of 'less rushed' solutions that other members may have a look at (if they have passed that task as well already)
    (3:22 AM) Monkeymonkey: I often think of a little gem that I'd like to share mere seconds after hitting the submit button.
    (3:22 AM) Monkeymonkey: Things like this (context left out to avoid spoilers) (b=(a=b^(a=a%b))^b)^a;
    (3:25 AM) Monkeymonkey: This is one feature where following the lead of project euler is probably a bad idea.
    (3:26 AM) Monkeymonkey: But the combination of a repository like chips said, with forums that you can only see after you've finished a puzzle
    (3:26 AM) Monkeymonkey: you could discourage people from posting on the forum unless they're actually discussing something (to avoid the 100s of 'here's my code, much like all the other code here ' posts)
    (3:27 AM) LukasNovotny: Greatest common factor of 14 and 28 is not 14? Or is the test case wrong?
    (8:38 AM) TheMeijeh: I am with eric on seeing other peoples solutions, its a good way to learn things like "how can i do this assignment in less then 42 lines?"
    (1:12 PM) zacgeis: The palindrome challenge gave me zero points although I checked racecar and it worked fine
    (1:54 PM) mrdaniel: sorry about that, we fixed it for you zacgeis
    (3:04 PM) zacgeis: Dont worry about it, thanks for responding so quick!
    (3:50 PM) mrdaniel: The forums are up everyone!
    (3:55 PM) mrdaniel: check them out :)
    (6:29 PM) mrdaniel: If some of you had problems with Palindrome 2, please let us know and we'll fix it
    (6:29 PM) mrdaniel: we also mentioned this in the forums
    (10:21 PM) EdgarVerona: I just tried ABTest - I think it's not worded right. I passed it, but only because the "Laura Sobs" example contradicted the instruction text and I went with it. I think "Laura Sobs" should fail because the first 'a' has no matching b within 3 characters. When I saw it passed, I assumed you meant "only one a/b pair has to match to pass", which is not clear in the text.
    (10:21 PM) EdgarVerona: Love the site though! Just figured I'd let you know about the potential clarity problem with that test.
    (10:42 PM) qcom100: this site is very cool guys, excellent work
    (10:42 PM) qcom100: definitely hoping to get out of the word-rearranging challenges though haha
    (11:28 PM) Geroro: loving the site, :-)
    (11:30 PM) Geroro: it would be really cool if you added something like the spacechem mission completion screen...
    (11:30 PM) Geroro: http://4.bp.blogspot.com/-ZWpoPT-7Tvw/TtAVRSZZbVI/AAAAAAAAABE/7ru75WzjjsQ/s1600/Space+Chem+High+Score+-+small.png
    (11:59 PM) mrdaniel: we fixed the wording in that challenge edgar :)
    (11:59 PM) mrdaniel: and thats a good idea qcom, we'll look into it!
    (11:59 PM) mrdaniel: thanks for all the feedback guys
    (1:57 AM) buddydvd: For the alphabet soup challenge, why for input "coderbyte" the output is not "bcdeeorty"?
    (5:59 AM) nikhil007meet2: Hi Guys
    (12:07 PM) Bokkeman: hi, some suggestions/comments:
    (12:08 PM) Bokkeman: can't submit the vowelcount one - tried repeatedly to submit the simple one-line function:
    (12:08 PM) Bokkeman: return str.match(/[aeiou]/gi).length;
    (12:13 PM) Bokkeman: the question for "palindrome" does not say how to handle spaces in the input string...so I didn't pass on all the test cases!
    (12:58 PM) Bokkeman: I've done all Tier2 and would like to go back and do the rest of Tier 1 but can't get to them - no link. Also, above the list of (completed) Tier 2 challenges is a link with text "click here to view your completed Tier 1 challenges" - but the hyperlink takes on to the /About page.
    (12:59 PM) Bokkeman: Scrolling doesn't work in the chatroom thingy.
    (1:00 PM) Bokkeman: The Forum welcome text should make it clear that one requires a DIFFERENT registration to get in & post... why not integrate the forum auth with the coding site?
    (1:47 PM) FSFatScooter: So apparently the editor doesn't allow a function to call itself. This is poop.
    (10:29 PM) mrdaniel: New post in the announcements section on the forums! :)
    (2:03 AM) mrdaniel: February challenges for both Tiers have been started :)
    (8:10 AM) Chips: Am I the only one who wonders why there is one ajax call after another while surfing on this page? the content is even the same most of the times, at least a higher interval would be ok, just like 5 seconds between every call. this seems like a waste of resources
    (9:05 AM) adardesign: this is massive! lovin it
    (9:05 AM) adardesign: please consider allowing users to add a badge to there blog
    (9:05 AM) adardesign: makes sense?
    (9:18 AM) sander: i got a working code, test cases were / are returning exactly what has to be returned, yet i get 1 point, saying all of the test cases are incorrect... is there a way to let someone review your entry?
    (9:25 AM) adardesign: sander, i had a simler problem earlier
    (9:28 AM) adardesign: whoever owns this project, please add social "like" "google+1" etc, and allow to invite friends
    (12:00 PM) woolstar: Ok, so if it takes 10 challenges to get to tier 2, and then there are 7 tier 2 challenges available; how do you get # completed of 21?
    (12:06 PM) Monkeymonkey: Chips, the massive pile of ajax calls (and associated uncached jquery calls) is from the chat window.
    (12:11 PM) Monkeymonkey: It seems they've significantly reduced the frequency since last I looked. That's an improvement at least :D
    (3:01 PM) Trakkasure: It would be great to be able to use my Gravatar for my icon.
    (1:17 PM) lamaster: guys, what is the right place to send feedback about bugs\features? login behavior is very annoying
    (2:02 PM) sander: Small suggestion: if the output was incorrect, please add what the correct output should have been, it helps figuring out what the problem was
    (2:12 PM) nicogranelli: the second one from feb was somewhat hard
    (2:13 PM) nicogranelli: I got 10 points, but I know my solution is not 100% correct
    (6:41 PM) beemzet: the site has been saying 'Processing results, please wait..' for 3-4 mins now
    (7:55 PM) mrdaniel: Which challenge are you having problems with beemzet?
    (10:16 PM) beemzet: mrdaniel, never mind. there was an error in my code, and firebug displayed it. But it would be nice to have the site tell me that the code had a bug.
    (10:20 AM) facto: hm
    (10:18 AM) rlemon: Just had the WordCount challenge tell me it failed on "Coderbyte" but gave me the full points..
    (10:18 AM) rlemon: bug?
    (2:50 PM) cristiirimia: the second from february "Arith Geo II" says in the text problem that there is an array of numbers but is actually an array of strings...
    (2:51 PM) cristiirimia: lost some time there
    (1:49 PM) TheMeijeh: i second that cristi
    (1:58 PM) TheMeijeh: also i'm getting SyntaxError: Illegal return statement when returning a value from a block statement, is this new?
    (5:12 PM) mrdaniel: Meij can you email us and show us the code you're putting in
    (5:13 PM) mrdaniel: and also.. we'll be putting up some new challenges today! Sorry for the delay over the past 2 days
    (12:51 AM) mrdaniel: Python is up everyone!
    (11:24 AM) Klaus: Challenge "Binary Converter" is broken, when the Binary-String contains leading zeros. Javascript then automagically converts them into a octal number causing 3 test cases to return false results
    (11:25 AM) Klaus: number conversion is done before my code is executed, so I have no chance to avoid this bug
    (9:53 PM) njlokers: As much as the binary converter problem is a bug, I figured it was even a bigger challenge than the one intended (and much more like the kind of nightmare you run into in real life)
    (9:56 PM) njlokers: If you give it some thought you can knock it out in 3 lines or less
    (8:51 AM) jclark: I agree with Klaus. You can say it's a bonus challenge, but it's mean. The challenge should be explicit about the kinds of inputs and should not try to trick you. If they want the octal thing, tt should say: a sequence of '0' and '1' characters is put into a string and then parseInt(str) is called on that string, with no second argument, that is your input.
    (11:48 AM) Zbaker1398: Python is without a doubt my favorite language and one of if not the best portable all around great languages everyone should code python.
    (12:11 PM) lideshi: yoyo let me speak on this
    (12:12 PM) lideshi: anyone there?
    (12:12 PM) mrdaniel: @Zbaker we just emailed you about the issue you were having
    (1:39 PM) nzonbi: nice idea but buggy
    (1:40 PM) nzonbi: I had two issuess
    (1:41 PM) nzonbi: when testing the code, I hited enter insteda of hitting the "run your code button" and my code was submited as completed and got zero poins
    (1:43 PM) elmpn: can I take the same challenge more than once?
    (1:44 PM) nzonbi: looks like no
    (1:45 PM) elmpn: that sucks
    (1:45 PM) nzonbi: specially if you failed because some bug
    (1:46 PM) elmpn: anyway, to anyone who uses python for the challenges, why can't I use built in methods?
    (1:46 PM) elmpn: for example, I can't use str.translate
    (1:46 PM) elmpn: and when I import the string module, it fails
    (1:46 PM) elmpn: isn't that kind of restricting?
    (1:47 PM) nzonbi: I hope they clear the bugs and reset my account, or else I doubt I will come back
    (1:48 PM) elmpn: I guess codebyte is too young
    (5:46 PM) Zbaker1398: codebyte is awesome, dont hate
    (2:30 PM) burningfuses: hello?
    (12:42 AM) tucan7272: heeelllllo
    (5:23 AM) EzaBlade: can anyone help?!
    (5:24 AM) EzaBlade: I've jsu joined and run code does not work in the practice challenhe
    (8:49 AM) rdonahue: apparently these exercises don't like recursion
    (9:00 AM) phillipstreet: Bah, there's a bug here, if you go back in your browser after you've just completed a challenge the post is sent again and the challenge is recorded as a new result once again. That needs a fix.
    (9:01 AM) phillipstreet: (it's potentially an exploit as well, to easily and quickly rack up challenges and points)
    (9:02 AM) phillipstreet: Disappointing, as I'd gone back (hitting back with the wrong browser window in focus), and now I've got an increased challenge count but it's reduced my average score.
    (11:28 AM) pheonixblade9: anyone else unable to "Run Your Code" in Chrome?
    (12:52 PM) Ziberius: hello
    (12:53 PM) Ziberius: u there philipstreet?
    (12:53 PM) Ziberius: same thing happened to me :-(
    (1:26 PM) H3LLB0Y: hey yall!
    (1:31 PM) ag0rex: longest WORD fails on numbers.. wtf
    (1:31 PM) ag0rex: shouldnt it be ONLY words
    (1:31 PM) ag0rex: :((
    (1:31 PM) ag0rex: ;)
    (1:38 PM) Pulseczar: Just finished the first challenge.
    (1:54 PM) Trakkasure: Anyone on?
    (1:55 PM) Trakkasure: These exercices don't like RegExp either. A lot of my solutions with strings seems to involve that.
    (5:45 PM) Nebelhom: anyone online?
    (10:42 PM) Aesthete: I've got a few bugs to post, but I can't log into the forum to do it.. Any ideas anyone?
    (11:42 PM) Aesthete: Oh don't worry I got logged in
    (4:19 AM) Ytrail: k
    (7:44 AM) Ziberius: hello
    (8:42 AM) Trakkasure: hello
    (3:23 PM) tucan7272: hello
    (8:48 PM) trigoman: Hey guys! I just joined and I guess this would be an awesome time to learn python!
    (7:11 AM) Ivanzo: is it possible to start a finished challenge?
    (10:25 AM) trigoman: It would be awesome if you could, last night I submitted something with the wrong variable as my output :( However, I believe that in order to keep the point system going then, it wouldn't make sense to allow redos.
    (10:58 AM) sirbez: i can i practice java or c#
    (10:58 AM) sirbez: how can i practice java or c# pls
    (1:18 PM) trigoman: I don't think it is an option yet :P
    (3:39 PM) bsquared: any one submit an answer, but it doesn't use the answer you submitted? i got a few with 0s because it took an older version or nothing
    (3:40 PM) bsquared: ah should've looked at the forum http://forums.coderbyte.com/viewtopic.php?f=8&t=72
    (6:13 PM) trigoman: That doesn't really explain why, does it?
    (6:13 PM) trigoman: I'm using FF with no problem.
    (10:31 PM) mrdaniel: recursive javascript problem has just been fixed everyone! the update is in the forums
    (1:54 PM) fredevery: is it possible to see other people's solutions to the challenges?
    (2:15 PM) mrdaniel: as of now, no, but you can start a post about a certain challenge in the forums if you wish
    (2:15 PM) mrdaniel: more features for things like that will be coming soon
    (11:13 AM) azrafe7: how to access tier 1 challenges?
    (11:35 AM) azrafe7: Also... recursion still doesn't work in the Guest Challenges!
    (12:29 AM) Chips: hmm getting zero points for new challenge 'Formatted Division'... not sure if i am missing something, but when i use the 'analyze your code' feature below the failed testcases, i get correct results for those test cases. If you look into my code - it is a liiiiittle messy, sorry for that ;)
    (1:51 AM) gundisalvus: hi guys! i'm new here. can anyone tell how we can re-do a challenge?
    (3:23 AM) Chips: you cannot 're-do' a challenge - otherwise the ranking system would not be fair. But you can analyze your code afterwards, when you reselect the challenge on the left side of this page
    (3:24 AM) Chips: and of course: welcome gundisalvus! :D
    (10:01 AM) xuyuan: Getting zeroes for the "Formatted Division" challenge. Must be how the engine compares string results. I was so sure I could get ranked #1! ... and now this... pity
    (10:08 AM) Chips: atree with xuyuan.. must be something wrong with Formatted Divison
    (10:09 AM) Chips: anyways, love this page and the idea so far! quite refreshing and entertaining, its fun :)
    (8:33 AM) xuyuan: for sure Chips, can't take it too seriously anyway
    (1:54 PM) mrdaniel: We modified your scores Chips and xuyuan, sorrry about that a few people mentioned having problems with that challenge, and we found out what was wrong and we fixed it :)
    (1:54 PM) mrdaniel: and welcome gundisalvus!
    (6:36 AM) Chips: thanks mrdaniel for the quick fix :)
    (6:18 AM) luizfelipe: welcome
    (12:54 AM) mrdaniel: Just implemented some new features everyone! Read more about them on our twitter
    (8:50 PM) tucan7272: xuyuan you can always write challenges to get more points!
    (12:19 AM) Chips: I think in the 'Consecutive' Challenge, there is an error in the second example. It says:
    (12:19 AM) Chips: var arr = -2,10,4;Output = 11
    (12:27 AM) mrdaniel: oops, thanks Chips fixed!
    (7:35 PM) dodys: I checked ranking this morning, how come the #1 (xpansive) completed 44 challenges, while the total number of challenges so far only 29?
    (9:29 PM) jakebman: I'm having trouble with the python implementation not having str.isalpha() or sorted() functions. Is this a known problem?
    (9:40 PM) mrdaniel: yeah sorry about that some functions tend not to work with this python interpreter. We'll be updating to a better one soon
    (6:09 AM) initialed85: hmm, i should have read this. so the interpeter is limited? i had issues doing an .update() on a dictionary
    (6:10 AM) initialed85: also, with the Division Stringfield challenge, it makes reference to only wanting an int() done on the result, not a round() (which isn't supported in this interpreter btw), but it ended up claiming i had a few wrong results, which on inspection, would have been rounded up but got "rounded down" by int
    (12:19 PM) Moulde: bah, just submitted one with a stupid one-character error
    (12:20 PM) Moulde: You should be able to edit it for a minute or two just after submitting.
    (8:51 PM) foxlisk: so do you have to actually print the value at the end?
    (8:52 PM) foxlisk: i just did firstfactorial and im pretty sure i did it right but it didnt give me any feedback on what went wrong
    (10:01 AM) redwire: I didn't know I had to print the value of my function call in Python. I feel incredibly disapp ointed that this wasn't made clear.
    (10:09 AM) heitorsilva: I'm using Chrome on Linux
    (10:10 AM) heitorsilva: and everytime I open a challange, I have to press one key for the code to show up
    (10:10 AM) heitorsilva: is that normal?
    (2:03 PM) mrdaniel: sorry about the print problem redwire. you're able to redo those challenges now
    (8:29 PM) Ytrail: fdfd
    (1:15 AM) AniSnake: @heitorsilva I can attest the same thing occurs in Chrome on Windows. So, it might just be a Chrome thing.
    (8:49 AM) JediJoe: I was robbed! Seems to be issues in Chrome. I had to start over, messed with my time
    (8:49 AM) JediJoe: Guess i should have read this first
    (12:14 PM) jamArt: afd
    (9:57 PM) woolstar: I would suggest a Tier 0, so that people can get used to the environment and any peculiarities they're not expecting without it effecting their point total.
    (7:00 PM) craysiii: I am having problems in Chrome as well
    (10:40 PM) xmrxsmileyx: hi there. just did the array addition challenge, and when i clicked away from the results and clicked back, it took away the time bonus and said I took 38 minutes to complete the challenge, when I received 5 points previously.
    (10:45 PM) xmrxsmileyx: Also, my points are not adding up correctly. I have only been docked one point (assuming the above gets fixed) but I have 153 points versus 154, which should be 159.
    (12:36 AM) mrdaniel: sorry about that fixed your scores xmrxsmileyx
    (6:51 AM) xmrxsmileyx: Thank you!
    (6:52 AM) xmrxsmileyx: Just one more thing, I've noticed the submissions have issues with infinite loops. While halting is undecidable, perhaps there could be a hard cutoff for submissions (say 60sec run time?) and then return control back the browser.
    (7:29 PM) craysiii: it's kind of bullshit that itertools isn't included for python
    (7:35 PM) mrdaniel: a new python implementation is coming soon
    (7:36 PM) mrdaniel: sorry about the python function problems everyone
    (7:41 PM) craysiii: also realized on the Palindrome problem that I got it wrong because I printed an actual bool value, 'True', 'False', instead of 'true', 'false'
    (11:04 AM) hadilansende: so will we be having reduce() in new python implementation?
    (12:15 PM) mrdaniel: yes
    (4:25 PM) hadilansende: Did a question removed? my points dropped by ten
    (10:39 AM) augustopedraza: Hey, guys!!!
    (10:39 AM) augustopedraza: How are yo?
    (10:39 AM) augustopedraza: I'm from the Argentina...
    (1:05 PM) mrwonderful: *sigh
    (1:06 PM) mrwonderful: Bug in the system: complete a challenge, go to profile hit back button, then click profile
    (1:06 PM) mrwonderful: Your score and challenge count are update inproperly
    (4:44 PM) moosemen: I think they fixed that bug
    (4:45 PM) moosemen: won't work for me
    (8:32 AM) pedrosorio: Has anyone attempted "Palindrome" recently?
    (8:42 AM) pedrosorio: It's ignoring the existence of spaces in the string but the statement doesn't say anything about that
    (8:43 AM) pedrosorio: also, the ranking system is strange. should I try to do as well as I can in tier 1
    (8:43 AM) pedrosorio: or try to get 99 points
    (8:43 AM) pedrosorio: and then 10 in the last challenge
    (8:43 AM) pedrosorio: (seeing as I can't attempt tier 1 challenges after I get 100 points...)
    (10:05 PM) tmrotz: bah, submitted my first challenge without thinking
    (10:05 PM) drton: so has anyone else noticed that generator expressions in Python don't seem to be recognized where they should be?
    (10:05 PM) tmrotz: got a 0...
    (10:05 PM) drton: sum takes an iterable, so e.g. sum(i for i in range(101)) should be fine (and evaluate to 5050)
    (10:06 PM) drton: but when I tried to use the equivalent in the Vowel Count challenge I had to enclose it in brackets as a list comprehension
    (10:10 PM) drton: also, the 'any' built-in isn't here. cool. what version of python is this I wonder...
    (10:30 PM) drton: another bone to pick: in Python, str as an input variable conflicts with the built-in function str which converts to a string. (e.g. str(10) is "10")
    (10:44 PM) mrdaniel: yeah sorry about the python problems guys, we'll be implementing a new python interpreter soon!
    (10:44 PM) mrdaniel: sometime this week it should all be done
    (10:51 PM) drton: yeah, I saw that in the (long) transcript only after I said the above... sorry to make you rehash it :)
    (10:55 PM) drton: just out of curiosity, what are you using currently / what are you switching to? did you write one yourselves?
    (11:50 PM) drton: running into the binary converter bug with leading 0s as inputs, gah
    (12:06 AM) KiwiNaut: Once you are Tier2, Do you lose the ability to solve Tier1 Problems? I see that I have solve 10 problems with perfect scores, but I only have another 15 problems available. Even if I got perfect scores on every single one, I would not be number 1.
    (12:16 AM) preds: python enumerate isn't available either it seems
    (12:18 AM) preds: oh cool, I guess I'll wait for the new interpreter
    (4:15 AM) nickl: so, when i doing a challenge, the testing functionality doesn't work at all. Nothing happens when I click Run Code
    (7:07 AM) Retcoon: @KiwiNaut: Yeah, I was wondering the same thing. I have solved nine problems, and I don't know if I should solve another. :)
    (7:08 AM) DecisiveSauce: ...
    (7:09 AM) Retcoon: May I ask the purpose of your ellipsis?
    (8:49 AM) modocache: @drton Yeah, I was struggling with that on the run length problem. Couldn't use str(), had to use ('%d' % length), where length is an int
    (8:50 AM) modocache: we'll be implementing a new python interpreter soon! < this is good news
    (8:50 AM) modocache: Also I just realized the conversation I'm responding to is several hours old, sorry
    (9:00 AM) modocache: But while I'm here, can I request `import string`? I'd love to be able to `from string import ascii_lowercase`, especially for all those palindrome questions which ask you to ignore punctuation.
    (10:19 AM) modocache: Is it just me, or is the `num` param passed into the Python version of "Caesar Cipher (Tier 2)" as a string, rather than an int when using the testing parameters?
    (10:19 AM) modocache: Maybe I accidentally added a space...
    (10:23 AM) modocache: Nope, it's passed in as a str object all right:
    (10:23 AM) modocache: 1) http://cl.ly/103Y0F3o1M360D1p3k1Y
    (10:23 AM) modocache: 2) http://cl.ly/3P2w1j041S3x1n1j0w3S -- cast as an int
    (11:52 AM) adamt: i love how hitting enter submits your code without verification
    (11:53 AM) adamt: definitely didn't want a new line....
    (11:53 AM) adamt: would rather fail instead... ffs
    (12:18 PM) KiwiNaut: @nickl too late now, but if you are doing JS (Like myself) you can install something like the developer toolbar to see errors. Atleast for JS, if there is a syntax error nothing will happen with your code.
    (12:20 PM) SmartViking: Why doesn't exceptions work with python
    (12:20 PM) SmartViking: Those are important.
    (12:32 PM) KiwiNaut: SmartViking, What problem are you on where you are worrying about exceptions?
    (12:51 PM) SmartViking: I'm testing for IndexError, and it doesn't know what IndexError is
    (12:51 PM) SmartViking: Also, it doesn't know what sorted() is
    (12:52 PM) KiwiNaut: Could be solved with just an if statement?
    (12:52 PM) KiwiNaut: Ugh just did one that required permutations (IMO)... which is pretty hard when you are only allowed it inside one function. Butchered it to simply randomly shuffle the array 1000 times and hope that one of those shuffles gives you the correct answer.
    (12:55 PM) sparr: I'm writing a forum post right now, mostly complaints. In particular, I can't stand coding in Python without re or string or math or any other libraries
    (12:56 PM) KiwiNaut: Why not try the delightful javascript challenges :p
    (12:57 PM) sparr: I guess that's one point in javascript's favor... that sort of functionality is built in, so it's available here while it's not in Python
    (1:00 PM) emjbs: Can you reset your stats?
    (1:48 PM) SmartViking: There's a bug when you use python. str is used to convert objects to string in python, the input to functions should not be str, but something else.
    (1:49 PM) SmartViking: It's a very serious bug.
    (3:01 PM) Tordek: hi
    (4:09 PM) visinoz: hi
    (4:09 PM) visinoz: how old is this website?
    (4:49 PM) k3ithk: Can I still do tier 1 challenges if I'm on tier two?
    (5:33 PM) modocache: @SmartViking Yeah, IndexError, KeyError... none of them work it seems.
    (6:48 PM) deb4te: ahoy
    (7:15 PM) traviscj: cheers
    (8:41 PM) mrdaniel:
    (8:53 PM) prophile: bees
    (8:53 PM) prophile: on the plus side
    (8:54 PM) prophile: now ranked 7
    (8:54 PM) prophile: on the minus side, done all the tier 2 challenges so there's now no way of upping my score
    (9:50 PM) valrus: anyone else have the trailing spaces problem in python?
    (3:43 PM) jvnk08: are you on windows or linux?
    (5:30 PM) adamt: "Take as many challenges as you want, each time trying to improve your score."
    (5:30 PM) adamt: bullshit
    (5:30 PM) adamt: i'm done with this site. can't stand working on something for a while, getting it almost perfect.... then having an enter press submit code to never be changed again
    (5:30 PM) adamt: fuck it
    (5:31 PM) adamt: good concept, but some seriously annoying bugs are left
    (5:32 PM) adamt: if you want me i'll be on http://projecteuler.net/
    (1:36 AM) darylteo: lol technically if you submit you get points added to your profile, hence you've "improved your score" :P not false advertising.
    (1:36 AM) darylteo: Woo! Rank 7 with prophile
    (6:33 AM) emjbs: What the hell, their Python implementation is missing features
    (1:17 PM) mattjrumble: Silly Binary Converter bug =[
    (2:23 PM) chaofawn: is this right for longest word?
    (2:23 PM) chaofawn: function LongestWord(sen) { string []split = sen.split(); int maxSize = 0; int largest = 0 for(int x = 0;x!=split.length;x++) { if(split[x].length() > maxSize) largest = x; } return split[largest]; }
    (3:12 PM) mattjrumble: Why don't you just test it out?
    (11:12 PM) wtodom: can you not retry challenges if you submit and make a mistake?
    (12:57 PM) mrdaniel: I reset the challenges you needed redone wtodom, you can retake them now
    (12:58 PM) mrdaniel: just let us know if you have any problem with the challenge results, the wording of the challenges, or anything else that might ruin your score
    (8:38 PM) foxlisk: hey
    (8:38 PM) foxlisk: just ran into some weird issues
    (8:38 PM) foxlisk: I was doing Array Addition and
    (8:38 PM) foxlisk: I have a solution that works properly when I run it locally
    (8:39 PM) foxlisk: but when I run it on here it prints out False hundreds of times before printing out the correct answer
    (8:39 PM) foxlisk: and tends to hang
    (8:39 PM) foxlisk: so I wonder if there's a leak somewhere in wherever you're sandboxing the python? (total shot in the dark)
    (8:39 PM) foxlisk: it runs in like millisecond time locally though so it really shouldn't be causing memory issues or anything
    (8:40 PM) foxlisk: anyway so then I accidentally submitted it and it doesnt seemto have gone through im not really sure what state it's in now, you might be interested in figuring out how you want to handle cases where skulpt.js dies on you :)
    (8:40 PM) foxlisk: In terms of the submitting ccidentally thing: When you're in the space to specify your input params, enter SHOULD NOT submit the code - it should either do nothing or be equivalent to hitting 'run your code'
    (8:42 PM) foxlisk: anyway just thought I'd let the powers that be know - if this isn't the appropriate venue for other issues that I see, email me and tell me where I should point things out.
    (10:54 PM) mrdaniel: @foxlisk - we reset that challenge so you can redo it with a new time because of the problems you were facing. Try and do the challenge again and if it keeps hanging, send us an email with your code and we'll sort it out then!
    (10:55 PM) mrdaniel: sorry about the problems
    (12:24 AM) sheenkatz1: I have no idea what I'm doing...
    (4:24 AM) Deathmax: Hmmm, Caeser Cipher is stuck for me at processing results.
    (5:24 AM) Deathmax: And strange, JS code executes fine in my browser, then goes ahead and fails all test cases
    (11:23 AM) sheenkatz1: Make sure you're returning the correct variable type. (Don't return an array if the output should be a string) Just an idea, it worked fine for me.
    (7:03 AM) SurDin: hi?
    (7:03 AM) SurDin: hi
    (3:05 AM) sbermeister: hey all :)
    (3:06 AM) sbermeister: this website rocks!
    (1:09 PM) Cayal: For some reason I can't submit anything.
    (1:10 PM) Cayal: Like, I'll do a coding challenge and process.php will keep me waiting indeifnitely
    (1:10 PM) Cayal: and then I get a 0 for my time score :(
    (3:01 PM) mrdaniel: which challenge are you having problems with Cayal?
    (9:39 PM) drton: oh awesome. no map() or filter() for python either.
    (10:41 AM) Migaaresno: What python version is used? I tried to use str() and str.translate(None,"chars"). But they diddent work.
    (10:51 AM) Migaaresno: I have been reading above. Will thu users be notified on the new python interpreter?
    (9:21 AM) mrdaniel: yes all the users will be notified soon about the new Python interpreter
    (11:08 PM) Ytrail: h
    (2:38 PM) Elias: mmm...
    (2:38 PM) Elias: what is more easy???
    (2:38 PM) Elias: Python or java script???
    (10:26 AM) mbarkhau: depends on how used to python you are
    (10:26 AM) mbarkhau: i have had some trouble because i cannot use some typical functions of python in the environment here
    (10:26 AM) mbarkhau: for example you don't have the "str" fucntion
    (11:24 AM) fingerfactor: hello
    (11:45 AM) Ansjh: Why can I not re-do my already finished challenges? That's stupid.
    (12:17 PM) mbarkhau: on the prime chekcer challenge i think there is an incorrect testcase
    (12:17 PM) mbarkhau: input 30 should produce result 1, because 0 3 is prime
    (12:18 PM) mbarkhau: which my program does, but the result is labled as incorrect
    (2:38 PM) mrdaniel: Thanks for letting us know mbarkhau, we fixed it!
    (9:58 PM) bparonto: hello all
    (11:29 PM) sahinyanlik: hi
    (2:34 PM) baptistemarchand: yo
    (3:27 AM) jkbbwr: xrange is undefined
    (3:27 AM) jkbbwr: :(
    (3:29 AM) jkbbwr: its alittle buggy :(
    (7:40 AM) shankyb0y: i'm sad that xrange is missing :(
    (7:57 AM) obelisk29: Great site. What about code comparison? You can view other peoples solutions to the same problem. Sort by code length?
    (7:14 PM) Screaminmidget: ......
    (11:58 AM) ZenDean: Hey there
    (11:58 AM) ZenDean: Anyone?