Study/problem solving 10

[LeetCode] 49. Group Anagrams

Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. * anagram: 문자를 재배열하여 다른 뜻을 가진 단어로 바꾸는 것 Example: Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["ate","eat","..

[LeetCode] 125. Valid Palindrome

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers. Given a string s, return true if it is a palindrome, or false otherwise. * palindrome: 역순으로 읽어도 같은 말이나 구절, 숫자 등을 의미한다. Example: Input: s = "A man, a plan, a canal: Pana..