Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 20th, 2018
81
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
[1,1,1,1,2,2,2,3,3,3].inject([]) { |temp, int|
if temp.last != nil && temp.last[0] == int
temp[-1] = [int, temp.last[1] + 1]
else
temp << [int, 1]
end
temp
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Cardano Foundation Unveils Interim Constituti...
PHP | 6 min ago | 0.10 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 18 min ago | 0.39 KB
Create Spline from code
C# | 24 min ago | 0.73 KB
Crypto Exchange Binance Secures Full VASP Lic...
PHP | 39 min ago | 0.08 KB
Untitled
C# | 47 min ago | 22.13 KB
Untitled
PHP | 53 min ago | 0.97 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.38 KB
cloneRecord
JavaScript | 2 hours ago | 0.83 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!