1568. Minimum Number of Days to Disconnect Island
You are given an m x n binary grid grid where 1 represents land and 0 represents water. An island is a maximal 4-directionally (horizontal or vertical) connected group of 1‘s. The grid […]
You are given an m x n binary grid grid where 1 represents land and 0 represents water. An island is a maximal 4-directionally (horizontal or vertical) connected group of 1‘s. The grid […]
Given a set of n jobs where each jobi has a deadline and profit associated with it. Each job takes 1 unit of time to complete
An n x n grid is composed of 1 x 1 squares where each 1 x 1 square consists of a ‘/’, ‘\’, or blank space ‘ ‘. These
Given the head of a singly linked list, the task is to rotate the linked list clockwise by k nodes, i.e., left-shift the linked list by k nodes, where k is a
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