Blog Posts

Check if Valid Sudoku Blocks in Java

July 14, 2020

The challenge of solving valid Sudoku blocks Determine if a 9×9 Sudoku board is valid.


Read More

Find the Intersection of Two Arrays in Python

July 13, 2020

The challenge Given two arrays, write a function to compute their intersection.


Read More

Rotate an Array K Times in Python

July 12, 2020

The challenge Given an array, rotate the array to the right by k steps, where k is non-negative.


Read More

FizzBuzz in Java

July 11, 2020

The challenge Write a program that outputs the string representation of numbers from 1 to n.


Read More

Python Splices reimplemented in Java

July 10, 2020

Python has a fantastic feature called slices. It allows you to work with a list, set or string by it’s index items.


Read More

Solving Two Sum in Python

July 9, 2020

The challenge Given an array of integers, return indices of the two numbers such that they add up to a specific target.


Read More

Get the Next Small Integer in Python

July 8, 2020

The challenge Write a function: def solution(A) that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.


Read More

Is a Valid Palindrome with Java

July 7, 2020

The challenge Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.


Read More

Is a Valid Anagram with Java

July 6, 2020

The challenge Given two strings s and t , write a function to determine if t is an anagram of s.


Read More

How to ReImplement strStr() in Java

July 5, 2020

What we want to achieve Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.


Read More

Third Maximum Number with Java

July 4, 2020

The challenge Given a non-empty array of integers, return the third maximum number in this array.


Read More

How to Quickly Hide all Icons on a Mac’s Desktop

July 3, 2020

Why the need to hide icons? Perhaps you have a screen-share session coming up and you want a nice clean desktop to show everyone.


Read More

First Unique Character in a String using Java

July 2, 2020

The challenge Given a string, find the first non-repeating character in it and return its index.


Read More

How to fix the Release Version 5 Not Supported error in IntelliJ

July 1, 2020

What do you do when you create a new Maven Java project, and when you run it, you get the following error:


Read More

Facebook’s custom IPv6 range

June 30, 2020

I noticed an interesting thing with a certain visitor after posting a blog post to Facebook.


Read More

How to Reverse an Integer in Java

June 29, 2020

The challenge Given a 32-bit signed integer, reverse digits of an integer.


Read More

Reverse a String in-place using Java

June 28, 2020

The challenge Write a function that reverses a string. The input string is given as an array of characters char[].


Read More

Check if a Java array Contains Duplicates

June 27, 2020

The challenge Given an array of integers, find if the array contains any duplicates.


Read More

Find All Numbers Disappeared in an Array using Python

June 26, 2020

The challenge Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.


Read More

The Array Height Checker Problem in Java

June 25, 2020

The challenge Students are asked to stand in non-decreasing order of heights for an annual photo.


Read More