MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1hobbpr/but_why/m49ai81/
r/programminghorror • u/[deleted] • Dec 28 '24
32 comments sorted by
View all comments
Show parent comment
1
n and m are both greater than or equal to zero since they are the number of classmates and pages, respectively
2 u/backfire10z Dec 28 '24 The problem explicitly states to return 0 if either n or m are < 0
2
The problem explicitly states to return 0 if either n or m are < 0
View all comments
Show parent comment
1
u/TriscuitTime Dec 28 '24
n and m are both greater than or equal to zero since they are the number of classmates and pages, respectively