ComputeAlphabet Function that returns string of all the possible characters in given patterns.
(p []string)
| 59 | |
| 60 | // ComputeAlphabet Function that returns string of all the possible characters in given patterns. |
| 61 | func ComputeAlphabet(p []string) (s string) { |
| 62 | s = p[0] |
| 63 | for i := 1; i < len(p); i++ { |
| 64 | s = s + p[i] |
| 65 | } |
| 66 | return s |
| 67 | } |
| 68 | |
| 69 | // IntArrayCapUp Dynamically increases an array size of int's by 1. |
| 70 | func IntArrayCapUp(old []int) (new []int) { |