Domanda di colloquio di TikTok

Some Dynamics Programming question And code gradient descent update