This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"market": "", | |
"userId": "", | |
"deviceAccount": "", | |
"playerState": { | |
"remainStamina": 49, | |
"clearStoryDungeonNumNormal": 91, | |
"clearStoryDungeonNumHard": 81, | |
"grade": 17, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GetFirstNonRepeatedLetter | |
static final int REPEAT = -1; | |
public static Character getFirstNonRepeatedLetter(String word) { | |
// check if the word is null | |
if (word == null) throw new NullPointerException() | |
// store a count of character occurrences | |
Map<Character, Integer> map = new HashMap<Character, Integer>(); |