Blog Posts

How to zoom text by mouse wheel in IntelliJ Idea

September 12, 2020

It’s a common requirement to be able to zoom in or out while working in the code editor in IntelliJ Idea.


Read More

Playing the Bulls and Cows Game in Java

September 11, 2020

The challenge You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is.


Read More

Calculate the Sum of Root To Leaf Binary Numbers in Java

September 10, 2020

The challenge Given a binary tree, each node has value `` or 1.


Read More

Remove an Exclamation Mark from the End of String using Python

September 9, 2020

The challenge Remove a exclamation mark from the end of string.


Read More

How to “Rock Paper Scissors” in Java

September 8, 2020

The challenge Let’s play Rock Paper Scissors! You have to return which player won!


Read More

Compare within Margin using Python

September 7, 2020

The challenge Create a function close_compare that accepts 3 parameters: a, b, and an optional margin.


Read More

Get the mean of an array in Java

September 6, 2020

The challenge It’s the academic year’s end, fateful moment of your school report.


Read More

Remove the time challenge in Python

September 5, 2020

The challenge You’re re-designing a blog and the blog’s posts have the following format for showing the date and time a post was made:


Read More

How to Convert Hex to Decimal in Java

September 4, 2020

The challenge Write a function that converts an input string contains a hex value, and return a decimal.


Read More

Character with Longest Consecutive Repetition in Java

September 3, 2020

The challenge For a given string s find the character c (or C) with longest consecutive repetition and return:


Read More

Check if List contains Item in Python

September 2, 2020

The challenge Create a method that accepts a list and an item, and returns true if the item belongs to the list, otherwise false.


Read More

How To Create a User and Grant Permissions in MySQL

September 1, 2020

How to create a user CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword'; How to delete a user DROP USER 'myuser'@'localhost'; How to grant permissions GRANT ALL PRIVILEGES ON * .


Read More

How to Remove Vowels with Python

August 31, 2020

The challenge Create a function called shortcut to remove all the lowercase vowels in a given string.


Read More

How to find all files in a directory with extension

August 30, 2020

I needed to find all files in a directory on Linux that ended with the file extension .


Read More

How to Sort a List in Python

August 29, 2020

In this tutorial, you will learn how to sort a list in Python, by following the below three steps:


Read More

Cryptanalysis Word Patterns in Java

August 28, 2020

The challenge In cryptanalysis, words patterns can be a useful tool in cracking simple ciphers.


Read More

How to divide a number in Python

August 27, 2020

The challenge Your task is to create functionisDivideBy (or is_divide_by) to check if an integer number is divisible by each out of two arguments.


Read More

How to Read Kubernetes Secrets

August 26, 2020

Kubernetes secrets is a great way to store secret values that only Kubernetes can access in your hosted applications.


Read More

Backspaces in String Challenge using Java

August 25, 2020

The challenge Assume "#" is like a backspace in string. This means that string "a#bc#d" actually is "bd"


Read More

How many times to Kaprekar’s constant using Python

August 24, 2020

Introduction 6174 is known as Kaprekar’s constant after the Indian mathematician D.


Read More