You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package solutions
|
|
|
|
|
|
|
|
func NRune(s string, n int) rune {
|
|
|
|
if n > len(s) || n < 1 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
runes := []rune(s)
|
|
|
|
return runes[n-1]
|
|
|
|
}
|