ReciHub / FunnyAlgorithms

A repository with a bunch of funny algorithms, beginners friendly
Creative Commons Zero v1.0 Universal
452 stars 704 forks source link

Decode string #1261

Open rachitsgh opened 1 year ago

rachitsgh commented 1 year ago

i have pushed a funnyAlgorithm to Decode strings

Example 1:

Input: s = "3[a]2[bc]" Output: "aaabcbc" Example 2:

Input: s = "3[a2[c]]" Output: "accaccacc" Example 3:

Input: s = "2[abc]3[cd]ef" Output: "abcabccdcdcdef"