LeetCode - 118. Pascal's Triangle | Day 21 June Challenge
Aditya Mahajan
Problem: https://leetcode.com/problems/pascals-triangle/ Code Link: https://github.com/skystone1000/Coding-Problems/tree/master/Leet%20Code/June%20Challenge%202021
June Challenge 2021 - Day 21 118. Pascal's Triangle
TIMESTAMPS 0:00 Intro 0:20 Question & Approach 2:26 Visualisation 3:30 Dp - Code 5:59 Output
We start with making the triangle shifting columns so that they align left side and its easy to look at the indices and we do not go out of bounds, we can fill the DP table(output to be returned) with two for loops one taking into the account each layer and other nested to fill all the elements in a particular layer.
š 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 #118Leetcode ... https://www.youtube.com/watch?v=nFxcJLasoOM
36438930 Bytes