How to Print All Subsequences Of String?



In this video, you will learn how to print the subsequences of a string.
A subsequence is a sequence generated from a string after deleting some characters of string without changing the order of remaining string characters.
Previously we were given a string “abc”
We collected the subsequences and created a 2 D Array which was exponential in size 2^n.
Here we will learn different ways of How you can print the subsequence of a string ”abc”
Also, we will see how to write code for the problem.
Watch the complete video to learn this interesting concept
————————————————————————————————————————————————-

Coding Ninjas is one of the leading EdTech company providing India’s Highest rated programming courses in C++, Data Structures and Algorithms, Java, Python, Machine Learning, web development, Data Science, Android Development, Kotlin, React.

To explore our courses, click here:
—————————————————–
To watch more exciting videos on programming, subscribe to our channel here:
——————————————————
Explore more on our social media platforms:
Facebook:
Instagram:
Linkedin:

Nguồn: https://federicobellucci.net/

Xem thêm bài viết khác: https://federicobellucci.net/cong-nghe/


Article Categories:
Công Nghệ

Comments

  • Got queries regarding this problem, Do let us know in the comments section,
    In this video, you will learn how to print the subsequences of a string.

    A subsequence is a sequence generated from a string after deleting some characters of string without changing the order of remaining string characters.

    Previously we were given a string “abc”

    We collected the subsequences and created a 2 D Array which was exponential in size 2^n.

    Here we will learn different ways of How you can print the subsequence of a string ”abc”

    Also, we will see how to write code for the problem.

    Watch the complete video to learn this interesting concept

    Coding Ninjas India July 27, 2020 3:04 am Reply
  • Extremely well Explained!

    ninja 360 July 27, 2020 3:04 am Reply
  • nice explanation sir

    Hiteshu Singh July 27, 2020 3:04 am Reply
  • Sir I think time complexity to 2^n ho gya

    shivam kumar July 27, 2020 3:04 am Reply
  • time complexity is 2^N ?

    chinmay kumar July 27, 2020 3:04 am Reply
  • What if the string is 'aaa'. Then this solution will give repetitive output. How to counter that.

    Akhil Sharma July 27, 2020 3:04 am Reply
  • Coding Blocks se course leke pachta rha hu 🙁

    rohit singh July 27, 2020 3:04 am Reply
  • recursion sometimes seems like magic

    Utkarsh Ramachandra July 27, 2020 3:04 am Reply
  • Thanks I really appreciate your efforts. Please post more videos too. Do you solve leetcode problems too ? Do you take offline or online classes?

    Ujjval Sharma July 27, 2020 3:04 am Reply
  • What if subsequences have to be printed in sorted order….

    shivam agarawal July 27, 2020 3:04 am Reply
  • thanks, a lot

    shubham maurya July 27, 2020 3:04 am Reply
  • Sir you are the best teacher of coding I have ever seen

    RAHUL GOYAL July 27, 2020 3:04 am Reply
  • how is "ac" subsequence of "abc"

    Mayank Singh July 27, 2020 3:04 am Reply
  • THANKS SIR UR EXPLANATION IS AWESOME…

    hiten arya July 27, 2020 3:04 am Reply
  • Thanks for the explanation. Really helpful.
    Just one ques: what is the time complexity of above solution?

    surendra pal Singh July 27, 2020 3:04 am Reply
  • Thank you but not able to understand your so AWSOME PMI concept. PMI concept was really good. How to visulise without drawing trees an stuff

    Ali Hasan July 27, 2020 3:04 am Reply
  • Hello sir , Sir your code works only when all the characters are different , but fails when any of the character is similar , So can you help me out to eliminate the similar character using recursion only not by taking it into array and removing similar one

    piyush ohri July 27, 2020 3:04 am Reply
  • very nice sir thank you.

    Jayram Sahu July 27, 2020 3:04 am Reply
  • without including <string> header file how is it working?

    LALIT NEGI July 27, 2020 3:04 am Reply
  • Sir ,plz upload vedio on dp with bitsmask

    Technical World July 27, 2020 3:04 am Reply
  • thank you sir.

    Mishu Mazumder July 27, 2020 3:04 am Reply

Leave a Comment

Your email address will not be published. Required fields are marked *