menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Data Science News

>

Resonant C...
source image

Dev

1w

read

293

img
dot

Image Credit: Dev

Resonant Collinearity

  • The author explains their understanding of how to approach finding antinodes in a grid of ligatures through a clear visual illustration.
  • They then break down how to determine antinodes algorithmically by finding slope of lines, and prepare to start coding.
  • Once they perfect the loop for finding individual antinodes, they move on to finding all antinodes for frequencies of three, rather than just two, antennas.
  • The algorithm changes to walking along the line in both directions until I am about to step out of bounds.
  • The author then ran their algorithm on the example input and their puzzle input, generating the correct answer for both.

Read Full Article

like

17 Likes

For uninterrupted reading, download the app