Best way to write 3^n without recursion like 2^n bitmask is there a way?

Revision en2, by BrynzaMasterZa228, 2022-11-13 19:16:38

I just solved a problem that need 3^n recursion 0,1,2 0=not choose, 1=choose one way, 2=choose 2nd way like this, and its messy cause we need the path we took also it itself doesnt seem nice, can you guys please write your ways of writing .

sorry i will reply hours late cause i will sleep rn

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English BrynzaMasterZa228 2022-11-13 19:16:38 56 Tiny change: 'f writing ' -> 'f writing .\n\nsorry i will reply hours late cause i will sleep rn'
en1 English BrynzaMasterZa228 2022-11-13 19:09:53 313 Initial revision (published)