Blog Posts

Simple string reversal in Java

February 19, 2021

The challenge In this challenge, we are going to reverse a string while maintaining the spaces (if any) in their original place.


Read More

int32 to IPv4 in Java

February 18, 2021

The challenge Take the following IPv4 address: 128.32.10.1 This address has 4 octets where each octet is a single byte (or 8 bits).


Read More

Perimeter of squares in a rectangle in Java

February 17, 2021

The challenge The drawing shows 6 squares the sides of which have a length of 1, 1, 2, 3, 5, 8.


Read More

Palindrome chain length in Java

February 16, 2021

The challenge Number is a palindrome if it is equal to the number with digits in reversed order.


Read More

String array duplicates in Java

February 15, 2021

The challenge You are given an array of strings and your task is to remove all consecutive duplicate letters from each string in the array.


Read More

Even or Odd Array Sum in Java

February 14, 2021

The challenge Given a list of numbers, determine whether the sum of its elements is odd or even.


Read More

String Permutations in Java

February 13, 2021

The challenge In this challenge, you have to create all permutations of an input string and remove duplicates if present.


Read More

Remove a Specific Element of an Array in Java

February 12, 2021

The challenge 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 all the elements will occur once in it.


Read More

Upside down numbers in Java

February 11, 2021

The challenge Consider the numbers 6969 and 9116. When you rotate them 180 degrees (upside down), these numbers remain the same.


Read More

Rotate matrix counter-clockwise N times in Java

February 10, 2021

The challenge In this challenge your mission is to rotate matrix counter-clockwise N times.


Read More

Unable to import module “lambda_function”: No module named “pymysql”

February 9, 2021

If you receive the following error message when trying to run pymysql on AWS Lambda:


Read More

Square Matrix Multiplication in Java

February 8, 2021

The challenge Write a function that accepts two square (NxN) matrices (two dimensional arrays), and returns the product of the two.


Read More

Count the divisible numbers in Java

February 7, 2021

The challenge Complete the function that takes 3 numbers x, y and k (where x ≤ y), and returns the number of integers within the range [x.


Read More

Averages of numbers in Java

February 6, 2021

The challenge Get the averages of these numbers Write a method, that gets an array of integer-numbers and return an array of the averages of each integer-number and his follower, if there is one.


Read More

Decimal to Factorial and Back in Java

February 5, 2021

The challenge Coding decimal numbers with factorials is a way of writing out numbers in a base system that depends on factorials, rather than powers of numbers.


Read More

Vowel Count in Java

February 4, 2021

The challenge Return the number (count) of vowels in the given string.


Read More

Equal Sides Of An Array in Java

February 3, 2021

The challenge You are going to be given an array of integers.


Read More

Largest 5 digit number in a series in Java

February 2, 2021

The challenge In the following 6 digit number: 283910 91 is the greatest sequence of 2 consecutive digits.


Read More

Next smaller number with the same digits in Java

February 1, 2021

The challenge Write a function that takes a positive integer and returns the next smaller positive integer containing the same digits.


Read More

Count of positives / sum of negatives in Java

January 31, 2021

The challenge 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.


Read More