• + 2 comments

    Nice, but I don't like the entaglement in beautifulDays of the looping through range with the algorithm itself that decides to put an 1 or not depending on the (day - reverse of the day) is divisible or not by k. I would disentangle the looping and the filtering by the problem condition in 2 separate functions, and the algorithm will become more readable.