hacktoberfest icon indicating copy to clipboard operation
hacktoberfest copied to clipboard

I want to add the solution to Letter Case Permutation problem on Leetcode (784) using backtracking.

Open yashikakaushik opened this issue 4 years ago • 1 comments

Hi! I want to add the solution to problem 784 (Letter Case Permutation) on Leetcode using concepts of recursion and backtracking.

Here is the description for the problem: Screenshot 2021-10-05 at 3 50 14 PM

Screenshot 2021-10-05 at 3 50 46 PM

Approach: We start by taking the first letter and adding it to an empty string. We then move forward to the next letter. For each letter, we call the recursive function twice. Once for the original letter, and the then by changing its case (by backtracking). If the letter we're on is a number, we keep it as it is and move forward. Once the length of the string becomes equal to that of the original string. we add it to a vector of strings. At the end, we return this vector with the list of strings containing all Letter Case Permutations.

Please do assign this to me! Thankyou!

yashikakaushik avatar Oct 05 '21 10:10 yashikakaushik

please assign this issue to me

ADeshmukh80 avatar Oct 21 '24 18:10 ADeshmukh80