Search Results

Search: Posts Made By: sepoto
Forum: Programming 01-07-2011
1,741
Posted By m.d.ludwig
I do see one problem: You need to account for...
I do see one problem:
You need to account for leap-years:
else if(imonth == 2) {
if (iyear % 4) {
iday = 28;
}
else {
iday = 29;
}
}Please...
Forum: Programming 12-31-2010
1,103
Posted By DGPickett
The only way to avoid N^2/2 cost is to remember...
The only way to avoid N^2/2 cost is to remember the items in a more efficient way or sort them all, which is almost saying the same thing. For instance, put them is a hash map or a tree. Pardon the...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy