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

Doodz

Likes 1

4 No if() no abs()!

Ratings 1

4
10.0
No if() no abs()!

Comments 0

Submitted Puzzles 1

4 4 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