https://github.com/likweitan/stutter
Write a method stutter that accepts a queue of integers as a parameter and replaces every element of the queue with two copies of that element for example [1, 2, 3] becomes [1, 1, 1, 2, 2, 2, 3, 3, 3].
https://github.com/likweitan/stutter
data-structures
Last synced: 3 months ago
JSON representation
Write a method stutter that accepts a queue of integers as a parameter and replaces every element of the queue with two copies of that element for example [1, 2, 3] becomes [1, 1, 1, 2, 2, 2, 3, 3, 3].
- Host: GitHub
- URL: https://github.com/likweitan/stutter
- Owner: likweitan
- Created: 2019-12-04T14:07:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T12:28:41.000Z (over 5 years ago)
- Last Synced: 2025-10-12T02:03:26.956Z (3 months ago)
- Topics: data-structures
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files: