Last active
April 14, 2024 07:26
-
-
Save asjadsyed/f869f9d4107fdf75ee59fedd006ddef7 to your computer and use it in GitHub Desktop.
Ceiling Division
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ceil_div(n, d): return -(n // -d) | |
def floor_div(n, d): return n // d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment