Skip to main content
edited body
Source Link
mathause
  • 361
  • 1
  • 3

Python2, 32 bytes

saved 3 + 2 bytes and corrected off by one error thanks to Leaky NumNun

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

Python2, 32 bytes

saved 3 + 2 bytes and corrected off by one error thanks to Leaky Num

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

Python2, 32 bytes

saved 3 + 2 bytes and corrected off by one error thanks to Leaky Nun

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

added 2 characters in body
Source Link
mathause
  • 361
  • 1
  • 3

Python2, 32 bytes

saved 3 + 2 bytes and corrected a one off by one error thanks to Leaky Num

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

Python2, 32 bytes

saved 3 + 2 bytes and corrected a one off error thanks to Leaky Num

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

Python2, 32 bytes

saved 3 + 2 bytes and corrected off by one error thanks to Leaky Num

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

added 2 characters in body
Source Link
mathause
  • 361
  • 1
  • 3

Python2, 3432 bytes

saved 3 + 2 bytes and corrected a one off error thanks to Leaky Num

lambda v,a:('*'*10)[:(v~-1)v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

Python2, 34 bytes

saved 3 bytes and corrected a one off error thanks to Leaky Num

lambda v,a:('*'*10)[:(v-1)/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

Python2, 32 bytes

saved 3 + 2 bytes and corrected a one off error thanks to Leaky Num

lambda v,a:('*'*10)[:~-v/a/70+1] 

similar to Neils answer. Uses the fact that Python2 does integer division.

added 68 characters in body
Source Link
mathause
  • 361
  • 1
  • 3
Loading
Source Link
mathause
  • 361
  • 1
  • 3
Loading