Categories

## [Coderbyte] – Different Cases [Easy]

I was surprised to see that some of my solutions are in top solutions on Coderbyte. The answer to this challenge is the 16th solution in the top 18 solutions. Coming back to the problem, here is what we have to do: Have the function DifferentCases(str) take the str parameter being passed and return it in upper camel case […]

Categories

## [Coderbyte] – H Distance [Easy]

The coding challenge for today is called “H Distance”. In short, this challenge asks us to find the number of characters that are not found in both strings. However, Coderbyte does a better job of explaining the problem: Have the function HDistance(strArr) take the array of strings stored in strArr, which will only contain two strings of equal […]

Categories

## [Coderbyte] – Mean Mode [Easy]

Let’s get back to Coderbyte again. This time we have the “Mean Mode” challenge. The challenge requirements are as follows: Have the function MeanMode(arr) take the array of numbers stored in arr and return 1 if the mode equals the mean, 0 if they don’t equal each other (ie. [5, 3, 3, 3, 1] should return 1 because the mode (3) equals the mean (3)). The array will not […]

Categories

## [Coderbyte] – Second GreatLow [Easy]

The challenge I have solved recently is called “Second GreatLow”.  The full challenge description, taken from the Coderbyte website, is below: Have the function SecondGreatLow(arr) take the array of numbers stored in arr and return the second lowest and second greatest numbers, respectively, separated by a space. For example: if arr contains [7, 7, 12, 98, 106] the output should be 12 […]