#leetcode
Read more stories on Hashnode
Articles with this tag
4 Rules For the outer loop, count the no of lines For the inner loop, focus on the no of columns Print the ‘*” inside the inner for loop Observe...
Problem Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from...
Problem You are given an array of CPU tasks, each represented by letters A to Z, and a cooling time, n. Each cycle or interval allows the completion...
Problem Given an integer array nums and an integer k, return the k<sup>th</sup> largest element in the array. Note that it is the k<sup>th</sup>...
Problem Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of...
Problem Given an undirected graph and an integer M. The task is to determine if the graph can be colored with at most M colors such that no two...