LeetCode 944. Delete Columns to Make Sorted
Description https://leetcode.com/problems/delete-columns-to-make-sorted/ You are given an array of n strings strs, all of the same length. The strings can be arranged such that…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/delete-columns-to-make-sorted/ You are given an array of n strings strs, all of the same length. The strings can be arranged such that…
Description https://leetcode.com/problems/squares-of-a-sorted-array/ Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: Input:…
Description https://leetcode.com/problems/shortest-distance-to-a-character/ Given a string s and a character c that occurs in s, return an array of integers answer where answer.length == s.length and answer[i] is the distance from index i to the closest occurrence of character c in s.…
Description https://leetcode.com/problems/find-common-characters/ Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element…
Description https://leetcode.com/problems/find-common-characters/ Given an array A of strings made only from lowercase letters, return a list of all characters that show up…
Description https://leetcode.com/problems/unique-number-of-occurrences/ Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each…
Description https://leetcode.com/problems/robot-return-to-origin/ There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence…
Description https://leetcode.com/problems/self-dividing-numbers/ A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing…
Description https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/ Given a m x n matrix grid which is sorted in non-increasing order both row-wise and column-wise, return the number of negative numbers in grid. Example…
Description https://leetcode.com/problems/find-numbers-with-even-number-of-digits/ Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: nums =…