Minimum Add to Make Parentheses Valid | LeetCode | Hindi | Problem Solving | FAANG | Shashwat

Sdílet
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

Komentáře • 8

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  Před rokem

    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

  • @user-oi5ls4rs5g
    @user-oi5ls4rs5g Před 6 měsíci +1

    best explaination

  • @shabnamparveen4572
    @shabnamparveen4572 Před rokem +1

    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!

  • @AyushKumar-fk5lm
    @AyushKumar-fk5lm Před 2 lety +2

    New to this channel. But I'm absolutely loving it😍 Thankkkkk youuuuu sirrrrr!!

  • @Vivek-yb7bo
    @Vivek-yb7bo Před 2 lety

    Great bro my doubts are cleared😊

  • @souravde3894
    @souravde3894 Před 22 dny

    public class Solution {
    public int solve(String A) {
    int bal = 0,ans = 0;
    for(int i = 0; i

  • @nikitajaiswal9112
    @nikitajaiswal9112 Před 2 lety

    Aapki koi sister h jo sait m pdti h?