Buddy and Experiments
CodeChefOpen on judge ↗
Buddy is new to Machine Learning. So he starts with gradient descent. While learning, He came up with an idea to experiment with. He starts with an initial parameter A, an expected parameter B, and a learning rate C. At every step, he adds to A, C times the sum of A and B. More formally at every step he does A = A+ C(B+A). He realizes that this grows very fast and soon goes out of his control. S
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start