Permutation in String, three ways

Try:
CALL
1 / 1

Code

The highlighted line runs next. The pill shows the live values in the running call.

Cost

Work done so far, and how the three solutions compare

The strings

Tinted cells of s2 are the window being checked

Keyboard: ← → step, Space play or pause. s1 is 1 to 6 lowercase letters and s2 is 1 to 12. The Java hash-table version unboxes the counts into int before comparing, because == on two Integer objects compares references.