LeetCode 867. Transpose Matrix
Description https://leetcode.com/problems/transpose-matrix/ Given a 2D integer array matrix, return the transpose of matrix. The transpose of a matrix is the matrix flipped over its main diagonal, switching…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/transpose-matrix/ Given a 2D integer array matrix, return the transpose of matrix. The transpose of a matrix is the matrix flipped over its main diagonal, switching…
Description https://leetcode.com/problems/three-consecutive-odds/ Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false. Example 1:…
Description https://leetcode.com/problems/build-an-array-with-stack-operations/ Given an array target and an integer n. In each iteration, you will read a number from list = {1,2,3…, n}. Build…
Description https://leetcode.com/problems/moving-average-from-data-stream/ Given a stream of integers and a window size, calculate the moving average of all integers in the…
Description https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence/ Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two…
Description https://leetcode.com/problems/toeplitz-matrix/ Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix is Toeplitz if every diagonal from top-left…
Description https://leetcode.com/problems/next-greater-element-i/ You are given two integer arrays nums1 and nums2 both of unique elements, where nums1 is a subset of nums2. Find all the next greater numbers for nums1‘s…
Description https://leetcode.com/problems/available-captures-for-rook/ On an 8 x 8 chessboard, there is exactly one white rook ‘R’ and some number of white bishops ‘B’, black pawns ‘p’, and empty squares ‘.’.…
Description https://leetcode.com/problems/find-nearest-point-that-has-the-same-x-or-y-coordinate/ You are given two integers, x and y, which represent your current location on a Cartesian grid: (x, y). You are also…
Description https://leetcode.com/problems/largest-unique-number/ Given an array of integers A, return the largest integer that only occurs once. If no integer occurs once,…