[코딩뱃] [자바] Warmup - 2단계 : last2 문제
https://codingbat.com/prob/p178318 CodingBat Java Warmup-2 last2 Given a string, return the count of the number of times that a substring length 2 appears in the string and also as the last 2 chars of the string, so "hixxxhi" yields 1 (we won't count the end substring). codingbat.com = 문제 번역 = (내가 풀어놓은 설명) 문자열의 제일 뒤쪽 2개의 문자가, 문자의 전체에서 몇 번 반복되는가 count하면 됩니다. 하지만, 문자 길이가 2보다 작으면 0이 반환되어야하며, 반복되어야하..
코딩테스트/Coding Bat
2021. 12. 2.