Rcambier’s Blog
Artificial Intelligence
Computer Science
Riddles
About
Some posts about AI, Computer Science, and riddles!
Categories
All
(38)
ai
(10)
programming
(4)
riddle
(25)
system
(1)
Bayesien Inference from Scratch
ai
Bayesien Inference from Scratch in Python
Oct 22, 2023
SHAP values from scratch
ai
How SHAP values are computed, in a few simple Python lines
Jan 14, 2023
Easy way to queue a job in the terminal
programming
system
How to use background jobs to quickly queue a job after a running command
Apr 29, 2022
Python multiprocessing with loading bar
programming
Create a nice multiprocessing logic with a loading bar
Apr 1, 2022
Cython for fast python
programming
Trying out cython
Oct 15, 2021
Bayesian riddle
programming
ai
The typical bayesian interview question, solved with PyMC3
Sep 27, 2021
Random forest
ai
Create random forest from scratch in Python
Sep 20, 2021
Word embedding
ai
Create word embeddings simply from scratch
Sep 19, 2021
Gradient Boosting trees
ai
Simple boosting trees, for regression and classification in python from scratch
Sep 18, 2021
SVD
ai
Singular value decomposition from scratch
Sep 16, 2021
PCA
ai
PCA dimensionality reduction from scratch
Sep 15, 2021
Linear regression & Logistic regression
ai
Linear regression, ridge regression, logistic regression with r2 score from scratch in Python
Sep 14, 2021
Hypothesis testing
ai
Hypothesis testing, confidence interval
Sep 13, 2021
Three’s a Crowd
difficulty 99
riddle
From: http://www.twinbear.com/riddles.html
Jan 5, 2021
The newcomb poison
difficulty 99
riddle
You are put into a room with a suitcase and a flask of poison.
Jan 5, 2021
The blind pill
difficulty 2
riddle
You are blind. You have 2 blue pills and 2 red pills in a box.
Jul 29, 2020
Reversed number
difficulty 2
riddle
Can you find a 4 digits number that gets reversed when multiplied by 4?
Apr 19, 2020
The rope triangle
difficulty 2
riddle
You cut a rope in a random place. Then again in another random place.
Apr 19, 2020
Potatoes
difficulty 1.5
riddle
A farmer has 100kg of potatoes. At the start, they are composed of 99% of water (the water is 99% of the total weight) and 1% of dry matter (the dry matter is 1% of the…
Dec 26, 2018
Surprise birthday
difficulty 2
riddle
Albert and Bernard just become friends with Cheryl, and they want to know when her birthday is. Cheryl gives them a list of 10 possible dates.
Dec 26, 2018
Simple Maths
difficulty 1.5
riddle
How do you make 26 by using 5, 5, 5 and 1. You have to use each exactly once. You can use the basic math operations (+, -, *, /, (, ) ).
Dec 26, 2018
4 Pieces
difficulty 2.5
riddle
There are 4 coins on a quadrant. They are not visible to you.
Dec 26, 2018
King’s poison
difficulty 2.5
riddle
In a far away land, it was known that if you drank poison, the only way to save yourself is to drink a stronger poison in the next 12 hours, which neutralizes the weaker…
Dec 25, 2018
Prisoner’s switch
difficulty 3
riddle
The warden meets with 23 new prisoners when they arrive. He tells them, “You may meet today and plan a strategy. But after today, you will be in isolated cells and will have…
Dec 25, 2018
Lost father
difficulty 2.5
riddle
Question: A mother is 21 years older than her child. In 6 years the mother will be 5 times older than her baby.
Dec 25, 2018
Gold coins
difficulty 2
riddle
There is a stack of 100 coins. Each coin has a silver side and a golden side. 20 coins are silver side up. The rest is golden side up. You are in a totally dark room. How do…
Dec 25, 2018
Cats and mouses
difficulty 1
riddle
If 3 cats take 3 minutes to catch 3 mouses, how many cats are needed to catch 100 mouses in 100 minutes ?
Dec 25, 2018
Running in circle
difficulty 2
riddle
If I can make it around a running track once by going 10 km/h, what speed should I be running a second lap to have an average speed of 20 km/h for the two laps ?
Dec 25, 2018
Broken plane
difficulty 10
riddle
Imagine a 747 is sitting on a conveyor belt, as wide and long as a runway. The conveyor belt is designed to [try to ?] exactly match the speed of the wheels, moving in the…
Dec 25, 2018
Evil professor
difficulty 99
riddle
The evil professor says to the students: you are going to have an exam next week. I’m not telling you which day, but I am telling you that it will be unexpected (i.e., the…
Dec 18, 2018
Lost in the woods
difficulty 3.5
riddle
You are in a square forest of side 100km. You are 2km away from its border, but you don’t know in what direction or at what angle (It could be at 2km with an angle of 16.123…
Dec 18, 2018
Peeking
difficulty 1
riddle
Jack is looking at Anne, but Anne is looking at George. Jack is married, but George is not. Is a married person looking at an unmarried person?
Dec 10, 2018
Gender
difficulty 99
riddle
A lady has two children. One is a boy. What are the chances of the other child also being a boy?
Dec 10, 2018
Prisoners and trees
difficulty 4
riddle
Here is a logic puzzle that depends on the game theory concept of common knowledge.
Dec 10, 2018
Blue eyes
difficulty 5
riddle
A group of people with assorted eye colors live on an island. They are all perfect logicians – if a conclusion can be logically deduced, they will do it instantly. No one…
Dec 10, 2018
Exception
difficulty 2
riddle
Find the exception
Dec 10, 2018
Magic logic
difficulty 3
riddle
At a party last night, my friends Alice and Bob did a magic trick. Any ideas how it worked?
Dec 10, 2018
Lighter
difficulty 2
riddle
You have a lighter and two lengths of rope that burn for exactly 1 hour each. They do not burn consistently so you cannot, for example, cut one in half and burn that. How…
Dec 10, 2018
No matching items