DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
fast guess for divisible numbers between two numbers
import math def solution(A, B, K): b = math.floor(B/K) a = math.floor((A-1)/K) return b - a
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#fast
#guess
#divisible
#numbers
#numbers
ADD COMMENT
Topic
COMMENT
Name
3+6 =
Submit