
[LeetCode/easy/Array] Pascal's triangle
·
알고리즘/LeetCode
https://leetcode.com/problems/pascals-triangle/ Pascal's Triangle - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com vector generate(int numRows) { vector ans(numRows); ans[0].push_back(1); for(int i=1; i