NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

PrintAllPossibleCode_Recursion

Open sukritidawar opened this issue 6 years ago • 6 comments

🚀 Feature

Given a string s, and assuming that a=1, b=2, c=3, d=4, .... z=26, write a recursive function to print all the possible codes for the strings. Example: s = "1123" Output: aabc aaw alc kbc kw

Have you read the Contributing Guidelines on Pull Requests?

Yes.

Motivation

Helps in understanding recursion.

Pitch

(Please explain why this feature should be implemented and how it would be used.)

sukritidawar avatar Sep 28 '20 13:09 sukritidawar

I want to work on this issue in C++

sukritidawar avatar Sep 28 '20 13:09 sukritidawar

I would like to work on this in Java for CH20

ritvij14 avatar Sep 28 '20 16:09 ritvij14

I would like to work on this issue in python

narayan2111 avatar Sep 28 '20 17:09 narayan2111

I would like to do this in C

rutujadhanawade avatar Sep 29 '20 03:09 rutujadhanawade

@Kajol-Kumari for this can we completely omit an input if any of the digits is 0?

ritvij14 avatar Sep 29 '20 16:09 ritvij14

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!

github-actions[bot] avatar Dec 04 '20 00:12 github-actions[bot]