8 kyu
SpeedCode #2 - Array Madness
9,408 of 17,342donaldsebleung
Description:
SpeedCode #2 - Array Madness
Objective
Given two integer arrays a, b
, both of length >= 1
, create a program that returns true
if the sum of the squares of each element in a
is strictly greater than the sum of the cubes of each element in b
.
E.g.
arrayMadness([4, 5, 6], [1, 2, 3]); // returns true since 4 ** 2 + 5 ** 2 + 6 ** 2 > 1 ** 3 + 2 ** 3 + 3 ** 3
Get your timer out. Are you ready? Ready, get set, GO!!!
Arrays
Puzzles
Similar Kata:
Stats:
Created | Apr 2, 2016 |
Published | Apr 2, 2016 |
Warriors Trained | 22323 |
Total Skips | 277 |
Total Code Submissions | 58203 |
Total Times Completed | 17342 |
JavaScript Completions | 9408 |
C# Completions | 1133 |
Python Completions | 6543 |
Factor Completions | 17 |
C Completions | 565 |
Total Stars | 163 |
% of votes with a positive feedback rating | 95% of 2683 |
Total "Very Satisfied" Votes | 2418 |
Total "Somewhat Satisfied" Votes | 242 |
Total "Not Satisfied" Votes | 23 |