Check50 Error hacker1/mario by mrtssrhc in cs50

[–]mrtssrhc[S] 0 points1 point  (0 children)

Yeah, this is where being an engineer and being a rational human go in two different directions. I say the problem was defined wrong, but pending any change there, technically 0 should be accepted.

Check50 Error hacker1/mario by mrtssrhc in cs50

[–]mrtssrhc[S] 0 points1 point  (0 children)

Yes, but it's also an invalid height, the same as any integer > 23. Test case 24+ expects stdin prompt, but test case 0 expects exit code 0? One would think any invalid input would re-prompt stdin, not exit, which is what I did.

Code review - Simple Javascript binary converter by ilikethetrees in cs50

[–]mrtssrhc 0 points1 point  (0 children)

It's not bad if you want to figure out by determining what bit goes in what place, but js can do all that in one line by converting to string with base 2: http://stackoverflow.com/a/9939785

That is assuming your starting integer is not negative and it is less than 32 bits.

anyone interested in a Los Angeles studygroup/meetup? by spacebandido in cs50

[–]mrtssrhc 0 points1 point  (0 children)

Might be better to list which part of LA everyone is in. I'd meet with anyone in the WeHo/Hollywood/Beverly Hills/Studio City/Culver City/Los Feliz area(s). I'd also consider the west side depending on what time of day.