Tip 1: Complete 500 high-quality questions.
Tip 2: Include some significant projects on your resume.
Tip 1: Include projects on your resume.
Tip 2: Avoid putting false information on your resume.



You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .
Return true if the given string 'S' is balanced, else return false.
For example:'S' = "{}()".
There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
Sample Input : [()]{}{[()()]()}
Sample Output :Balanced
Explanation Of the Sample Input :
There is always an opening brace before a closing brace i.e. '{' before '}', '(' before '), '[' before ']'.
So the 'S' is Balanced.
Use stack



BFS Transversal in a graph.
Use queue to solve this



DFS Transversal of a graph
Use stack approach



You are given an array “arr'' of integers. Your task is to find the contiguous subarray within the array which has the largest product of its elements. You have to report this maximum product.
An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end.
For e.g.- The non-empty subarrays of an array [1,2,3] will be- [1],[2],[3],[1,2],[2,3],[1,2,3].
For Example:If arr = {-3,4,5}.
All the possible non-empty contiguous subarrays of “arr” are {-3}, {4}, {5}, {-3,4}, {4,5} and {-3,4,5}.
The product of these subarrays are -3, 4, 5, -12, 20 and -60 respectively.
The maximum product is 20. Hence, the answer is 20.
Use greedy approach


Given an undirected graph of 'V' vertices and 'E' edges. Return true if the graph contains a cycle or not, else return false.
Example:Given N=3, M =2, and edges are (1, 2) and (2, 3), with nodes 1, 2, and 3.
We return false because the given graph does not have any cycle.
Simple DFS approach

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?