Get Subsequence - Introduction to Arraylists | Recursion | Data Structures and Algorithms in JAVA

Sdílet
Vložit
  • čas přidán 24. 07. 2020
  • Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
    NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. With this video, we introduce the concept of dynamic array also called as Arraylists. We cover the basic concepts of arraylists and strings and move towards our first question of recursion using arraylists. We also state the problem where we are required to get subsequences from a string using recursion.
    For a better experience and more exercises, VISIT: www.pepcoding.com/resources/o...
    #pepcoding #programming #freeonlinecourses
    Have a look at our result: www.pepcoding.com/placements
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education

Komentáře • 138

  • @preetsinghwal5646
    @preetsinghwal5646 Před 4 lety +24

    Sach bolu to mera ek dost hai jisne aapke yaha se classes thi java foundation or level ki or mai bhi java krta tha to mujhe usme bhot improvement dekha maine usse pucha ki bhai kha se kra tune tb usne btaya but mere ghr se bhit tha or fee bhi afford nhi kr skta tha mai kyuki maine already ek course le rakha tha but mujhe aapki video dekhni bhi to maine aone dost se sikhna shuru kr diya tha byt ab aapne foundation free kr diya hai to, mai to bhot khus hu.
    Thank you sir

    • @Pepcoding
      @Pepcoding  Před 4 lety +5

      beta, agar help mil rhi hai to subscriber juta de. Webinar kra de college mei?

    • @preetsinghwal5646
      @preetsinghwal5646 Před 4 lety +2

      @@Pepcoding sir ho jayenge subs , aap nhi jante kitne log iske liye ghoom rhe thae idar se udar

    • @Pepcoding
      @Pepcoding  Před 4 lety +11

      dilasa na de bhai. FB, Insta pe share kar do maybe. Class groups mei whatsapp kar de maybe. Help is appreciated.

    • @preetsinghwal5646
      @preetsinghwal5646 Před 4 lety +1

      Sir baki maine apne telegram , whatsapp or jha bhi college group h share kr diya h.

    • @preetsinghwal5646
      @preetsinghwal5646 Před 4 lety

      @@Pepcoding Nhi sir sach bolra hu telgram pr, or whatsapp pr college ka group hai waha share kiya h

  • @psychotictendency
    @psychotictendency Před 2 lety +3

    I've been dreading recursion and all questions related to it everytime I prepare for interviews. I recently started watching these videos and I'm just amazed at how clearly you've managed to explain these concepts. Thank you so much sir!!

  • @highoncoding2631
    @highoncoding2631 Před 2 lety +6

    You are doing great work. I was part of Nagarro when you were there. It's good to see you grow because you deserve it.

  • @potato-gi1xr
    @potato-gi1xr Před 2 lety +2

    Thank you so much sir.
    your approach of:
    first make expectations and then fulfill it in recursion is working great.

  • @paurushgargtube
    @paurushgargtube Před 3 lety +24

    awesome explanation.. I am in awe of how in-depth knowledge is provided methodologically in each topic.. must have taken a lot of effort to compile such intelligent videos and present in such simple terms, such that even people like me (thick head) can connect the dots..

    • @Pepcoding
      @Pepcoding  Před 3 lety +4

      Thankyou beta!
      If you like our efforts, will you like to write a review about us here - g.page/Pepcoding/review?rc

  • @TusharSharma-nh9sf
    @TusharSharma-nh9sf Před 2 lety

    Good Guy, Good Explanation, Good Vibes! Thanks Brother.

  • @Aish-dm4np
    @Aish-dm4np Před 3 lety +1

    Best channel for Java coding

  • @raj_kundalia
    @raj_kundalia Před 2 lety

    Watched on 18 October, 2021 - Thanks for the video.

  • @phoenix_king3463
    @phoenix_king3463 Před 2 lety

    It's an outstanding explanation sir thanks a lot for providing such a quality content

  • @artisted9910
    @artisted9910 Před 2 lety +2

    Sir ekdum feeling aa gya sir, cant express

  • @riaria5982
    @riaria5982 Před 3 lety

    awesome explanation!!!!

  • @kushalappaca5324
    @kushalappaca5324 Před 3 lety +4

    Out of the box thinking.... I was doing this the old way of doing this... Thanks to you pepcoding team..

  • @dhirendrachauhan3287
    @dhirendrachauhan3287 Před rokem

    Awesome Explation Sir

  • @fudankumar5206
    @fudankumar5206 Před 2 lety

    Very well explanation.

  • @shreyakotak3754
    @shreyakotak3754 Před 3 lety +13

    As usual, super explanation sir!!

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like my efforts, I request a review
      g.page/Pepcoding/review?rc

  • @tanmaydhawale3532
    @tanmaydhawale3532 Před 2 lety

    Man with zero haters!!

  • @amanpreetsinghsetia1524
    @amanpreetsinghsetia1524 Před 3 lety +1

    brilliantly explained sir thank you :)

    • @Pepcoding
      @Pepcoding  Před 3 lety +2

      Thankyou beta!
      I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @yogesh3779
    @yogesh3779 Před 3 lety +2

    Sir make videos like this one. This video has all the concepts used before doing question and then the explanation of question. Your explanation was so smooth that noone can even forget the explanation after watching video. Make videos like this one, without worrying about the length of video. Absolutely loved it..

    • @Pepcoding
      @Pepcoding  Před 3 lety +3

      Okay beta!
      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review - g.page/Pepcoding/review?rc

    • @thecodersbay8157
      @thecodersbay8157 Před 3 lety

      @@Pepcoding Done Sir

  • @ashishm8850
    @ashishm8850 Před 3 lety

    Bahut bhadiya sir. Dhanyavaad!

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Thankyou beta!
      I am glad you liked it. I also hope that you are watching till the end and trying to understand the what, how, and especially why of the problem. If you like our efforts, will you like to review us here - g.page/Pepcoding/review?rc

  • @ipankaj07
    @ipankaj07 Před 2 lety

    Thanks!

  • @kuldeepsainiiii
    @kuldeepsainiiii Před 2 lety

    great explanation

  • @ritikshrivastava9442
    @ritikshrivastava9442 Před 3 lety +37

    sir this is the first video where it gets little complicated for the one who are learning concept and applying itself(means changing the code to the desired language) like c++

    • @sayanmaitra11
      @sayanmaitra11 Před 3 lety +3

      Dil ki baat kehe di apne to 😄🤣

    • @sayanmaitra11
      @sayanmaitra11 Před 3 lety +9

      After learning vector.... I think it won't get much difficult😣 😄

    • @adityakajale4403
      @adityakajale4403 Před 3 lety

      @@sayanmaitra11 yes

    • @adityakajale4403
      @adityakajale4403 Před 3 lety +4

      Language doesn't matter explanation is op

    • @yashodeepdhas8408
      @yashodeepdhas8408 Před 3 lety +6

      If u know basics of any language and understand the concept I bet u will do it bro 🤜

  • @dhirendrachauhan3287
    @dhirendrachauhan3287 Před rokem

    tnq Sir

  • @Ncrbhaichara
    @Ncrbhaichara Před 2 lety +1

    Sir can we use Sc. nextLine() for string input in place of Sc. next() ?

  • @RahulSharma-oz3dq
    @RahulSharma-oz3dq Před 2 lety +16

    This is the C++ code for this question. Upvote or Pin so that C++ coders can also follow
    vector gss(string s){
    if(s.length()==1){ //In the base case length is taken to be 1 instead of 0 so that it doesnt give any segmentation faults
    vector ans;
    ans.push_back("");
    ans.push_back(s);

    return ans;
    }
    vectorans2 = gss(s.substr(1)); //Answer returned by passing the substring of the original string
    vectorresult;
    int i=0;
    int j=0;
    for(i=0;i

    • @anuragdhyani1712
      @anuragdhyani1712 Před 2 lety +5

      vector function_1(string temp) {
      if (temp.size() == 0) {
      return {""};
      }
      string c = temp.substr(0, 1);
      string temp_2 = temp.substr(1, temp.size());
      vector ret = function_1(temp_2);
      vector output;
      for (auto i : ret) {
      output.push_back("" + i);
      output.push_back(c + i);
      }
      return output;
      }
      //better than the above and less confusing

  • @alfiyazahra4680
    @alfiyazahra4680 Před 3 lety +1

    best concept building lectures by:'Prepcoding'.....

    • @Pepcoding
      @Pepcoding  Před 3 lety +2

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review
      g.page/Pepcoding/review?rc
      You can subscribe to our channel here
      czcams.com/users/Pepcodingabout?view_as=subscriber

  • @gazalchanda7072
    @gazalchanda7072 Před 3 lety +2

    Sir, you did proper justice to the explanation. Best explanation sir over whole CZcams 😍😍🤩🥰

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      Thankyou beta!
      If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )
      Keep learning and keep loving Pepcoding😊

    • @gazalchanda7072
      @gazalchanda7072 Před 3 lety

      @@Pepcoding Absolutely sir..... 🤗🤗

  • @anupamdungdung9417
    @anupamdungdung9417 Před 3 lety +1

    Wonderful explanation Sir!

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Thankyou beta!
      I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )

  • @rajeshKumar-kt5te
    @rajeshKumar-kt5te Před 3 lety

    ok , if we have to reduce the space we can declace only 1 arraylist, it will still work just we can calculate its length after the fuction call and we can start a loop from 0 to that size and inside the loop we can write rres.add(ch+rres.get(i)).

  • @syedashireen2992
    @syedashireen2992 Před 3 lety +1

    Superb 😇😇😇thank you sooo much sir!

  • @shivamgupta-yn2de
    @shivamgupta-yn2de Před 2 lety

    Sir, can you explain how code is working in for loop at recursive level means what is getting in for loop at stack like first c, then bc, then abc

  • @tanmaydhawale3532
    @tanmaydhawale3532 Před 2 lety

    Thanks 😊

  • @sarcaastech
    @sarcaastech Před 2 lety +1

    [ c++ solution with no extra space ]
    void print(string inp , string out){
    if(inp.size() == 0){
    cout

  • @harshpandey7605
    @harshpandey7605 Před 3 lety +1

    Thank you very much sir

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Most welcome!! keep watching the videos

  • @aashishgoyal1436
    @aashishgoyal1436 Před 3 lety +2

    you r the best teacher in the world. understood it crystal clear. Thanks a lot

    • @Pepcoding
      @Pepcoding  Před 3 lety

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like my efforts, I request a review
      g.page/Pepcoding/review?rc

  • @SonuKhan-mp2yn
    @SonuKhan-mp2yn Před rokem

    legendary

  • @aakashkumbhare4399
    @aakashkumbhare4399 Před 3 lety +1

    best explanation
    great

    • @Pepcoding
      @Pepcoding  Před 3 lety

      I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
      If you like our efforts, we request a review - g.page/Pepcoding/review?rc

  • @rohity294
    @rohity294 Před 2 lety

    String ros = str.substring(1);// when this runs for str="c".......ch will be ch=str.charAt(0)=c......and ros=str.substring(1)...str is "c" i.e there is only 0th index and no 1st index in str...then why this line ros=str.subtring(1) is not throwing an index of bounds error?.............I anaylsed and found out that for string str of length n, having index positions 0 to n-1, str.substring(0) to str.substring(n) can be accesssed...this is counter-intuitive to me as as how we are able to access index n, whereas last character of string has index n-1.......does internally for any string, after the last character, there is one more empty character appended at the end by java library?

  • @Raj-iw9hd
    @Raj-iw9hd Před rokem

    can anyone make me understand that loop part like how do we apply loop while doing it in c++

  • @RonitSagar
    @RonitSagar Před 2 měsíci

    Sir Can you please explain why did you need 3rd arrayList. Can we do it without 3rd arrayList.

  • @arghadipbiswas6420
    @arghadipbiswas6420 Před rokem

    Sir i did the sequence using recursion...
    getting all the values but not in the order u written with void return
    import java.util.Scanner;
    public class rec_15_arr_sequence
    {
    public static void main(String[] args)
    {
    Scanner sc=new Scanner(System.in);
    System.out.println("Enter a word");
    String str=sc.next();
    gss(str,str.length(),str);
    }
    public static void gss(String str, int n, String str1)
    {
    if(str.equals(""))
    {
    return;
    }
    String sub=str.substring(0,n);
    if(str.length()==1)
    {
    if(str.charAt(0)==str1.charAt(0))
    {
    str=str1.substring(1);
    str1=str;
    System.out.println(str);
    gss(str,str.length()-1,str1);
    }
    }
    else
    {
    System.out.println(sub);
    gss(sub,n-1,str1);
    }
    }
    }
    can u please correct it and do it using Arraylist 😊

  • @harjotsinghbhullar7308
    @harjotsinghbhullar7308 Před 4 měsíci

    sir pepcoding ki site ko kya ha chal kyo nahi rhi?

  • @pratyush__agarwal
    @pratyush__agarwal Před 3 lety

    Wow❤️

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Keep watching and keep learning😊

  • @vaibhavsinghparmar9511

    what is the time and space complexity of this solution

  • @kushagrabhardwaj4436
    @kushagrabhardwaj4436 Před 2 lety

    how to handle below case as per this code :
    Input: digits = ""
    Output: []
    as it will return output as [""] not []

  • @sameekshabharti9222
    @sameekshabharti9222 Před 3 lety +1

    @Pepcoding sir can you tell the time and space complexity of this ques, please?

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.

  • @Ary0n
    @Ary0n Před 3 lety

    Sir I didn't got the difference between the last part of code when adding both space and a in same loop was not accepted but in doing in different loop how it was expected

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.

  • @rahulberry4806
    @rahulberry4806 Před 3 lety

    thanks sir, your content is great, a recommendation is if you can make the content in english it could reach wider audience

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Hanji beta, jaldi he bnayege content english main bhi but it'll take time.

  • @sagar1287
    @sagar1287 Před 3 lety +1

    You are very nice:)

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      So are you. Ek baar yahan pe bta do yar, kitna nice hun mai
      g.page/Pepcoding/review?rc

  • @srishtigugoriya9319
    @srishtigugoriya9319 Před 2 lety

    sir cpp me bhi content daliye please...

  • @ritvikmadhav4930
    @ritvikmadhav4930 Před 3 lety

    Sir at 22:23 when you say str.substring(1) then for c alone the 1th index does not exist ,then shouldnt it display INDEX OUT OF BOUND EXCEPTION? Why is the code working then?

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.

    • @makadiyavaibhav1246
      @makadiyavaibhav1246 Před 3 lety +2

      You can pass the string length in substring method, anything beyond that is indexoutofbound error correct me if I’m wrong

  • @anuragdhyani1712
    @anuragdhyani1712 Před 2 lety

    👍

  • @sanyasareen393
    @sanyasareen393 Před 3 lety +1

    Sir, base case mein arraylist mein ek element Jo ki blank hai voh kyu return kiya, agar empty arraylist return karte toh bhi toh result same aata. What was the need to include that blank element in arraylist. Meko samjh aa gya that a blank string has one subsequence which is black(2^0=1) , but sir uss blank element ko na add karna zaroori kyu tha? Empty arraylist return karte toh rres mein loop lag ke vahi toh result aata??!

    • @Pepcoding
      @Pepcoding  Před 3 lety +2

      empty arraylist return karte to neeche loop he nahi chalta. iski jagah arraylist mei 1 element (jo blank hai) wo daal ke return karte hain to neeche kam se kam ek baar loop chalta hai

    • @sanyasareen393
      @sanyasareen393 Před 3 lety +1

      @@Pepcoding okay sir samjh aa gya😄. Thankyou

  • @raghavagrawal6263
    @raghavagrawal6263 Před rokem

    We can also do with the 2 recursive calls as shown using recursive tree.
    #code
    def subsequence(s, op):
    if s == "":
    res.append(op)
    return
    op1 = op + " _ "
    subsequence(s[1:], op1)
    op2 = op + s[0]
    subsequence(s[1:], op2)
    global res
    res = []
    s = "ABC"
    subsequence(s, "")
    print(res)

  • @rohitsorot5136
    @rohitsorot5136 Před 3 lety +1

    please summet sir level 2 bhi ap banado plz

  • @ssv6055
    @ssv6055 Před 2 lety

    🤟🏻🙌🏻🔥

    • @Pepcoding
      @Pepcoding  Před 2 lety +1

      For much better experience visit on nados.pepcoding.com
      Don't forget to follow us on Instagram instagram.com/pepcoding/

  • @neelshah4812
    @neelshah4812 Před 3 lety

    sir, for loop ka declaration samaj nai aya.
    if anyone can explain??

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Strings, StringBuilder and ArrayList wale lecture mei jake ek baar ArrayList ka demo dekhie.

  • @SCRIPTSAG
    @SCRIPTSAG Před 3 lety

    String ka use base ke liye huwa hai na i mean string jeb 0 length ki hoti hai to uske liye hai

  • @ramandeepsinghpanesar5933

    how to do multiple lines comment at a time can anypne please help me in this

    • @kundanprakashjha1742
      @kundanprakashjha1742 Před 3 lety

      step1- select multiple line
      step2-ctrl+/
      it will do multiple comment at a time

    • @terminator_363
      @terminator_363 Před 2 lety

      by using language: /*to be commented*/
      by using keyboard: Select the content and press CTRL + /.

  • @bloody9162
    @bloody9162 Před 2 lety

    The cookie in this question would be the base case according to me, if you decide on taking substring of length 1 as the base case you'll miss the empty string in the subsequences.
    TLDR;
    Call Smart Base Case Normal
    Call Normal Base Case Smart
    - Sumeet Malik

    • @Pepcoding
      @Pepcoding  Před 2 lety +1

      doubt shoubt ke liye yahi content nados.pepcoding.com pe consume karein

  • @micekey8401
    @micekey8401 Před rokem +1

    *Code in python*
    def getSubseq(str) -> list:
    if len(str) == 0:
    ss = []
    ss.append("")
    return ss
    first = str[0]
    ss = getSubseq(str[1:])
    ssres = []
    for i in range(len(ss)):
    ssres.append(first + ss[i])
    for i in range(len(ss)):
    ssres.append("_" + ss[i])
    return ssres
    string = "abc"
    arr = getSubseq(string)
    print(arr)

  • @govindsinghshekhawat8533

    Respect++;

  • @RAHULKUMAR-gn7ej
    @RAHULKUMAR-gn7ej Před 3 lety

    Java code :
    static ArrayList powerSet(String s)
    {
    if(s.length() == 0) {
    ArrayList list = new ArrayList();
    list.add("");
    return list;
    }
    char ch = s.charAt(0);
    String smallInput = s.substring(1);
    ArrayList smallInputResult = powerSet(smallInput);
    ArrayList result = new ArrayList();
    for( String res : smallInputResult ) {
    result.add(res);
    result.add( ch + res);
    }
    return result;
    }

  • @rahuldwivedi9236
    @rahuldwivedi9236 Před 2 lety

    brute force god

  • @ganeshmurmu759
    @ganeshmurmu759 Před 2 lety

    9:50

  • @dheerajyadav9099
    @dheerajyadav9099 Před 3 lety +1

    You nice❤ but you are very underated😔

    • @Pepcoding
      @Pepcoding  Před 3 lety

      Thankyou beta,
      I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
      If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )

    • @dheerajyadav9099
      @dheerajyadav9099 Před 3 lety

      Sir apka content bacho tak nahi ja pa raha h

  • @Brombrom41
    @Brombrom41 Před 2 lety

    Just a realization, sub sequence discussed here is subset of a set.
    {a,b,c} is a set and we here are trying to list out all the subsets. So for {a,b,c} subsets are
    {}
    {a}
    {b}
    {c}
    {a,b}
    {a,c}
    {b,c}
    {a,b,c}
    this also fits nicely together with the base case where we need to return empty set as it too is the part of the subset collection. Hope this helps people to visualize the problem better.

  • @arushinigam2101
    @arushinigam2101 Před 2 lety

    here's an alternate code for this question
    public class recursion_intermediate {
    public static ArrayList res = new ArrayList();
    public static ArrayList subseq(String str, int index, String newstr) {
    if(index==str.length()){
    res.add(newstr);
    return res;
    }
    char currchar = str.charAt(index);
    //for char to be in new string
    subseq(str,index+1,newstr+currchar); //call for next char including char[index]
    //for char to not be in new string
    subseq(str,index+1,newstr); //call for next char without including char[index]
    return res;
    }
    public static void main(String args[]){
    String str ="abc";
    ArrayList uwu = new ArrayList(subseq(str,0,""));
    System.out.println(uwu);
    }
    }

    • @Pepcoding
      @Pepcoding  Před 2 lety

      For better experience and well organised content visit - nados.io
      You can also post your doubts on community section of NADOS.

  • @rohitmeena1772
    @rohitmeena1772 Před 3 lety +2

    1 hr laga lekin khudse ban gya, ab confidence aa gya recursion me lagta hai.
    THANK YOU SIR 🙌🙌🙏🙏
    public static ArrayList < String > gss(String str) {
    if (str.length() == 0) {
    ArrayList < String > sm = new ArrayList < > ();
    sm.add("");
    return sm;
    }
    ArrayList < String > sList = new ArrayList < > (gss(str.substring(1, str.length())));
    int x = sList.size();
    sList.add((str.charAt(0) + ""));
    for (int i = 1; i < x; i++) {
    StringBuilder s = new StringBuilder(sList.get(i));
    s.insert(0, str.charAt(0));
    sList.add(s.toString());
    }
    return sList;
    }

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      Thankyou beta!
      I am glad you liked it. I also hope that you are watching till the end and trying to understand the what, how, and especially why of the problem. If you like our efforts, would you like to review us here - g.page/Pepcoding/review?rc

  • @ujjawaldewangan8345
    @ujjawaldewangan8345 Před 3 lety

    sir cpp ke liye recursion banaiye plzz
    🙏

  • @ishanpatni2684
    @ishanpatni2684 Před 3 lety

    26:48 sirji ye jo awaaz aa rahi hai that is causing problem in concentration ...please nullify it sir

  • @akshitsanwal3548
    @akshitsanwal3548 Před 3 lety

    HE IS NOT A HUMAN , HE IS SOMETHING OUT OF THIS WORLD.

    • @Pepcoding
      @Pepcoding  Před 3 lety +1

      wow, this cheers me up. I am glad we at pepcoding could be of help to you. Keep learning. Also, recommend us to your juniors and peers, they may also benefit.

  • @dayamalik6025
    @dayamalik6025 Před 4 lety +7

    Hello chachu your Aryan

  • @udaykulkarni5639
    @udaykulkarni5639 Před rokem

    JavaScript ???????? Anyone ??????/

  • @abhinavsingh7953
    @abhinavsingh7953 Před 2 lety

    code in c++
    vector gss(string s){
    // write your code here
    if(s.size()==0){
    vector base;
    base.push_back("");
    return base;
    }
    char ch = s[0];
    string ros = s.substr(1);

    vector retu = gss(ros);
    vector result;
    for(int i=0;i s;
    vector ans = gss(s);
    int cnt = 0;
    cout