1721. Swapping Nodes in a Linked List
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed). Example 1: Input: head = [1,2,3,4,5], k = 2 Output: [1,4,3,2,5]Example 2: Input: head = [7,9,6,6,7,8,3,0,9,5], k = 5 Output: [7,9,6,6,8,7,3,0,9,5]Const..
Algorithm/LeetCode
2022. 4. 15. 10:30
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 스프링 부트 회원 가입
- leetcode
- Jackson
- Spring Boot Tutorial
- proto3
- JPA
- @ManyToOne
- r
- QueryDSL
- 스프링 데이터 jpa
- spring boot application
- Spring Boot
- 스프링 부트
- 헥사고날 아키텍처
- Spring Data JPA
- gRPC
- spring boot jwt
- 알고리즘
- spring boot app
- 스프링부트
- Java
- Spring Boot JPA
- intellij
- 클린 아키텍처
- 스프링 부트 튜토리얼
- 스프링 부트 애플리케이션
- 함께 자라기 후기
- 함께 자라기
- Linux
- JSON
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함