leetcode
-
📎 링크 Group Anagrams - 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 🤔 문제 문자열 배열이 주어지면, 애너그램 단위로 그룹화하세요. 애너그램(Anagram)이란 다른 단어나 구문의 글자를 재정렬하여 다른 뜻을 가진 단어로 바꾸는 것을 뜻합니다. (예시: '문전박대' -> '대박전문') 예제 입력 ["eat","tea","tan","ate","nat","bat"] 예제 출력 [ ["bat"], ["nat","tan"], ["ate","eat","..
[Algorithm/문제 05] 그룹 애너그램 (LC 49. Group Anagrams)📎 링크 Group Anagrams - 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 🤔 문제 문자열 배열이 주어지면, 애너그램 단위로 그룹화하세요. 애너그램(Anagram)이란 다른 단어나 구문의 글자를 재정렬하여 다른 뜻을 가진 단어로 바꾸는 것을 뜻합니다. (예시: '문전박대' -> '대박전문') 예제 입력 ["eat","tea","tan","ate","nat","bat"] 예제 출력 [ ["bat"], ["nat","tan"], ["ate","eat","..
2022.05.25 -
📎 링크 Most Common Word - 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 🤔 문제 paragraph에서 금지된 단어를 제외하고, 가장 빈번하게 등장하는 단어를 출력하세요. paragraph의 단어는 대소문자를 구분하지 않으며, 구두점(마침표, 쉼표 등) 또한 무시합니다. 답은 소문자로 반환해야 합니다. 예제 입력 paragraph = "Bob hit a ball, the hit BALL flew far after it was hit.", bann..
[Algorithm/문제 04] 가장 흔한 단어 (LC 819. Most Common Word)📎 링크 Most Common Word - 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 🤔 문제 paragraph에서 금지된 단어를 제외하고, 가장 빈번하게 등장하는 단어를 출력하세요. paragraph의 단어는 대소문자를 구분하지 않으며, 구두점(마침표, 쉼표 등) 또한 무시합니다. 답은 소문자로 반환해야 합니다. 예제 입력 paragraph = "Bob hit a ball, the hit BALL flew far after it was hit.", bann..
2022.05.22 -
📎 링크 Reorder Data in Log Files - 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 🤔 문제 각 로그는 공백으로 구분된 단어 문자열이며, 여기서 첫 번째 단어는 식별자입니다. 로그에는 문자 로그(식별자를 제외한 모든 단어는 소문자로 구성), 숫자 로그(식별자를 제외한 모든 단어는 숫자로 구성) 두 가지 유형이 있습니다. 제공되는 로그 배열을 아래 기준에 맞추어 재정렬하세요. 문자로 구성된 로그는 모든 숫자 로그보다 앞에 와야 합니다. 식별자..
[Algorithm/문제 03] 로그 파일 재정렬 (LC 937. Reorder Log Files)📎 링크 Reorder Data in Log Files - 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 🤔 문제 각 로그는 공백으로 구분된 단어 문자열이며, 여기서 첫 번째 단어는 식별자입니다. 로그에는 문자 로그(식별자를 제외한 모든 단어는 소문자로 구성), 숫자 로그(식별자를 제외한 모든 단어는 숫자로 구성) 두 가지 유형이 있습니다. 제공되는 로그 배열을 아래 기준에 맞추어 재정렬하세요. 문자로 구성된 로그는 모든 숫자 로그보다 앞에 와야 합니다. 식별자..
2022.05.22 -
📎 링크 Reverse String - 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 🤔 문제 문자열을 뒤집는 함수를 작성하세요. 단, 입력 문자열은 문자 배열로 주어지며, 리턴 없이 리스트 내부를 직접 조작해야 합니다. 예제 입력1 ["h","e","l","l","o"] 예제 출력1 ["o","l","l","e","h"] 예제 입력2 ["H","a","n","n","a","h"] 예제 출력2 ["h","a","n","n","a","H"] 💡 풀이 (22.05...
[Algorithm/문제 02] 문자열 뒤집기 (LC 344. Reverse String)📎 링크 Reverse String - 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 🤔 문제 문자열을 뒤집는 함수를 작성하세요. 단, 입력 문자열은 문자 배열로 주어지며, 리턴 없이 리스트 내부를 직접 조작해야 합니다. 예제 입력1 ["h","e","l","l","o"] 예제 출력1 ["o","l","l","e","h"] 예제 입력2 ["H","a","n","n","a","h"] 예제 출력2 ["h","a","n","n","a","H"] 💡 풀이 (22.05...
2022.05.21 -
📎 링크 Valid Palindrome - 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 🤔 문제 주어진 문자열이 팰린드롬이면 true를 반환하고, 그렇지 않으면 false를 반환합니다. 모든 대문자는 소문자로 변환하고, 영문자와 숫자만을 대상으로 합니다. (영문자, 숫자가 아닌 문자는 모두 제거) 참고) 팰린드롬이란 앞뒤가 똑같은 단어나 문장으로, 뒤집어도 같은 말이 되는 단어 또는 문장을 뜻합니다. (예시: '소주 만 병만 주소' -> 뒤집을 경우에도 '소주..
[Algorithm/문제 01] 유효한 팰린드롬 (LC 125. Valid Palindrome)📎 링크 Valid Palindrome - 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 🤔 문제 주어진 문자열이 팰린드롬이면 true를 반환하고, 그렇지 않으면 false를 반환합니다. 모든 대문자는 소문자로 변환하고, 영문자와 숫자만을 대상으로 합니다. (영문자, 숫자가 아닌 문자는 모두 제거) 참고) 팰린드롬이란 앞뒤가 똑같은 단어나 문장으로, 뒤집어도 같은 말이 되는 단어 또는 문장을 뜻합니다. (예시: '소주 만 병만 주소' -> 뒤집을 경우에도 '소주..
2022.05.21