Skip to content

leannechen/get-seven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Seven

Description

Let g(N) be the count of numbers that contain a 7 when you write out all the numbers from 1 to N. For example:

  • g(7) = 1
  • g(20) = 2
  • g(70) = 8
  • g(100) = 19

Scripts

  1. yarn test: Run tests for codes
  2. yarn test-watch: Watch for changes and run tests accordingly

About

Get count of numbers with at least one 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published