Summation Write a program that finds the summation of every number from 1 to num. The number will always be a positive integer greater than 0. For example: summation(2) -> 3 1 + 2 summation(8) -> 36 1 + 2 + 3 + 4 ...

## IT Community and Answers Latest Questions

Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside. The strings will not be the same length, but they ...

Description: Given an array of integers. Return an array, where the first element is the count of positives numbers and the second element is sum of negative numbers. If the input array is empty or null, return an empty array. Example For input [1, 2, ...

Build a function that returns an array of integers from n to 1 where n>0. Example : n=5 –> [5,4,3,2,1] Related Questions and Answers:how to calculate each row with on change table ...

https://www.codewars.com/kata/57096af70dad013aa200007b/train/javascript Your Task Given an array of Boolean values and a logical operator, return a Boolean result based on sequentially applying the operator to the values in the array. Examples booleans = [True, True, False], operator = "AND" True AND True -> True True AND False -> False return False booleans = [True, True, False], operator = "OR" True OR True -> True True OR False -> True return True booleans = [True, True, ...

Given an array of integers your solution should find the smallest integer. For example: Given [34, 15, 88, 2] your solution will return 2 Given [34, -345, -1, 100] your solution will return -345 You can assume, for the purpose of this kata, that the supplied array will not be ...