kaal-coder / hacktoberfest2023

HacktobeFest 2023 is live. Make your 4 Pull Request here ! Add your own projects, UI/UX Design, Blogs or improve the projects in the repository. Make sure to add your own work.
146 stars 488 forks source link

Create Power Set in Lexicographic order.cpp #427

Closed ShuvamBag closed 10 months ago

ShuvamBag commented 10 months ago

The idea is to sort array first. After sorting, one by one fix characters and recursively generates all subsets starting from them. After every recursive call, we remove last character so that next permutation can be generated.

ShuvamBag commented 10 months ago

Need Hacktoberfest-accepted tag please !