Number of Rectangles in a Grid in Java
The challenge
Given a grid of size m x n, calculate the total number of rectangles contained in this rectangle. All integer sizes and positions are …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Given a grid of size m x n, calculate the total number of rectangles contained in this rectangle. All integer sizes and positions are …
Read Article →The vowel substrings in the word codewarriors are o,e,a,io. The longest of these has a length of 2. Given a lowercase string that has …
In this challenge, you will be given two strings a and b and your task will be to return the characters that are not common in the two …
In this simple exercise, you will create a program that will take two lists of integers, a and b. Each list will consist of 3 positive …
In this example you need to implement a function that sort a list of integers based on it’s binary representation.
The rules are …
Read Article →Write a program that can do some algebra. Write a function expand that takes in an expression with a single, one character variable, and …
You are given an array(list) strarr of strings and an integer k. Your task is to return the first longest string consisting of k …
Given a string of words, you need to find the highest scoring word.
Each letter of a word scores points according to its position in the …
Read Article →In John’s car the GPS records every s seconds the distance travelled from an origin (distances are measured in an arbitrary but …
Create an application that will display the number of kilometers per liter (output) based on the number of miles per imperial gallon …
Read Article →Given a non-negative integer, return an array / a list of the individual digits in order.
Examples:
123 => [1,2,3]
1 => [1] …
Read Article →
Find the greatest common divisor of two positive integers. The integers can be large, so you need to find a clever solution.
The inputs …
Read Article →