ProDeveloperTutorialonDecember 24, 2024 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: Input: [ [1,1,1], [1,0,1], [1,1,1] ] Output: [ [1,0,1], [0,0,0], [1,0,1] ] Example 2: Input: [ [0,1,2,0], [3,4,5,2], [1,3,1,5] ]… Discover More
ProDeveloperTutorialonDecember 24, 2024 Jump Game II in CPP Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents… Discover More
ProDeveloperTutorialonDecember 24, 2024 Simplify Path CPP Given an absolute path for a file (Unix-style), simplify it. For example, path = “/home/”, => “/home” path =… Discover More
ProDeveloperTutorialonDecember 24, 2024 Minimum Path Sum in CPP Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along… Discover More
ProDeveloperTutorialonDecember 24, 2024 Unique Paths II in CPP Problem Explanation: A robot is located at the top-left corner of a m x n grid. The robot can only move either down or right at any point in… Discover More
ProDeveloperTutorialonDecember 24, 2024 Unique Paths Solution in CPP A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The robot can only move either… Discover More
ProDeveloperTutorialonDecember 24, 2024 Rotate linked list by k nodes Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1->2->3->NULL Explanation: rotate 1 steps to the… Discover More
ProDeveloperTutorialonDecember 24, 2024 Intersection of Two Linked Lists in c++ Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A:… Discover More
ProDeveloperTutorialonDecember 24, 2024 Wildcard Matching Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for ‘?’ and ‘*’.… Discover More
ProDeveloperTutorialonDecember 24, 2024 Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order in C++ Input: 3 Output: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ] Before looking into the solution, I recommend you to please go through print matrix… Discover More