Producto máximo de un triplete (subsecuencia de tamaño 3) en array

Dada una array de enteros, encuentre un producto máximo de un triplete en la array. Ejemplos:  Input: [10, 3, 5, 6, 20] Output: 1200 Multiplication of 10, 6 and 20 Input: [-10, -3, -5, -6, -20] Output: -90 Input: [1, -4, 3, -6, 7, 0] Output: 168 Enfoque 1 (Ingenuo, O(n 3 ) tiempo, O(1) … Continue reading «Producto máximo de un triplete (subsecuencia de tamaño 3) en array»