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

Stats:

CreatedDec 27, 2016
PublishedDec 27, 2016
Warriors Trained193465
Total Skips11888
Total Code Submissions358980
Total Times Completed154747
Python Completions50701
C Completions4203
Rust Completions2485
TypeScript Completions2203
JavaScript Completions59835
C# Completions7129
C++ Completions11261
Ruby Completions2433
Java Completions13134
Julia Completions126
Prolog Completions83
CFML Completions28
NASM Completions52
Crystal Completions38
CoffeeScript Completions34
R Completions276
COBOL Completions46
PHP Completions1841
SQL Completions2510
Scala Completions169
Lua Completions97
Dart Completions144
Haskell Completions60
Go Completions406
Total Stars687
% of votes with a positive feedback rating90% of 9369
Total "Very Satisfied" Votes7788
Total "Somewhat Satisfied" Votes1348
Total "Not Satisfied" Votes233
Total Rank Assessments72
Average Assessed Rank
8 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user2514386 Avatar
  • jhoffner Avatar
  • Unnamed Avatar
  • anter69 Avatar
  • lechevalier Avatar
  • donaldsebleung Avatar
  • siebenschlaefer Avatar
  • Dentzil Avatar
  • kazk Avatar
  • LesnyRumcajs Avatar
  • B1ts Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • FArekkusu Avatar
  • bdw429s Avatar
  • monadius Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • user8436785 Avatar
  • user7147914 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • dfhwze Avatar
  • tobeannouncd Avatar
  • quadratz Avatar
  • Gauntlet9868 Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
  • mightByte Avatar
Ad