Largest 5 digit number in a series in Java
The challenge
In the following 6 digit number:
283910
91 is the greatest sequence of 2 consecutive digits.
In the following 10 digit number: …
Read Article →In-depth guides, insights, and best practices for modern software engineering
In the following 6 digit number:
283910
91 is the greatest sequence of 2 consecutive digits.
In the following 10 digit number: …
Read Article →Write a function that takes a positive integer and returns the next smaller positive integer containing the same digits.
For example: …
Read Article →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 …
Read Article →You are given an odd-length array of integers, in which all of them are the same, except for one single number.
Complete the method …
Read Article →In a grid of 4 by 4 squares you want to place a skyscraper in each square with only some clues:
If you have received the package org.junit.jupiter.api deos not exist error when trying to run a JUnit Java Test with Maven, it’s …
You can easily control the column filtering in ag-Grid by using the getFilterInstance and setModel methods associated to the column you need …
Given an array of positive or negative integers
I= [i<sub>1</sub>,..,i<sub>n</sub>]
you have to produce a sorted …
Read Article →Count the number of divisors of a positive integer n.
Random tests go up to n = 500000.
numberOfDivisors(4) == 3 // 1, 2, 4 …
Read Article →
Inspired from real-world Brainf**k, we want to create an interpreter of that language which will support the following instructions: …!-->!-->
Read Article →Write a function that returns the positions and the values of the “peaks” (or local maxima) of a numeric array.
For example, …
Read Article →Write a program that will calculate the number of trailing zeros in a factorial of a given number.
N! = 1 * 2 * 3 * ... * N
Be careful …
Read Article →