I hereby claim:
- I am jalexy12 on github.
- I am jalexy12 (https://keybase.io/jalexy12) on keybase.
- I have a public key ASAxHCXg7yqNzVL7ct4IUrbghfGlDz6ZcDX1t6j5H4AQhAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
In Ruby create a function that takes in a series of sequential letters, processes it, and returns a new string with the number of occurances of that letter in a row.
For instance: processString("aabbcc")
should return 2a2b2c. If a letter has only one occurance, it should only add the letter itself, not 1. For instance processString("abbcc")
should return a2b2c.
Letters in non sequential order should be returned as is. For instance processString("aabbccabbc")
should return 2a2b2ca2bc.
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<div class="container" style="margin-top: 50px;"> | |
<button class="btn btn-primary hello-button">Do Something</button> | |
</div> |