LeetCode 120. Triangle
Description https://leetcode.com/problems/triangle/ Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/triangle/ Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an…
Description https://leetcode.com/problems/insert-interval/ Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that…
Description https://leetcode.com/problems/search-a-2d-matrix/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following…
Description https://leetcode.com/problems/distance-between-bus-stops/ A bus has n stops numbered from 0 to n – 1 that form a circle. We know the distance between all pairs of neighboring stops…
Description https://leetcode.com/problems/reformat-the-string/ Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find…
Description https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/ You are given an array of distinct integers arr and an array of integer arrays pieces, where the integers in pieces are distinct. Your goal is…
Description https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/ Given an array nums, return true if the array was originally sorted in non-decreasing order, then rotated some number of positions (including zero).…
Description https://leetcode.com/problems/find-and-replace-pattern/ Given a list of strings words and a string pattern, return a list of words[i] that match pattern. You may return the answer in any order.…
Description https://leetcode.com/problems/longer-contiguous-segments-of-ones-than-zeros/ Given a binary string s, return true if the longest contiguous segment of 1s is strictly longer than the longest contiguous segment of 0s in s. Return false otherwise. For example, in s…
Description https://leetcode.com/problems/count-sorted-vowel-strings/ Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lexicographically sorted. A…