Welcome to MindCipher, a social repository of the world's greatest brain teasers, logic puzzles and mental challenges.

Filtered by tag: Arithmetic-Mathematics

4 2 No if() no abs()!
This is inspired by the puzzle "No if() only abs()" : Given two variable a and b, construct a function f(a,b) which return the maximum one in {a,b}. You can only use +- ยท / (basic arithmetic operator ...
Hard
10.0