Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- std::string rle(std::string str) {
- }
- //std::string rle(//std::string str) {
- }
- // ABBBCCXYZDDDDEEEFFFAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBB
- // AB3C2XYZD4E3F3A6B28
- int main() {
- std::string input_string = "AAAABBBCCXYZDDDDEEEFFFAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBB";
- std::cout << "Result: " << rle(input_string) << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement