leetcode 1185 Day of the Week

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Sir, I think you have made a mistake, 1974 is not a leap year. First leap year should be 1972 instead.

ds_world
Автор

this code will wrong answers for many reason because the biggest error is the daysofweek array should start with friday and not sunday as 1/1/1971 is friday and not sunday and leap year check is also wrong.

amrityadav
Автор

bro, y have taken sum=4 ? if you are taking starting date from1/1/1971 then why 31dec 1970 ????

PIYUSH-lzzq
visit shbcf.ru