8 kyu
Will you make it?
50,701 of 154,747user2514386
Description:
You were camping with your friends far away from home, but when it's time to go back, you realize that your fuel is running out and the nearest pump is 50
miles away! You know that on average, your car runs on about 25
miles per gallon. There are 2
gallons left.
Considering these factors, write a function that tells you if it is possible to get to the pump or not.
Function should return true
if it is possible and false
if not.
Mathematics
Fundamentals
Similar Kata:
Stats:
Created | Dec 27, 2016 |
Published | Dec 27, 2016 |
Warriors Trained | 193465 |
Total Skips | 11888 |
Total Code Submissions | 358980 |
Total Times Completed | 154747 |
Python Completions | 50701 |
C Completions | 4203 |
Rust Completions | 2485 |
TypeScript Completions | 2203 |
JavaScript Completions | 59835 |
C# Completions | 7129 |
C++ Completions | 11261 |
Ruby Completions | 2433 |
Java Completions | 13134 |
Julia Completions | 126 |
Prolog Completions | 83 |
CFML Completions | 28 |
NASM Completions | 52 |
Crystal Completions | 38 |
CoffeeScript Completions | 34 |
R Completions | 276 |
COBOL Completions | 46 |
PHP Completions | 1841 |
SQL Completions | 2510 |
Scala Completions | 169 |
Lua Completions | 97 |
Dart Completions | 144 |
Haskell Completions | 60 |
Go Completions | 406 |
Total Stars | 687 |
% of votes with a positive feedback rating | 90% of 9369 |
Total "Very Satisfied" Votes | 7788 |
Total "Somewhat Satisfied" Votes | 1348 |
Total "Not Satisfied" Votes | 233 |
Total Rank Assessments | 72 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |