Skip to content

Instantly share code, notes, and snippets.

import unittest
from collections import defaultdict
def check_palindrome_permutation(input_string):
"""입력받은 문자열이 palindrome의 순열을 갖는지 확인한다."""
char_count = defaultdict(int)
for char in input_string:
char_count[char] += 1

ORM (Object Relational Mapping)

  • 객체와 관계형 데이터베이스간의 매핑

  • 직관적이며 재사용 및 유지보수가 용이함

  • DBMS에 종속적이지 않음