# LeetCode 119. Pascal’s Triangle II

Description https://leetcode.com/problems/pascals-triangle-ii/ Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal’s triangle. In Pascal’s triangle, each number is the sum of the…

Be a Good Techer and Tech for Good. www.goodtecher.com

Description https://leetcode.com/problems/pascals-triangle-ii/ Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal’s triangle. In Pascal’s triangle, each number is the sum of the…

Description https://leetcode.com/problems/reformat-phone-number/ You are given a phone number as a string number. number consists of digits, spaces ‘ ‘, and/or dashes ‘-‘. You would like…

Description https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/ Given two integer arrays startTime and endTime and given an integer queryTime. The ith student started doing their homework at the time startTime[i] and finished it at…

Description https://leetcode.com/problems/minimum-distance-to-the-target-element/ Given an integer array nums (0-indexed) and two integers target and start, find an index i such that nums[i] == target and abs(i – start) is minimized. Note that abs(x) is the absolute…

Description https://leetcode.com/problems/path-crossing/ Given a string path, where path[i] = ‘N’, ‘S’, ‘E’ or ‘W’, each representing moving one unit north, south, east, or west, respectively. You start…

Description https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop/ Given the array prices where prices[i] is the price of the ith item in a shop. There is a special discount for items in…

Description https://leetcode.com/problems/sort-array-by-parity-ii/ Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array…

Description https://leetcode.com/problems/set-mismatch/ You have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error,…

Description https://leetcode.com/problems/slowest-key/ A newly designed keypad was tested, where a tester pressed a sequence of n keys, one at a time. You…

Description https://leetcode.com/problems/sentence-similarity/ We can represent a sentence as an array of words, for example, the sentence “I am happy with leetcode” can be represented…