Is there a site with code puzzles like chess puzzles?
Similar to https://www.chesspuzzles.com/mate-in-three, is there a website that presents you with some prewritten code that you can edit slightly to get the desired result?
Or try the games of Tomorrow Corporation and Zachtronics.
leetcode.com :) I know this is what you're looking for.