menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Advent of ...
source image

Dev

4w

read

102

img
dot

Image Credit: Dev

Advent of Code 2024 - Day 14 : Restroom Redoubt

  • Day 14 of Advent of Code 2024 focuses on simulating robot movement and calculating the safety factor.
  • The simulation involves parsing robot data, calculating new positions using a formula, and counting robots in each quadrant.
  • In Part 2, the program detects the 'Christmas tree' pattern by tracking the time when robots cluster into a tight formation.
  • The method works by shrinking a bounding box, calculating density, and identifying the time step with the highest density.

Read Full Article

like

6 Likes

For uninterrupted reading, download the app