Complete-Preparation

πŸŽ‰ One-stop destination for all your technical interview Preparation πŸŽ‰

View the Project on GitHub

Leetcode Problem 1300-1399

1305. All Elements in Two Binary Search Trees 🌟🌟

Most intuitive Solution

By inorder traversal and merge sort


1332. Remove Palindromic Subsequences 🌟

using reverse function

Checking if string is palindrome


1337. The K Weakest Rows in a Matrix 🌟


1365. How Many Numbers Are Smaller Than the Current Number 🌟

O(N^2) Time solution

O(N) Time O(N) space optimization


1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 🌟🌟

DFS


1389. Create Target Array in the Given Order 🌟

O(N^2) Time solution

O(N*logN) based on β€œsmaller elements after self”.


1359. Count All Valid Pickup and Delivery Options 🌟🌟

DP Solution