Added: 1 year ago
From: MichaelCiuffo
Views: 11,977
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (47)

Sign In or Sign Up now to post a comment!
  • why are there so many dumb comments saying his code was wrong. it was damn right. and he did it without a screen. damn.

  • @Orbofs: Try doing that without seeing your screen or writing anything down - if you forget your last character, you're done.

    If MIT Comp. Sci. students can't do it, it's hard.

  • my answer

  • I solved this in 15 seconds in my head. Is he serious?

  • Cool :D

  • The singular of parentheses is parenthesis.

  • sorry but "())(" will return true and that is wrong

  • @emptist Actually, it would return False on the third run of the for.

  • @emptist I'm not familiar with Python but I believe the "if lvl<0: return false" catches that condition. The moment the counter "lvl" goes negative it will return false.

  • test if I can comment

  • This is like playing Singpath.com blind. Very cool.

  • python is the only language i find acceptable, is that bad?

  • "return lvl == 0" instead of all "if, else, etc.."

  • @danieLs0xFF Seriously!

  • you really don't need the if <0 statement

  • @foggydoggydoo You actually do. Otherwise, ")(" would return True.

  • Wow, that guy at the end.

  • I'd be saying. "Whos the dirty hippy playing guitar! I'm trying to code here!"

  • the game where the loser gets more pussy

  • @TropicalPickle not at MIT, he don't.

  • I love how the entire room knows the second guy's is wrong as soon as he says "final answer" and before any test cases are executed. <3

  • @TheAbstractMethod He was right, because he checked after each character whether the count was less than zero. In your example, the count would be -1 after the third character and f would return False.

  • Comment removed

  • @TheAbstractMethod actually no, he checks if the count goes below zero, which it would if there too many closing parentheses

  • Comment removed

  • HI EVERYBODY!!!!

  • @TheWiiZone

    Hi. Dr. nick!!!

  • @TheWiiZone We were announcing the next event. The video editor is just really good at cutting things off.

  • "tab tab tab" fuck that. I'll stick to ruby, thanks.

  • @JofoTubin

    tabs are actually usually automatic in python - you can see him delete the space on-screen; he's just dictating how many tabs are necessary for accuracy's sake.

  • @MiskatonicSC2 You mean they're automatic in his editor, not python the language. Yes, my vi setup is awesome, as well. My point is python the tabs *have* to be there in python. If I were dictating the same function in ruby, I'd just say "space" and get on with things that matter instead of wondering "wait...how many tabs did I say on that last line?"

  • @JofoTubin you're picking your programming language based on which one is easier to dictate? Personally I use a keyboard for programming.

  • @af202020 no, his point is that languages that use white-space indentation to delimit blocks suck.

    when it comes to programming languages, all whitespace should be treated the same. Giving different amounts of white-space different meanings, just limits the way you can structure your code.

  • This is just bad form. Where are their comments?

  • This guy doesn't even have a neck beard. Why didn't they type "oh shit"

  • This guy doesn't even have a neck beard.

  • I NEED SO MUCH MORE OF THIS.

  • NEEEEEERDS!!!!!!!!!!

  • @ItBurnsSomehow

    enjoy bagging groceries

  • the only thing more exciting than watching people write code is watching people dictate code!

    I kid, I kid

  • rofl

  • gay

  • @Evilfisher as your brain

  • @Evilfisher You'll be working for these people someday.

  • this is so cruel

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more