https://leetcode.com/problems/shopping-offers/ Shopping Offers - 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 a, b, c의 갯수가 주어지고 aaa, bbb, ccc와 같이 연속된 3개의 문자가 나오지 않는 선에서 가장 긴 스트링을 리턴하는 문제 한 번 재귀로 접근해보았는데... 계속 예외케이스가 발생하고 결국 중단. 재귀로 푼 다음 메모이제이션으로 최적화가 가능할 것 같았는데... ccaccbcc 예시에서 ..