Minimum Add to Make Parentheses Valid | LeetCode | Hindi | Problem Solving | FAANG | Shashwat
Vložit
- čas přidán 16. 09. 2021
- Java Plus DSA Complete Placement Course:
• Java and DSA Course Pl...
Coding Interview Problem Playlist:
• Problem Solving | Prod...
Problem Statement:
A parentheses string is valid if and only if:
It is the empty string,
It can be written as AB (A concatenated with B), where A and B are valid strings, or
It can be written as (A), where A is a valid string.
You are given a parentheses string s. In one move, you can insert a parenthesis at any position of the string.
For example, if s = "()))", you can insert an opening parenthesis to be "(()))" or a closing parenthesis to be "())))".
Return the minimum number of moves required to make s valid.
Problem Link:
leetcode.com/problems/minimum...
Solution Snippet:
github.com/Tiwarishashwat/Int...
Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe
Instagram Handle: (@shashwat_tiwari_st)
shashwattiwari.page.link/shas...
#ShashwatTiwari #coding #problemsolving #leetcode #hackerrank #hackerearth #codechef #codesignal #algorithms #javaprogramming #sde #placement #programming
#coding #programming #programmer #python #developer #code #javascript #coder #computerscience #technology #java #codinglife #html #webdeveloper #tech #webdevelopment #css #software #webdesign #softwaredeveloper #linux #programmers #softwareengineer #php #programmingmemes #machinelearning #programminglife #pythonprogramming #codingisfun
This is a very old video, for better sound and camera quality DSA videos, learn from the below playlist!
Java Plus DSA ( Java + DSA + Problem Solving )
czcams.com/play/PLQ7ZAf76c0ZPVdhV1bAjFv0bQc1xHURzE.html
best explaination
mai ne aap ka ye video bas 5:46 tak hi dekha aur sir aap ne itne ache se samjhaya ki ye question mai ne khud hi code kar liya, thanks a lot!
ok
New to this channel. But I'm absolutely loving it😍 Thankkkkk youuuuu sirrrrr!!
Great bro my doubts are cleared😊
public class Solution {
public int solve(String A) {
int bal = 0,ans = 0;
for(int i = 0; i
Aapki koi sister h jo sait m pdti h?