Notes
for nemo
Pages
Home
C / Linux
Data Structures & Algorithms
UVa Problems
Interview Problems
More
Sunday, April 21, 2013
10070 - Leap Year or Not Leap Year and ...
Used divisibility rules instead of looping with taking the mod.
For 400, test for divisibility by 100 and then test for divisibility by 4 (summing digits 3 & 4*(10))
Check for test cases on the web.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment