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
- JSON
- @ManyToOne
- 함께 자라기 후기
- Jackson
- 스프링 부트 튜토리얼
- 스프링부트
- spring boot app
- 스프링 데이터 jpa
- spring boot application
- Linux
- Spring Boot Tutorial
- Spring Data JPA
- Spring Boot JPA
- JPA
- 함께 자라기
- 스프링 부트
- 스프링 부트 회원 가입
- gRPC
- intellij
- r
- Java
- proto3
- Spring Boot
- spring boot jwt
- 헥사고날 아키텍처
- 스프링 부트 애플리케이션
- QueryDSL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함