Forming Unique Array Combinations in Golang
The challenge
You are given an array of arrays and your task will be to return the number of unique arrays that can be formed by picking exactly one …
Read Article →103 articles about go development, tools, and best practices
You are given an array of arrays and your task will be to return the number of unique arrays that can be formed by picking exactly one …
Read Article →Implement a function that calculates the sum of the integers inside a string. For example, in the string …
Read Article →Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow'
'word' => …
Read Article →
For a given list [x1, x2, x3, ..., xn] compute the last (decimal) digit of x1 ^ (x2 ^ (x3 ^ (... ^ xn))).
Example:
last_digit({3, 4, 2}, …
Read Article →
An array is circularly sorted if the elements are sorted in ascending order but displaced, or rotated, by any number of steps.
Complete …
Read Article →Write a function toWeirdCase (weirdcase in Ruby) that accepts a string, and returns the same string with all even indexed characters in …
Create a function that takes a Roman numeral as its argument and returns its value as a numeric decimal integer. You don’t need to …
Read Article →Clock shows h hours, m minutes and s seconds after midnight.
Your task is to write a function that returns the time since midnight in …
Read Article →Write a function that takes an integer as input, and returns the number of bits that are equal to one in the binary representation of …
Read Article →Find the next higher number (int) with same ‘1’- Bits.
I.e. as much 1 bits as before and output next higher than input. Input is …
Write a function named first_non_repeating_letter that takes a string input, and returns the first character that is not repeated …
Return the last digit of the nth element in the Fibonacci sequence (starting with 1,1, to be extra clear, not with 0,1 or other …
Read Article →