Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This is an off-topic question: Your helper method looks really cool to me! May I know why I couldn't print the function name using your method by calling action.Method.Name?
@Paparazzi Thank you for showing another approach in solving this problem. It takes me some time to figure out what you did there, interesting base 2 manipulation!
Well found out it's my mistake for ignoring a newline after indented code line during editing. The idea of skipping extraneous call by using Queue seems to be overcomplicating the problem and "oversmart". Your "bit switching" strategy nailed it!
Yes you're right! In most situation the straightforward way would be initialize the dictionary with "translated" string instead of integer array. I'm trying to learn different approaches whereby the storage is a constraint in this case by only storing active bits. Thanks again for clearing my doubt!
Wow that's a great insight from you and thanks for sharing your knowledge! I've tried to perform edit but unfortunately keep getting error about code formatting issue although I've make sure all the code line starts with 4 space in Notepad++. Anyway thanks again!