Even or Odd Array Sum in Java
The challenge
Given a list of numbers, determine whether the sum of its elements is odd or even.
Give your answer as a string matching "odd" …
In-depth guides, insights, and best practices for modern software engineering
Given a list of numbers, determine whether the sum of its elements is odd or even.
Give your answer as a string matching "odd" …
In this challenge, you have to create all permutations of an input string and remove duplicates if present. This means you have to …
Read Article →You will be given a certain array of length n, such that n > 4, having positive and negative integers but there will be no zeroes and …
Consider the numbers 6969 and 9116. When you rotate them 180 degrees (upside down), these numbers remain the same. To clarify, if we …
In this challenge your mission is to rotate matrix counter-clockwise N times.
So, you will have 2 inputs:
1) matrix
2) a number, how …
Read Article →
If you receive the following error message when trying to run pymysql on AWS Lambda:
Unable to import module "lambda_function": No module …
Write a function that accepts two square (NxN) matrices (two dimensional arrays), and returns the product of the two. Only square …
Complete the function that takes 3 numbers x, y and k (where x ≤ y), and returns the number of integers within the range [x..y] (both …
Write a method, that gets an array of integer-numbers and return an array of the averages of each …
Read Article →Coding decimal numbers with factorials is a way of writing out numbers in a base system that depends on factorials, rather than powers …
Read Article →Return the number (count) of vowels in the given string.
We will consider a, e, i, o, u as vowels for this challenge (but not y).
The …
Read Article →You are going to be given an array of integers. Your job is to take that array and find an index N where the sum of the integers to the …
Read Article →