@aslambeg84@coolcoder56 If the complexity is amortised then according to you what should someone say in an interview? It has no complexity, it just flies in the air?
Does your college teaches how to prove this?
Day 43 of #SDESheetChallenge solved
Topic: Binary Search Tree
Q1. Two sum in BST
Q2. BST iterator
Q3. Size of largest BST in Binary Tree
Q4. Serialize and De-serialize BT
@striver_79@takeUforward_
Day 41 of #SDESheetChallenge solved
TOPIC: Binary Search Tree
Q1. Construct BST from preorder
Q2. Check valid BST
Q3. LCA in BST
Q4. Inorder Successor and predecessor in BST
@striver_79@takeUforward_