Given an integer array nums, find a subarray that has the largest product, and return the product. The test cases are generated so that the answer will fit in a 32-bit integer. Note that the product ...
# Đề: Tìm tích lớn nhất của một đoạn con liên tiếp. # Ràng buộc: Mảng không rỗng; có thể chứa số âm và số 0. # Ý tưởng: Giữ CẢ max và min hiện tại (số âm đảo dấu min thành max). # Độ phức ...