Blog Posts

Find the stray number in Java

January 30, 2021

The challenge You are given an odd-length array of integers, in which all of them are the same, except for one single number.


Read More

4 By 4 Skyscrapers in Java

January 29, 2021

The challenge In a grid of 4 by 4 squares you want to place a skyscraper in each square with only some clues:


Read More

How to Fix: package org.junit.jupiter.api does not exist

January 28, 2021

The problem 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 because of a missing dependency in your pom.


Read More

How to Programmatically Filter ag-Grid Columns in Angular

January 27, 2021

You can easily control the column filtering in ag-Grid by using the getFilterInstance and setModel methods associated to the column you need filtering.


Read More

Sum by Factors in Java

January 26, 2021

The challenge Given an array of positive or negative integers


Read More

Count the divisors of a number in Java

January 25, 2021

The challenge Count the number of divisors of a positive integer n.


Read More

My smallest code interpreter in Java

January 24, 2021

The challenge Inspired from real-world Brainf**k, we want to create an interpreter of that language which will support the following instructions:


Read More

Pick peaks in Java

January 23, 2021

The challenge Write a function that returns the positions and the values of the “peaks” (or local maxima) of a numeric array.


Read More

Number of trailing zeros of N in Java

January 22, 2021

The challenge Write a program that will calculate the number of trailing zeros in a factorial of a given number.


Read More

Alphabetic Anagrams in Java

January 21, 2021

The challenge Consider a “word” as any sequence of capital letters A-Z (not limited to just “dictionary words”).


Read More

Remove file from Git without deleting locally

January 20, 2021

If you find yourself in a position where you have already committed some files to git, and they are in the remote repository already, but you want to remove them from you repository without deleting them locally, you can do the following:


Read More

Recover a secret string from random triplets in Java

January 19, 2021

The challenge There is a secret string which is unknown to you.


Read More

Range Extraction in Java

January 18, 2021

The challenge A format for expressing an ordered list of integers is to use a comma separated list of either


Read More

Reversed Words in Java

January 17, 2021

The challenge Complete the solution so that it reverses all of the words within the string passed in.


Read More

CamelCase Method in Java

January 16, 2021

The challenge Write a simple CamelCase method for strings. All words must have their first letter capitalized without spaces.


Read More

Even or Odd in Java

January 15, 2021

The challenge Create a function that takes an integer as an argument and returns “Even” for even numbers or “Odd” for odd numbers.


Read More

Square Every Digit in Java

January 14, 2021

The challenge You need to square every digit of a number and concatenate them.


Read More

Simple number sequence in Java

January 13, 2021

The challenge You are given a string of numbers in sequence and your task will be to return the missing number.


Read More

Roman Numerals Encoder in Java

January 12, 2021

The challenge Create a function taking a positive integer as its parameter and returning a string containing the Roman Numeral representation of that integer.


Read More

First Variation on Caesar Cipher in Java

January 11, 2021

The challenge The action of a Caesar cipher is to replace each plaintext letter (plaintext letters are from ‘a’ to ‘z’ or from ‘A’ to ‘Z’) with a different one a fixed number of places up or down the alphabet.


Read More