Author name: Admin

2375. Construct Smallest Number From DI String

leetcode-potd

You are given a 0-indexed string pattern of length n consisting of the characters ‘I’ meaning increasing and ‘D’ meaning decreasing. A 0-indexed string num of length n + 1 is created using the following conditions: num consists of the

Pair Sum in BST

gfg-potd

Given a Binary Search Tree(BST) and a target. Check whether there’s a pair of Nodes in the BST with value summing

Scroll to Top