We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
// Day of the ProgrammerfuncdayOfProgrammer(yearint32)string{varday=13ifyear==1918{day=26}elseif(year<1917&&year%4==0)||(year>1917&&(year%400==0||(year%4==0&&year%100!=0))){day=12}returnfmt.Sprintf("%v.09.%v",day,year)}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →
My Golang solution