일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- BOF
- backend
- hackerschool
- 러닝 스칼라
- hacking
- 인공지능
- c++
- 러닝스칼라
- Javascript
- 리눅스
- Python
- hackthissite
- flask
- 파이썬
- 챗GPT
- php
- 웹해킹
- Linux
- 백엔드
- Scala
- Shellcode
- c
- ChatGPT
- BOF 원정대
- deep learning
- Web
- 경제
- webhacking
- mysql
- 딥러닝
- Today
- Total
목록Reduce (2)
jam 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bw0mXc/btrzn8RZnq0/xoxXQAE82LVNmCSLHAkRzk/img.png)
문제 Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: s = "pwwkew" Output: 3 Explanation: The answer is "wke", with the length of 3. Notice that the ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/6dvL3/btqJRlMIJZW/CHODQJIaeuZrK2vSQav801/img.jpg)
컬렉션(collection) 프레임워크는 배열, 리스트, 맵, 집합, 트리와 같이 주어진 타입을 가지는 하나 또는 그 이상의 값을 수집하는 데이터 구조를 제공한다. 1. 성능이 좋고, 객체지향적, 타입-매개변수화 - 자바 컬렉션 라이브러리 1. jvm이기 때문에 자바 컬렉션을 스칼라에서 활용 가능 스칼라는 여러 이유로 컬렉션을 재정의함 1. 고차함수 이용 (map, filter, reduce) 1. mutable/immutable 타입의 계층 구조 리스트, 집합, 그리고 맵 List 타입: immutable 단반향 연결 리스트 scala> val numbers = List(32, 95, 24, 21, 17) numbers: List[Int] = List(32, 95, 24, 21, 17) scala> v..