int32 to IPv4 in Java
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).
- 1st octet
128
has …
342 articles about java development, tools, and best practices
Take the following IPv4 address: 128.32.10.1
This address has 4 octets where each octet is a single byte (or 8 bits).
128
has …The drawing shows 6 squares the sides of which have a length of 1, 1, 2, 3, 5, 8. It’s easy to see that the sum of the perimeters …
Read Article →Number is a palindrome if it is equal to the number with digits in reversed order. For example, 5
, 44
, 171
, 4884
are palindromes, and 43 …
You are given an array of strings and your task is to remove all consecutive duplicate letters from each string in the array.
For …
Read Article →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 →
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 →