Frequency sequence

From codewars.com by Edxael  (that’s me)

Description:

Return an output string that translates an input string s/$s by replacing each character in s/$s with a number representing the number of times that character occurs in s/$s and separating each number with the character(s) sep/$sep.     The following is an example of how the method should work

My solution.

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: “glonnon”.

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: “nenoch”.

 

 

 



Copyright 2017. All rights reserved.

Posted January 1, 2017 by Edmundo in category "Ruby Examples