Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- DART
- Algorithm
- slice
- len
- sum
- STR
- js
- map
- iNT
- lambda
- enumerate
- 위코드
- WECODE
- 파이썬
- count
- Sorted
- MAX
- Python
- join
- split
- FOR
- decorator
- or
- range
- list
- and
- index
- LOWER
- If
- SQL
Archives
- Today
- Total
목록Iterable (1)
코드로 우주평화
Unique In Order
Description: Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same value next to each other and preserving the original order of elements. For example: uniqueInOrder('AAAABBBCCDAABBB') == ['A', 'B', 'C', 'D', 'A', 'B'] uniqueInOrder('ABBCcAD') == ['A', 'B', 'C', 'c', 'A', 'D'] uniqueInOrder([1,2,2,3,3]) == [1,2,3]..
나는 이렇게 학습한다/Algorithm & SQL
2022. 2. 26. 14:44