7 kyu
Maximum Product
1,381 of 19,424MrZizoScream
Description:
Task
Given an array of integers , Find the maximum product obtained from multiplying 2 adjacent numbers in the array. Note that the array size is at least 2 and consists a mixture of positive, negative integers and also zeroes.
Examples
[1, 2, 3]
returns6
because the maximum product is obtained from multiplying[9, 5, 10, 2, 24, -1, -48]
returns50
because the maximum product is obtained from multiplying[-23, 4, -5, 99, -27, 329, -2, 7, -921]
returns-14
because the maximum product is obtained from multiplying
Fundamentals
Arrays
Similar Kata:
Stats:
Created | Dec 25, 2017 |
Published | Dec 25, 2017 |
Warriors Trained | 28394 |
Total Skips | 2478 |
Total Code Submissions | 48998 |
Total Times Completed | 19424 |
C++ Completions | 1381 |
C Completions | 655 |
Python Completions | 5291 |
JavaScript Completions | 6839 |
Java Completions | 2279 |
Ruby Completions | 386 |
C# Completions | 850 |
Haskell Completions | 172 |
PHP Completions | 545 |
Julia Completions | 38 |
NASM Completions | 29 |
Dart Completions | 821 |
CoffeeScript Completions | 15 |
TypeScript Completions | 418 |
Rust Completions | 363 |
Clojure Completions | 76 |
Prolog Completions | 34 |
Crystal Completions | 7 |
COBOL Completions | 9 |
D Completions | 7 |
Total Stars | 195 |
% of votes with a positive feedback rating | 93% of 2229 |
Total "Very Satisfied" Votes | 1948 |
Total "Somewhat Satisfied" Votes | 255 |
Total "Not Satisfied" Votes | 26 |
Total Rank Assessments | 14 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |