Category: Go Programming
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 …
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 …
The linux uniq filters adjacent duplicate lines and then output to standout. Most of the times, we want only the unique lines, and thus we have to combine the …