LCLakshit Chiranjiv Sagarintechie-sagar.hashnode.dev·Sep 19, 2023 · 2 min readFind the Duplicate NumberProblem Statement Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated number in nums, return this repeated number. You must solve the problem without modifying the ...00
LCLakshit Chiranjiv Sagarintechie-sagar.hashnode.dev·Jun 14, 2023 · 3 min readMinimum Absolute Difference in BSTProblem Statement:- Given the root of a Binary Search Tree (BST), return the minimum absolute difference between the values of any two different nodes in the tree. Link: https://leetcode.com/problems/minimum-absolute-difference-in-bst/description/ Pr...00
LCLakshit Chiranjiv Sagarintechie-sagar.hashnode.dev·Jun 13, 2023 · 2 min readEqual Row and Column PairsProblem Statement:- Given a 0-indexed n x n integer matrix grid, return the number of pairs (r<sub>i</sub>, c<sub>j</sub>) such that row r<sub>i</sub> and column c<sub>j</sub> are equal. A row and column pair is considered equal if they contain the s...00
LCLakshit Chiranjiv Sagarintechie-sagar.hashnode.dev·Jun 12, 2023 · 3 min readSummary RangesProblem Statement:- You are given a sorted unique integer array nums. A range [a,b] is the set of all integers from a to b (inclusive). Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, each element o...00
LCLakshit Chiranjiv Sagarintechie-sagar.hashnode.dev·Jun 11, 2023 · 4 min readSnapshot ArrayProblem Statement:- Implement a SnapshotArray that supports the following interface: SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0. void set(index, val) sets the element a...00