depth-first-search

Minesweeper LeetCode Solution

Here, we see a Minesweeper LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Minesweeper LeetCode Solution 1. Problem Statement Let’s play the minesweeper game (Wikipedia, online game)! You are given an m x n char matrix board representing the game board where: […]

Minesweeper LeetCode Solution Read More »

Leetcode Solution

Number of Islands LeetCode Solution

Here, we see the Number of Islands LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Number of Islands LeetCode Solution 1. Problem Statement Given an m x n 2D binary grid grid which represents a map of ‘1’s (land) and ‘0’s (water), return the

Number of Islands LeetCode Solution Read More »

Leetcode Solution

Binary Tree Right Side View LeetCode Solution

Here, we see the Binary Tree Right Side View LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Binary Tree Right Side View LeetCode Solution 1. Problem Statement Given the root of a binary tree, imagine yourself standing on the right

Binary Tree Right Side View LeetCode Solution Read More »

Leetcode Solution

House Robber III LeetCode Solution

Here, we see a House Robber III LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution House Robber III LeetCode Solution 1. Problem Statement The thief has found himself a new place for his thievery again. There is only

House Robber III LeetCode Solution Read More »

Leetcode Solution

Find Bottom Left Tree Value LeetCode Solution

Here, we see a Find Bottom Left Tree Value LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Find Bottom Left Tree Value LeetCode Solution 1. Problem Statement Given the root of a binary tree, return the leftmost value in the

Find Bottom Left Tree Value LeetCode Solution Read More »

Leetcode Solution

Repeated DNA Sequences LeetCode Solution

Here, we see a Repeated DNA Sequences LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Repeated DNA Sequences LeetCode Solution 1. Problem Statement The DNA sequence is composed of a series of nucleotides abbreviated as ‘A’, ‘C’, ‘G’, and ‘T’. When studying DNA, it is

Repeated DNA Sequences LeetCode Solution Read More »

Leetcode Solution

Evaluate Reverse Polish Notation LeetCode Solution

Here, we see an Evaluate Reverse Polish Notation LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Evaluate Reverse Polish Notation LeetCode Solution 1. Problem Statement You are given an array of strings tokens that represents an arithmetic expression in a Reverse

Evaluate Reverse Polish Notation LeetCode Solution Read More »

Leetcode Solution

Maximum Product Subarray LeetCode Solution

Here, we see a Maximum Product Subarray LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Maximum Product Subarray LeetCode Solution 1. Problem Statement Given an integer array nums, find a  subarray that has the largest product, and return the product. The

Maximum Product Subarray LeetCode Solution Read More »

Leetcode Solution

My Calendar II LeetCode Solution

Here, we see a My Calendar II LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution My Calendar II LeetCode Solution 1. Problem Statement You are implementing a program to use as your calendar. We can add a new

My Calendar II LeetCode Solution Read More »

Leetcode Solution

Longest Increasing Path in a Matrix LeetCode Solution

Here, we see a Longest Increasing Path in a Matrix LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Longest Increasing Path in a Matrix LeetCode Solution 1. Problem Statement Given an m x n integers matrix, return the length of the longest

Longest Increasing Path in a Matrix LeetCode Solution Read More »

Leetcode Solution

Reconstruct Itinerary LeetCode Solution

Here, we see a Reconstruct Itinerary LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Reconstruct Itinerary LeetCode Solution 1. Problem Statement You are given a list of airline tickets where tickets[i] = [fromi, toi] represent the departure and the arrival airports of

Reconstruct Itinerary LeetCode Solution Read More »

Leetcode Solution

Remove Invalid Parentheses LeetCode Solution

Here, we see a Remove Invalid Parentheses LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Remove Invalid Parentheses LeetCode Solution 1. Problem Statement Given a string s that contains parentheses and letters, remove the minimum number of invalid parentheses to

Remove Invalid Parentheses LeetCode Solution Read More »

Leetcode Solution

Zuma Game LeetCode Solution

Here, we see a Zuma Game LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Zuma Game LeetCode Solution 1. Problem Statement You are playing a variation of the game Zuma. In this variation of Zuma, there is a single

Zuma Game LeetCode Solution Read More »

Leetcode Solution

Binary Tree Maximum Path Sum LeetCode Solution

Here, we see a Binary Tree Maximum Path Sum LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Binary Tree Maximum Path Sum LeetCode Solution 1. Problem Statement A path in a binary tree is a sequence of nodes where each

Binary Tree Maximum Path Sum LeetCode Solution Read More »

Leetcode Solution

Decode String LeetCode Solution

Here, we see a Decode String LeetCode Solution. This Leetcode problem is solved using different approaches in many programming languages, such as C++, Java, JavaScript, Python, etc. List of all LeetCode Solution Decode String LeetCode Solution 1. Problem Statement Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets

Decode String LeetCode Solution Read More »

Leetcode Solution
Scroll to Top