월간 보관물: 2020 10월

[LeetCode] 50 – Pow(x, n)

problem : https://leetcode.com/problems/powx-n/ Implement pow(x, n), which calculates x raised to the power n (i.e. xn). Example 1: Input: x = 2.00000, n = 10 Output: 1024.00000 Example 2: Input: x = 2.10000, n = 3 Output: 9.26100 Example 3: Input: x = 2.00000, n = … 계속 읽기

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

[LeetCode] 23 – Merge k Sorted Lists

problem : https://leetcode.com/problems/merge-k-sorted-lists/ You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. Example 1: Input: lists = [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2,3,4,4,5,6] Explanation: The linked-lists are: [ … 계속 읽기

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