Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #107.79K
~570 People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for IT_Techno

A better algorithm: public static int NumberOfFridays( int DayOfFirstFridayInMonth, int LengthOfMonth ) { int length = LengthOfMonth - DayOfFirstFridayInMonth; return ( 1 + ( length / 7 ) ); } It's better because it's explicit (so it should be faster and it takes less code). Micah Hoover

Member Avatar for Momerath
0
570

The End.