### Leetcode Solution - Best Time to Buy and Sell Stock

Problem Statement You are given an array prices where prices[i] is the price of…

Problem Statement You are given an array prices where prices[i] is the price of…

In this post, we will see some of the frequently used concepts/vocabulary in…

System design interview is pretty common these days, specially if you are having…

Introduction You are given an array of integers with size N, and a number K…

Graph Topological Sorting This is a well known problem in graph world…

Problem Statement Given a Binary tree, print out nodes in level order traversal…

Problem Statement Given an array nums of n integers and an integer target, are…

Problem Statement You are given a string text of words that are placed among…

Problem Statement You are given a rows x cols matrix grid. Initially, you are…

Problem Statement Given a string s, return the maximum number of unique…

Problem The Leetcode file system keeps a log each time some user performs a…

Problem Statement Replace all spaces in a string with ‘%20’ (three characters…

Problem Implement an algorithm to determine if a string has all the characters…

Problem Statement Given a string, determine if it is a palindrome, considering…

Problem Statement Given two strings s and t , write a function to determine if t…

Problem Statement Given a string, find the first non-repeating character in it…

Problem Statement Write a function that reverses a string. The input string is…

Problem Statement You are given an n x n 2D matrix representing an image, rotate…

Problem Statement Determine if a 9x9 Sudoku board is valid. Only the filled…

Problem Statement Given a non-empty array of digits representing a non-negative…

Problem Statement Given an array nums, write a function to move all 0’s to the…