2400. Number of Ways to Reach a Position After Exactly k Steps (Leetcode Medium)

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

#leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

Hi Larry, can you please explain to me why are you returning the sum of go(x+1, left-1) and go(x-1, left-1) ? Are we doing mutliple paths in this one line or just one? I am new to graph algos so Im not too sure whats happening.

SmoothCode