Max Rectangle Sum in a Matrix
Extension of Kadane's algorithm in 2D
Apr 30, 20216 min read429

Search for a command to run...
Articles tagged with #competitive-programming
Extension of Kadane's algorithm in 2D

LeetCode Problem: 319

The order of the statements play an important role

via Bubble Sort Algorithm

Given a Binary Tree you need to print the top view and bottom view of the Binary Tree. Level order input for the Binary Tree is given. 1. Top view sample input: 1 2 3 4 5 6 -1 -1 -1 -1 -1 -1 -1 sample output: 4 2 1 3 The tree looks like: ...

Given a Binary Tree, you need to print the Left view and right view of a Binary Tree. Level Order input for the Binary Tree is given. 1. Left View sample input: 1 2 3 4 5 -1 6 -1 -1 -1 -1 -1 -1 sample output: 1 2 4 The tree looks like: ...
