Irisation23 / Java_Algorithm

🧠.equals("CPU");
0 stars 0 forks source link

[문제 08] 문자열 압축 #96

Open Irisation23 opened 3 months ago

Irisation23 commented 3 months ago

제목 : 문자열 압축

타입 : 문자열

난이도 : lv2

설명

https://school.programmers.co.kr/learn/courses/30/lessons/60057

Irisation23 commented 3 months ago

체크 포인트

  1. 1부터 입력 문자열 s의 길이만큼 자를 문자열의 길이를 설정하여 반복
  2. 설정된 길이만큼 문자열을 잘라 낸 token 배열 생성
  3. 문자열을 비교하며 token의 배열을 하나의 문자열로 압축
  4. 1~3과정으로 압축된 문자열 중 가장 짧은 길이 반환