Closed weiancheng closed 8 years ago
I have some problem in recursive programming. The problem as blow:
I wanna use switch case for recursive, there's not in python, so instead of switch case I try to use a data structure of dict. { 'u': xxx(i, j - 1), 'l': xxx(i - 1, j), 'ul': xxx(i - 1, j - 1) }.get(xxxxx[i][j]['direct']) to do it, it seems each of them will be ran again.
Longest Common Subsequence