7 kyu

Most Likely

1,817 of 1,855philb56

Description:

Create a function which compares two probabilities, returning true if the first one is most likely otherwise false.

For this exercise probability is expressed as two numbers separated by a colon e.g. a probability of 1 in 3 will be 1:3.

So:

Input: ('1:3','1:2') - returns false as 1 in 3 is less likely than 1 in 2.
Probability
Fundamentals

More By Author:

Check out these other kata created by philb56

Stats:

CreatedDec 6, 2015
PublishedDec 6, 2015
Warriors Trained3186
Total Skips101
Total Code Submissions9037
Total Times Completed1855
JavaScript Completions1817
CoffeeScript Completions13
C Completions45
Total Stars31
% of votes with a positive feedback rating92% of 262
Total "Very Satisfied" Votes225
Total "Somewhat Satisfied" Votes33
Total "Not Satisfied" Votes4
Total Rank Assessments27
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • philb56 Avatar
  • dnolan Avatar
  • rowcased Avatar
  • ejini战神 Avatar
  • LosBlobbos Avatar
Ad