- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
""" | |
# -*- coding: utf-8 -*- | |
# UTF-8 encoding when using korean | |
num_of_lines = 2 | |
for i in range(num_of_lines): | |
if i == 0: | |
total_num = int(input()) | |
else: | |
num_list = [int(x) for x in input().split()] |
# -*- coding: utf-8 -*- | |
from unittest import TestCase, main | |
__author__ = 'MH Jeon' | |
class Node: | |
def __init__(self, data): |
from unittest import main, TestCase | |
class Node: | |
def __init__(self, data, next): | |
self._data = data | |
self._next = next | |
def __repr__(self): |
from unittest import main, TestCase | |
class Node: | |
def __init__(self, data, next): | |
self._data = data | |
self._next = next | |
def __repr__(self): |
# -*- coding: utf-8 -*- | |
__author__ = "MH Jeon" | |
import os | |
from unittest import main, TestCase | |
import sys | |
""" Solution for EPI 8.1: Implement stack with max API """ |
# -*- coding: utf-8 -*- | |
__author__ = "Myong-Hoon Jeon" | |
from unittest import main, TestCase | |
class Node: | |
""" 연결리스트의 Node. """ |
def refactored_merge_two_sorted_lists(L1, L2): | |
dummy_head = tail = Node() | |
cur1 = L1 | |
cur2 = L2 | |
while cur1 and cur2: | |
if cur1.data < cur2.data: | |
tail.next, cur1 = cur1, cur1.next | |
else: | |
tail.next, cur2 = cur2, cur2.next |
# -*- coding: utf-8 -*- | |
__author__ = "MH Jeon" | |
import os | |
from unittest import main, TestCase | |
import sys | |
from linked_list import LinkedList |
from unittest import main, TestCase | |
class Node: | |
""" 연결리스트의 Node. """ | |
def __init__(self, data=None, next=None): | |
self.data = data | |
self.next = next |