Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Crost40744ySimulate throwing a dice 4 times. Print specific points for a straight, 4 of a kind, 3 of a kind, pair, or the number you rolled if no other rules apply.
I totally lost my head and could not even think about the problem. Quite embarrassing given it's not terribly hard. -
Well, you can simulate a dice with a random function.
But what that 4 of a kind, pair, etc mean there? -
Crost40744yYou need to roll the dice 4 times. Of all 4 are the same number 50 points, if it's a straight like in poker 100, 3 of a kind 25 points. So on.
-
daearol174yNever played poker so I guess I would have failed too :>
Edit: You know my religion prohibits me to gamble right?
Related Rants
-
mordax15Hey fellow selfish Millenials who want to be paid for their valuable work, how's the job hunting going? I'm ...
-
k0pernikus3Interview question: "What are your three most favorite design patterns?" Me: "Huh? They're tools in a toolbo...
-
AmyShackles11That feel when you’re asked to share work you’re proud of and you’re not proud of anything. Or rather, ...
Technical interview to solve a fairly simple problem. I proved that I am an idiot.
Really don't want to work for a company that doesn't test new hires well and hires idiots. Ironic :D
rant
job hunt woes