What temperature does your Mac CPU idle at?
Sometimes you will find that your Mac is running very hot, and you may want to keep track of it over time to see if it’s persistent or only a …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Sometimes you will find that your Mac is running very hot, and you may want to keep track of it over time to see if it’s persistent or only a …
Read Article →Split a given string into different strings of equal size.
Example:
Split the below string into other strings of size #3 …
Read Article →
If you are getting the following error in MySQL:
ERROR 1030 (HY000): Got error 168 from storage engine
Then this usually means that your server has …
Read Article →Given a sequence of numbers, find the largest pair sum in the sequence.
For example
[10, 14, 2, 23, 19] --> 42 (= 23 + 19)
[99, 2, …
Read Article →
Consider the word "abode". We can see that the letter a is in position 1 and b is in position 2. In the alphabet, a and b are …
Check to see if a string has the same amount of ‘x’s and ‘o’s. The method must return a boolean and be case insensitive. The …
Read Article →Find the sum of the odd numbers within an array, after cubing the initial integers. The function should return None if any of the values …
Given a positive integer n, calculate the following sum:
n + n/2 + n/4 + n/8 + ...
All elements of the sum are the results of integer …
Read Article →Preloaded for you is a class, struct, or derived data type Node (depending on the language) used to construct linked lists in this …
Find the number with the most digits.
If two numbers in the argument array have the same number of digits, return the first one in the …
Read Article →You will be given an array and a limit value. You must check that all values in the array are below or equal to the limit value. If they …
Given an array of integers, Find the maximum product obtained from multiplying 2 adjacent numbers in the array.
You are given an array of numbers in which two numbers occur once and the rest occur only twice. Your task is to return the sum of the …
Read Article →Given a two-dimensional array of integers, return the flattened version of the array with all the integers in the sorted (ascending) …
Read Article →There is a war and nobody knows – the alphabet war!
There are two groups of hostile letters. The tension between left side …
We want to generate a function that computes the series starting from 0 and ending until the given number.
Input: > 6 …
Read Article →Complete the method which accepts an array of integers, and returns one of the following:
"yes, ascending" – if the numbers …You will be given a string that may have mixed uppercase and lowercase letters and your task is to convert that string to either …
Read Article →Remove all duplicate words from a string, leaving only single (first) words entries.
Input:
‘alpha beta beta gamma gamma gamma …
Read Article →ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits.
If the …
Read Article →Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the longest possible, containing distinct …
Create a function that repeats each character by the amount of it’s index value of the original string.
Given two numbers and an arithmetic operator (the name of it, as a string), return the result of the two numbers having that operator …
Read Article →You are given two interior angles (in degrees) of a triangle.
Write a function to return the 3rd.
Note: only positive integers will be …
Read Article →