월간 보관물: 2020 9월

[LeetCode] 743 – Network Delay Time

problem : https://leetcode.com/problems/network-delay-time/ There are N network nodes, labelled 1 to N. Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v is the target node, and w is the time it takes for a signal to travel from source to target. Now, … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , | 댓글 남기기

[LeetCode] 15 – 3Sum

problem : https://leetcode.com/problems/3sum/ Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Notice that the solution set must not contain duplicate triplets. Example 1: Input: nums = [-1,0,1,2,-1,-4] … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , | 댓글 남기기

[LeetCode] 13 – Roman to Integer

problem : https://leetcode.com/problems/roman-to-integer/ Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one’s added together. Twelve … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , | 댓글 남기기

[LeetCode] 12 – Integer to Roman

problem : https://leetcode.com/problems/integer-to-roman/ Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one’s added together. Twelve … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , | 댓글 남기기

[LeetCode] 88 – Merge Sorted Array

problem : https://leetcode.com/problems/merge-sorted-array/ Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and nums2 are m and n respectively. You may assume that nums1 has enough space (size that is equal to m + n) to hold additional elements from nums2. Example: Input: nums1 = [1,2,3,0,0,0], m = … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , | 댓글 남기기

[LeetCode] 160 – Intersection of Two Linked Lists

problem : https://leetcode.com/problems/intersection-of-two-linked-lists/ Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to intersect at node c1. Example 1: Input: intersectVal = 8, listA … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , | 댓글 남기기

[LeetCode] 141 – Linked List Cycle

problem : https://leetcode.com/problems/linked-list-cycle/ Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where the tail connects to. … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , | 댓글 남기기

[LeetCode] 101 – Symmetric Tree

problem : https://leetcode.com/problems/symmetric-tree/ Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , | 댓글 남기기