Blog Posts

How to check if a String is a Number in Python

August 23, 2020

The challenge Given a string s, write a method (function) that will return true if its a valid single integer or floating number or false if its not.


Read More

How to Write a Custom Comparator in Python

August 22, 2020

Generally, you want to use the built-in sorted() function which takes a custom comparator as its parameter.


Read More

How to delete an AWS WAF – Web ACL

August 21, 2020

Usually, it’s quite easy to delete an AWS WAF, or Web ACL.


Read More

How to Sort an Integer in Python

August 20, 2020

Let’s say that you have an integer with value of 9271 and you want to sort it either ascending(1279) or descending(9721).


Read More

How to Upgrade PIP

August 19, 2020

In this tutorial, you will learn how to upgrade PIP.


Read More

How to Copy a File in Python

August 18, 2020

In this tutorial, you will learn how to copy a file using Python from a directory to another directory, or if you’re on Windows, then from a Folder to another Folder.


Read More

Conway’s Game of Life – Unlimited Edition – in Python

August 17, 2020

What is this? Conways’s Game Of Life is a Cellular Automation Method created by John Conway.


Read More

Most frequently used words in a text with Python

August 16, 2020

The challenge Write a function that, given a string of text (possibly with punctuation and line-breaks), returns an array of the top-3 most occurring words, in descending order of the number of occurrences.


Read More

The SongDecoder Dubstep Challenge with Java

August 15, 2020

The challenge Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance.


Read More

Break camelCase Challenge in Java

August 14, 2020

The challenge Complete the solution so that the function will break up camel casing, using a space between words.


Read More

Sort Binary Tree by Levels using Python

August 13, 2020

The challenge You are given a binary tree: class Node: def __init__(self, L, R, n): self.


Read More

How to Split a String with Python

August 12, 2020

Splitting a string in Python is really easy. You simply take a string and apply the split() method.


Read More

How to fix the Terraform stuck on “Refreshing state…” problem

August 11, 2020

Terraform is a fantastic tool to help automate your infrastructure as code.


Read More

The “Split Strings” Challenge using Java

August 10, 2020

The challenge Complete the solution so that it splits the string into pairs of two characters.


Read More

Converting to PigLatin with Python

August 9, 2020

The challenge Move the first letter of each word to the end of it, then add “ay” to the end of the word.


Read More

Solving the “Double Cola” Challenge using Java

August 8, 2020

The challenge Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other people in the queue.


Read More

Convert Seconds to Human Readable Time (HH:MM:SS) using Java

August 7, 2020

The challenge Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)


Read More

Solving the “Mexican Wave” Challenge using Java

August 6, 2020

The challenge Task Your task is to create a function that turns a string into a Mexican Wave.


Read More

Multiples of 3 and 5 with Python

August 5, 2020

The challenge This multiples of 3 and multiples of 5 challenge is a variation of the common FizzBuzz question.


Read More

Solving the “Catching Car Mileage Numbers” Challenge using Python

August 4, 2020

The challenge "7777…8?!??!", exclaimed Bob, "I missed it again! Argh!" Every time there's an interesting number coming up, he notices and then promptly forgets.


Read More