Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Class name must be "Main"
- // Libraries included:
- // json simple, guava, apache commons lang3, junit, jmock
- /**
- Input: ['abc', 'dog', 'grj', 'bcd', 'eph', 'def', 'apple']
- Output: [['abc', 'bcd', 'def'], ['dog', 'grj', 'eph'], ['apple']]
- ['abc', 'apple', 'bcd', 'def', 'dog', 'eph', 'grj']
- [abc]
- [apple]
- [bcd, def]
- ['abc', 'bcd', 'def', 'dog', 'eph', 'grj'], ['apple']
- b - a = 1
- c - b = 1
- abc - (1,1) - "1.1"
- bcd - (c - b) = 1, d - c = 1 -> "1.1"
- {
- (1,1) : [abc, bcd..]
- }
- abc, bcd
- ascci(a) - ascii(b) = 1
- ascci(b) - ascii(c) = 1
- ascci(c) - ascii(d) = 1
- ['abc', 'dog', 'grj', 'bcd', 'eph', 'def', 'apple']
- */
- /**
- cnf - dog shifted -1
- dog
- eph - dog shifted +1
- fqi - dog shifted +2
- grj - dog shifted +3
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement