Published: 21 Sept 2020 › Updated: 21 Sept 2020

I just accidentally invented a riddle when programming. :D First correct answer gets this post's reward. :P
Given the numbers 1 to 10 and the randomly chosen number R and two prediction values P1 and P2:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|
| P1 | R | P2 |
Which guess was better? P1 or P2?
Actually pretty simple. I just had to think about it for a moment when implementing it. ;)
Leave I just accidentally invented a riddle when programming. :D First correct answer gets this post's reward. :P to:
Read more #riddle posts
Best Posts From mkt
We have not curated any of mkt's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From mkt
- Ethereum on GitHub
- mapState, mapGetters, mapMutations and mapActions with Vue3/Vuex4 and script setup
- Regular Expressions for Non-Programmers.
- Make GitHub Workflows run consecutively
- Multiple Environments With GitHub Pages
- GitHub Pages with Dynamic Routes
- Petrinja Earthquake
- Random Thought
- Random Thought
- Random Thought