Category: math
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You …
The product sum of two equal-length arrays a and b is equal to the sum of a * b for all 0 <= i < a.length (0-indexed). For example, …
Teaching Kids Programming: Videos on Data Structures and Algorithms There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x …
Given two n x n binary matrices mat and target, return true if it is possible to make mat equal to target by rotating mat in 90-degree increments, or …
Teaching Kids Programming: Videos on Data Structures and Algorithms You’ve got an integer n representing a chessboard of size n x n. Return the number of ways you can …