menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Weekly Challenge
source image

Dev

1w

read

96

img
dot

Image Credit: Dev

Weekly Challenge

  • The Weekly Challenge is a coding challenge where participants come up with solutions to two tasks each week.
  • Task 1 involves finding the day number of the year for a given date in YYYY-MM-DD format.
  • Solutions in Python involve checking the input format, parsing the date, and using date-related modules to compute the day of the year.
  • Perl solutions utilize the Date::Calc CPAN module for the same task.
  • Examples for Task 1 are given for different dates.
  • Task 2 requires decompressing a list of pairs of integers.
  • Solutions involve iterating over the list, picking adjacent pairs, and decompressing them by repeating the second element a defined number of times.
  • Python and Perl solutions are provided for Task 2.
  • Examples for Task 2 demonstrate the decompressed lists for given input lists.

Read Full Article

like

5 Likes

For uninterrupted reading, download the app