Tag: GoLang
Given a string s, return true if s is a good string, or false otherwise. A string s is good if all the characters that appear in s have …
Reverse bits of a given 32 bits unsigned integer. Note: Note that in some languages such as Java, there is no unsigned integer type. In this case, both input …
In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c keeping …
Given an integer n, return a string array answer (1-indexed) where: answer == “FizzBuzz” if i is divisible by 3 and 5. answer == “Fizz” if i is divisible …
We can sort a list of given strings from stdin and output to stdout using the following GoLang: package main import ( "fmt" "bufio" "os" "sort" "strings" ) func …