Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- git
- Python
- LeetCode
- 알고리즘
- rownum
- java
- 회고
- 함수형 코딩
- jsp
- sqldeveloper
- 2020년 정보처리기사 4회
- 코드숨
- post
- 서평
- algorithms
- hackerrank
- 정보처리기사
- 책리뷰
- Jackson
- 주간회고
- 2020년 일정
- 뇌정리
- 스터디
- Til
- Real MySQL
- 2020년 제4회 정보처리기사 필기 문제 분석
- If
- 미니프로젝트
- 성적프로그램
- 필기
Archives
- Today
- Total
목록Merge Two Sorted Lists (1)
조컴퓨터
*21. Merge Two Sorted Lists
두 가지 배열을 합친 후 버블정렬인가 그거 하면 될듯... 일단 잔다. 211017 14:32 합치는 것보다 두 가지를 비교해서 하나씩 끌어오는게 효율적일 것 같아 다음과 같은 방식으로 작성했다. /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */ class Solution { public ListNode mergeTwoLists(ListNode l..
LeetCode/Algorithms
2021. 10. 17. 02:40