Tag: 리트코드

스트링 관련 leetcode 문제

ide 를 사용하지 않고 문제를 풀어보기로leetcode 의 경우 include 에 대해 명시하지 않아도 사전에 include 되어 있는 라이브러리들이 대다수 https://leetcode.com/problems/valid-palindrome/ 125. Valid Palindrome https://leetcode.com/problems/reverse-string/ 344. Reverse String https://leetcode.com/problems/reorder-data-in-log-files/ 937. Reorder Data in Log Files https://leetcode.com/problems/most-common-word/ 819. Most Common Word테스트케이스 단어의 구분자가 ‘ ‘ 공백 ‘,’ 콤마로 복합적인데 그걸 간과하고 stringstram getlin 으로 tokenize 하려고 하다가 코드가 꼬였다 실제는 단어보다 […]