Determine if Number is a Power of Three in Java
The challenge
Given an integer n, return true if it is a power of three. Otherwise, return false.
An integer n is a power of three, if there exists an …
In-depth guides, insights, and best practices for modern software engineering
Given an integer n, return true if it is a power of three. Otherwise, return false.
An integer n is a power of three, if there exists an …
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0’s and 1’s, and all the …
Ever wanted to generate a CSV (comma separated values) file directly from the browser, using Javascript? Instead of going to the server..
Look no …
Read Article →Complete the function that takes two integers (a, b, where a < b) and return an array of all integers between the input parameters, …
I have often needed to clone a table without it’s data in MySQL.
Oftentimes this has been because I have a continually growing temporary table …
Read Article →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 …