| ▲ | Swizec 5 hours ago | |||||||
> I also got this riddle, in 2015. I couldn't solve it. Tbh, I think it's a terrible question. There isn't really a step-by-step problem solving process, but you just need to have a "leap" to realize you can weight the marbles in groups of 3. It’s an information theory question similar to the “how far can you drop the egg before it breaks” puzzle. You don’t need a leap of intuition, just remember the right theorems and formulae from college. I probably would’ve failed the interview. At best I could write an algorithm that empirically arrives at the answer, which may or may not impress the interviewer enough to pass. Stuff like this is why I dropped out of coding competitions some time in high school. You can always brute force the easy version, then the next tiers drop numbers that cannot be solved unless you know (or can invent) that one weird maths trick. | ||||||||
| ▲ | 44 minutes ago | parent | next [-] | |||||||
| [deleted] | ||||||||
| ▲ | krackers 4 hours ago | parent | prev [-] | |||||||
>It’s an information theory question similar How would you approach it from an information theoretic sense? | ||||||||
| ||||||||