How to Reverse a String in Golang
The challenge
Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow'
'word' => …
Read Article →
101 articles about go development, tools, and best practices
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 →Write an algorithm that will identify valid IPv4 addresses in dot-decimal format. IPs should be considered valid if they consist of four …
Read Article →Fmt provides printing to standard output (usually the console) and formatting of strings capabilities.
The main …
Read Article →