Leetcode 2390. Removing Stars From a String | Weekly Contest 308.

Sdílet
Vložit
  • čas přidán 27. 08. 2022
  • Use coupon ALISHA on any GeeksforGeeks course to get 10% discount:
    practice.geeksforgeeks.org/co...
    Connect with me on LinkedIn : / alisha-parveen-80579850
    Check out our other playlists:
    Dynamic Programming:
    • Dynamic Programming
    Trees:
    • Trees
    Heaps and Maps:
    • Heaps and Maps
    Arrays and Maths:
    • Arrays and Maths
    Bit Manipulation:
    • Bit Manipulation
    Greedy Algorithms:
    • Greedy Algorithms
    Sorting and Searching:
    • Sorting and Searching
    Strings:
    • Strings
    Linked Lists:
    • Linked Lists
    Stack and Queues:
    • Stacks and Queues
    Two Pointers:
    • Two pointers
    Graphs, BFS, DFS:
    • Graphs, DFS, BFS
    Backtracking:
    • Backtracking
    Non- DSA playlists:
    Probability:
    • Probability
    SQL-Basic Join functions:
    • SQL - Basic JOIN Funct...
    SQL-Basic Aggregate functions:
    • SQL-Basic Aggregate Fu...

Komentáře • 18

  • @probabilitycodingisfunis1

    int j=0;
    for(int i=0;i

  • @AbhishekGoyal
    @AbhishekGoyal Před rokem

    Thankyou for the solution !!

  • @vidhyanandini6270
    @vidhyanandini6270 Před rokem

    Thanks a ton Alisha.. Both the solutions were great :)

  • @sarankumaar6009
    @sarankumaar6009 Před rokem

    I can't even think of a solution using two pointer in contest. thanks for the video mam.

  • @IrfanSoftwareEngineer
    @IrfanSoftwareEngineer Před 10 měsíci

    Thank U mam

  • @bharatpathak6484
    @bharatpathak6484 Před rokem

    very helpful, keep it up 👍👍

  • @vibhavsharma2724
    @vibhavsharma2724 Před rokem

    Best explanation . Thanks 👍

  • @vidhyanandini6270
    @vidhyanandini6270 Před rokem

    You are amazing as usual.

  • @itsmevkv8740
    @itsmevkv8740 Před rokem

    This approach >>>>>>>>>>>>>>>>>>>> my approach using loops somethng somethng

  • @abhaythakur2597
    @abhaythakur2597 Před rokem

    very well explained

  • @sumitchoube3875
    @sumitchoube3875 Před rokem +1

    Hey can share if you are using tabet and pencil for drawing or alternate device only with touch functionality which is synced to computer ?

  • @vitaminprotein2217
    @vitaminprotein2217 Před rokem

    can anyone help why this sol is giving tle as when i dry runned ,it working fine
    for(int i=0;i0){
    s.erase(i-1,2);//star and its prev char would be erased
    i--;
    }
    }
    else i++;
    }
    return s;

  • @9211Guddu
    @9211Guddu Před rokem

    Stacks might help

  • @reshmaparveen6679
    @reshmaparveen6679 Před rokem

    Very nice ❤️❤️❤️❤️

  • @kashifahmed_1995
    @kashifahmed_1995 Před 10 měsíci

    Python solution
    def removeStar(str1):
    lst = list(str1)
    final = ''
    print(lst)
    i = 0
    for i in range(len(str1)):
    if str1[i] == '*':
    final=final[0:-1]
    continue
    else:
    final += str1[i]
    return final
    One of the possible solution in python

  • @gamesday1695
    @gamesday1695 Před rokem

    you taken I=0,j=0,I don't understand

  • @dheerajgulati4559
    @dheerajgulati4559 Před rokem

    well explained