840. Magic Squares In Grid
A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all […]
A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all […]
Given an array arr of n integers. Your task is to write a program to find the maximum value of ∑arr[i]*i, where i = 0,
You start at the cell (rStart, cStart) of an rows x cols grid facing east. The northwest corner is at the first row and
Convert a non-negative integer num to its English words representation. Example 1: Input: num = 123 Output: “One Hundred Twenty Three” Example
Given two sorted arrays arr1 and arr2 and an element k. The task is to find the element that would be at the kth position of
You are given a string word containing lowercase English letters. Telephone keypads have keys mapped with distinct collections of lowercase English letters, which can
You are given a string str in the form of an IPv4 Address. Your task is to validate an IPv4 Address, if
A distinct string is a string that is present only once in an array. Given an array of strings arr, and an integer k, return the kth distinct string present
Given a binary tree, return an array where elements represent the bottom view of the binary tree from left to right.
You are given the array nums consisting of n positive integers. You computed the sum of all non-empty continuous subarrays from the array and
You are given timings of n meetings in the form of (start[i], end[i]) where start[i] is the start time of meeting i and end[i] is the finish time