LeetCode - 1306. Jump Game III | Day 9 December Challenge
Aditya Mahajan
Problem: https://leetcode.com/problems/jump-game-iii/ Code Link: https://github.com/skystone1000/LeetCode
December Challenge 2021 - Day 9 1306. Jump Game III
TIMESTAMPS 0:00 Intro 0:19 Question 0:41 Examples 2:20 Approach 1 - DFS 4:14 Approach 1 - Code 6:16 Approach 2 - BFS 7:20 Approach 2 - Code 10:09 Output
Approach We do have basically two operations to perform that is traversal in both directions and then checking if our condition is satisfied so we need to think in terms of traversals and which gives us two options
- DFS - Taking one possibility and after its validated move to second and so on.
- BFS - Take all possibilities and move one step for each one at a time.
š Social Media š
š LinkedIn: https://www.linkedin.com/in/adityamahajan123/ š GitHub: https://github.com/skystone1000/ šø Instagram: https://www.instagram.com/skystone1000/ š Chess.com : https://www.chess.com/member/skystone1000 ā Discord Server: https://discord.gg/ZPWzT5QWDC
ā” Please leave a LIKE and SUBSCRIBE for more content! ā”
ā Tags ā
- Aditya Mahajan
ā Hashtags ā #leetcode #1306Leetcode ... https://www.youtube.com/watch?v=g8CSlsuc2lk
57502803 Bytes