Notice
250x250
Recent Posts
Recent Comments
Link
목록2024/03/22 (1)
넘치게 채우기
[LeetCode] 234. Palindrome Linked List (O(n) 시간복잡도, O(1)공간복잡도 풀이)
https://leetcode.com/problems/palindrome-linked-list/description/ Leetcode - Palindrome Linked List 문제 유형 : 연결 리스트 문제 난이도 : Easy 문제 Given the head of a singly linked list, return true if it is a palindrome or false otherwise. Follow up: Could you do it in O(n) time and O(1) space? 단순 연결리스트의 head가 주어진다. 팰린드롬이면 true를, 아니라면 false를 반환하시오. ++: O(n)의 시간과 O(1)의 공간복잡도로 하실 수 있으시겠습니까? 풀이 그냥 따로 데이터를 저장하는 식..
PS/LeetCode
2024. 3. 22. 11:08