We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Drawing Book
- Discussions
Drawing Book
Drawing Book
Sort by
recency
|
222 Discussions
|
Please Login in order to post a comment
`
int pageCount(int n, int p) { //start-end return std::min(p/2, (n/2) - (p/2)); } //end-start
`
Hint: If p is odd maybe look at p-1
Kotlin Solution
My math skill sucks pants, java brute force approach for fun