{"id":13649,"date":"2021-09-30T16:30:01","date_gmt":"2021-09-30T11:00:01","guid":{"rendered":"https:\/\/python-programs.com\/?p=13649"},"modified":"2021-11-22T18:34:24","modified_gmt":"2021-11-22T13:04:24","slug":"python-program-to-find-maximum-product-quadruple-in-an-array-or-list","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-maximum-product-quadruple-in-an-array-or-list\/","title":{"rendered":"Python Program to find Maximum Product Quadruple in an Array or List"},"content":{"rendered":"

Are you a job seeker and trying to find simple java programs for Interview?<\/a> This would be the right choice for you, just tap on the link and start preparing the java programs covered to crack the interview.<\/p>\n

Given a list, the task is to write a python program to find the Maximum Product Quadruple in the given array or list in Python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given list =[-9, -24, 15, 3, 19, 23, 18, 11, 10, 7, 6]<\/pre>\n

Output:<\/strong><\/p>\n

The maximum product quadruple in the given list [-9, -24, 15, 3, 19, 23, 18, 11, 10, 7, 6] is :\r\n[ 117990 ]<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given list =[8, 11, 4, 6, 9, -7, 22, 9, 15]<\/pre>\n

Output:<\/strong><\/p>\n

The maximum product quadruple in the given list [8, 11, 4, 6, 9, -7, 22, 9, 15] is :\r\n[ 32670 ]<\/pre>\n

Program to find Maximum Product Quadruple in an Array or List in Python<\/h2>\n

Below are the ways to find the Maximum Product Quadruple in the given array or list in Python.<\/p>\n