문제 풀이링크 : https://programmers.co.kr/learn/courses/4008/lessons/13246어떤 원소 x가 주어진 시퀀스타입에 몇 번이나 등장하는지 세야 할 때 = collections.Counter 클래스를 사용Counter :
반대로 읽어도 같은 문장이 되는 단어, 가운데 기준으로 나눠서 비교하는 것이 핵심이다.✏️ 문제풀이코드 상에 입력받은 문자에 반으로 나눠서 끝에서 부터 비교한다.맞으면 True, 아니면 False를 반환하는 함수를 작성한다.간단해 보이지만 else 문에 return T
After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of them are free, b
Given an array of strings, return another array containing all of its longest strings.Example💡 가장 긴 길이의 문자를 새로 리턴하는 것= 문자들의 길이 중 최대값을 구해 처음부터 다시 비교해
Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the people by their heights
Given a string, find out if its characters can be rearranged to form a palindrome.Example주어진 단어를 재배열 하면 팰린드론 단어가 되는 것 찾기💡 문제풀이 팁각 문자의 수를 세어 모두 짝수개 이면
The pixels in the input image are represented as integers. The algorithm distorts the input image in the following way: Every pixel x in the output im