Python doesn't have pass by reference
#131 search the non-contiguous subarray, use BackTracking algorithm, T=O(2n)T = O(2^n)T=O(2n); If ask to search the contiguous aubarray, use BruteForce algorithm, T=O(n2)T = O(n^2)T=O(n2)
Last updated 4 years ago