#### Calculate the Total Amount of Points using Java

October 1, 2020

The challenge Our football team finished the championship. The result of each match look like “x:y”.

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

#### 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

#### Find Numbers with Even Number of Digits using Java

June 18, 2020

The challenge Given an array nums of integers, return how many of them contain an even number of digits.

Read More

#### How to use a Java HashSet by example

June 16, 2020

What is a HashSet A HashSet is an unordered collection containing unique elements.

Read More

#### Get The Shortest Path in Binary Matrix using Python

June 15, 2020

The challenge In an N by N square grid, each cell is either empty (0) or blocked (1).

Read More

#### Palindrome Partitioning in Python

June 14, 2020

The problem Given a string s, partition s such that every substring of the partition is a palindrome.

Read More

#### Best Time to Buy and Sell Stock with Python

June 12, 2020

The problem Say you have an array prices for which the ith element is the price of a given stock on day i.

Read More

#### Find the Minimum Absolute Difference in BST using Java

June 2, 2020

The question Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes.

Read More

#### Find Maximum Subarrays using Java

May 31, 2020

The problem Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

Read More

#### Finding Number Complements using Java

May 30, 2020

The problem Given a positive integer num, output its complement number.

Read More

#### Self Dividing Numbers using Python

May 28, 2020

Introduction A self-dividing number is a number that is divisible by every digit it contains.

Read More

#### Remove the Outermost Parentheses using Python

May 15, 2020

The Question A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatenation.

Read More

#### Get the Maximum Length of a Concatenated String with Unique Characters in Python

April 18, 2020

The problem Given an array of strings arr. String s is a concatenation of a sub-sequence of arr which have unique characters.

Read More

#### How to get the Range Sum of Binary Search Tree using Java

April 9, 2020

Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive).

Read More

#### How to duplicate zeros in place using Python

April 8, 2020

Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.

Read More

#### How to Reorder Data in Log Files using Python

April 2, 2020

Let’s say that you have an array or a list, or logs.

Read More

#### Find positions of largest groups of characters in a String with Python

March 29, 2020

The question Take a string S of lowercase letters. These letters form consecutive groupings of like characters.

Read More

#### How to find the longest Palindrome in a String using Python

February 27, 2020

This occasionally comes up during coding interviews and is actually quite a decent way to test someone’s aptitude of moving back and forth on a string to determine if and where palindromes exist.

Read More

#### How to get the Maximum Depth of a Binary Tree in Python

February 24, 2020

Let’s say that you have a binary tree and we needed to know it’s maximum depth.

Read More

#### What is Fizz Buzz?

February 23, 2020

Fizz buzz is a common programming interview question. The problem statement usually reads something like this:

Read More

#### How to write a Quicksort Algorithm in Python

February 21, 2020

While there are libraries available for all programming languages that offer abilities to sort list, arrays and collections, it is important to know how this is achieved.

Read More

#### How to Reverse a String or List using Python

February 20, 2020

Python comes with the power of slicing. Let’s try it with a String:

Read More

#### How to Reverse a Binary Tree in Python

February 18, 2020

Reversing a Binary Tree is a common programming interview question.

Read More