코딩 공부

코딩 인터뷰 퀘스천 완전 분석 - Consecutive Characters 본문

Coding

코딩 인터뷰 퀘스천 완전 분석 - Consecutive Characters

Daily Coding 2020. 10. 17. 00:50

[LeetCode] [Easy] 1446. Consecutive Characters

 

leetcode.com/problems/consecutive-characters/

 

Consecutive Characters - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

 

 

가장 많이 연속된 캐릭터 찾기

for loop을 돌면서 전 캐릭터와 같은지 비교하고 같으면 max 값을 업데이트해주면 끝 (다르면 초기화)

 

 

 

 

비교적 쉬웠던 문제였어요 ㅎㅎ 

 

 

 

Comments