Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsDuplicate ¶
ContainsDuplicate finds an unduplicated number, if there is no duplication it will return false.
func IsPalindrome ¶
IsPalindrome checks whether s is a palindrome or not after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters.
func IsPowerOfTwo ¶
IsPowerOfTwo returns true if n is a power of two. Otherwise, return false.
func RomanToInt ¶
RomanToInt convert roman numeral to int, it returns 0 if s is not a valid roman numeral.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.