Common Mistakes about Python

  • Python doesn't have pass by reference

  • #131 search the non-contiguous subarray, use BackTracking algorithm, T=O(2n)T = O(2^n)​; If ask to search the contiguous aubarray, use BruteForce algorithm, T=O(n2)T = O(n^2)

Last updated