Problem 1: Reverse Words in a String You are given a string of length N. You need to reverse the string word by word. There can be multiple spaces between two words and there can be leading or tra...

# Binary Tree I | Striver’s SDE Sheet

Problem 1: Reverse Words in a String You are given a string of length N. You need to reverse the string word by word. There can be multiple spaces between two words and there can be leading or tra...

# String II | Striver’s SDE Sheet

Problem 1: Reverse Words in a String You are given a string of length N. You need to reverse the string word by word. There can be multiple spaces between two words and there can be leading or tra...

# String I | Striver’s SDE Sheet

# Stack & Queue II | Striver’s SDE Sheet

Problem 1: Nth Root Of M You are given two positive integers N and M. You have to find the Nth root of M i.e. M^(1/N). Code Studio GFG Worst Import math library and use built-in methods. ...

# Stack & Queue I | Striver’s SDE Sheet

Problem 1: Nth Root Of M You are given two positive integers N and M. You have to find the Nth root of M i.e. M^(1/N). Code Studio GFG Worst Import math library and use built-in methods. ...

# Heap | Striver’s SDE Sheet

Problem 1: Nth Root Of M You are given two positive integers N and M. You have to find the Nth root of M i.e. M^(1/N). Code Studio GFG Worst Import math library and use built-in methods. ...

# Binary Search | Striver’s SDE Sheet

# Backtracking | Striver’s SDE Sheet

Problem 1: Subset Sums Given a list arr of N integers, print sums of all subsets in it. Note: Return all the element is increasing order. Geeks For Geeks Brute class Solution { public: ...

# Array I | Striver’s SDE Sheet

Problem 1 Find the duplicate in an array of N+1 integers. Leetcode Worst Just apply mergesort Time Complexity: $ O(nlogn) $ Auxiliary Space: $ O(n) $ Better Count the occurences of 0,1,...

# August | 2022 | Leetcoding Challenge

01 July | 62. Unique Paths There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., $grid[0][0]$). The robot tries to move to the bottom-right corner (i.e., ...

# August | 2022 | POTD GFG

01 | Egg Dropping Puzzle You are given N identical eggs and you have access to a K-floored building from $1$ to $K$. There exists a floor f where $0 <= f <= K$ such that any egg dropped at ...

# Setting up MacOS

Basic Setup /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew update brew install git vim go python curl https://bootstrap.pypa.io/get-pip.py ...

# Vim Cheat Sheet

File Management :q Exit :q! / ZQ Forceful exit SSH ssh-copy-id ...

# Week 3 | Grind 169 | Blind 75

1. Same Tree Given the roots of two binary trees p and q, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical, and t...

# Setting up Manjaro Linux

Basic Setup sudo pacman -Syu sudo pacman -S --needed base-devel git vim noto-fonts-emoji python-pip Gnome Change the scaling factor, if using small screen with small pixel resolution. sud...

# July | 2022 | Leetcoding Challenge

01 July | 1710. Maximum Units on a Truck You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where $boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBox-i...

# July | 2022 | POTD GFG

01 July | Matrix Exponentiation Given an equation of the form $f(n) = f(n-1) + f(n-2)$ where $f(0) = 1$ , $F(1) = 1$ , the task is to find the nth term of this sequence. Practice O(n) int F...

# June | 2022 | POTD GFG

28 June | Sum of elements between k1’th and k2’th smallest elements Given an array $A[ ]$ of $N$ positive integers and two positive integers $K1$ and $K2$. Find the sum of all elements between $K_...

# June | 2022 | Leetcoding Challenge

21 June | 1642. Furthest Building You Can Reach You are given an integer array heights representing the heights of buildings, some bricks, and some ladders. You start your journey from building 0...