Author name: Admin

Root to leaf path sum

gfg-potd

Given a binary tree and an integer target, check whether there is a root-to-leaf path with its sum as target. Examples : Input: tree

91. Decode Ways

leetcode-potd

A message containing letters from A-Z can be encoded into numbers using the following mapping: ‘A’ -> “1” ‘B’ -> “2” … ‘Z’ ->

85. Maximal Rectangle

leetcode-potd

Given a rows x cols binary matrix filled with 0‘s and 1‘s, find the largest rectangle containing only 1‘s and return its area. Example 1: Input: matrix =

Scroll to Top