최근 포스트

[LeetCode] 242. Valid Anagram

최대 1 분 소요

Python class Solution: def isAnagram(self, s: str, t: str) -> bool: if sorted(s) == sorted(t): return True else: ...

[LeetCode] 292. Nim Game

최대 1 분 소요

Python class Solution: def canWinNim(self, n: int) -> bool: if n % 4 == 0: return False else: return True

[Python] 파이썬이 느린 이유

2 분 소요

1. 파이썬은 동적 타입 언어 파이썬은 동적 타입 언어(Dynamically Typed Language)이다: 정적 타입 언어인 C나 자바와 달리 원시 타입인 string, boolean, int 등을 선언할 필요가 없다. 하지만 선언을 하지 않은 만큼 컴퓨터는 할 일이 늘어난다....

[LeetCode] 206. Reverse Linked List

최대 1 분 소요

Python # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next...