about | help | code help+videos | done | prefs |
Given a String input, return an ArrayList of Integer that represents the frequency of each character in the input, in the same order as the original input. Each unique character value of the input is only represented once in the output. The input "abcb" becomes an output of [1,2,1] (only 3 elements) because the output only needs to represent the 'b' with one element. This problem is considerably harder than some of the others. apcsaListFrequencies("abc") → [1, 1, 1] apcsaListFrequencies("abbc") → [1, 2, 1] apcsaListFrequencies("abcb") → [1, 2, 1] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy