← All problems
Medium · Math & Geometry

Insert Greatest Common Divisors in Linked List

Insert the greatest common divisor between each adjacent pair of linked nodes.

Full problem and submission ↗
main.js

Console

Ready