Retired

Comparative operators (more, less, equal) by your hands (retired)

Description:

In this kata you are supposed to program three basic functions: more, less and equal to compare two integers.

The idea is: you are not allowed to use built-in comparative operators (such as '>', '<', '==', '<=', '>=' and '!=' in Python or in Java). Also you are forbidden to use buit-functions max() and min() and operator module (gt, lt, eq and so on). As you understand, implicit usage of comparative functions is also forbidden.

Try to think like computer does, no cheating (I'll check that).

Good luck to you, warrior! Hope, you enjoy this ;)

Fundamentals
Puzzles
Games

Stats:

CreatedJun 20, 2019
Warriors Trained33
Total Skips0
Total Code Submissions148
Total Times Completed11
Python Completions11
Total Stars1
% of votes with a positive feedback rating0% of 6
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes6
Total Rank Assessments7
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Pope Avatar
Ad