Author name: Admin

Closest Three Sum

gfg-potd

Given an array, arr of integers, and another number target, find three integers in the array such that their sum is closest to

1518. Water Bottles

leetcode-potd

There are numBottles water bottles that are initially full of water. You can exchange numExchange empty water bottles from the market with one full

Ancestors in Binary Tree

gfg-potd

Given a Binary Tree and an integer target. Find all the ancestors of the given target. Note: The ancestor of node x is node y, which is

Duplicate Subtrees

gfg-potd

Given a binary tree, your task is to find all duplicate subtrees from the given binary tree. Duplicate Subtree : Two

Scroll to Top