Wondering if this problem can be solve using Iterative approach?


  • 0
    R

    Just wondering if this problem can be solved using iterative approach (for-loops).
    It can be solved using back-tracking. But what about using for-loops?

    I have tried, but I got stuck. It looks like I have write k-for loops.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.