Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagejava
title8th week.
package leetcode;

//* Definition for singly-linked list.
class ListNode_0234 {
    int val;
    ListNode_0234 next;

    ListNode_0234() {
    }

    ListNode_0234(int val) {
        this.val = val;
    }

    ListNode_0234(int val, ListNode_0234 next) {
        this.val = val;
        this.next = next;
    }
}


public class No0234_P_PalindromeLinkedList {

    public static void main(String[] args) {

        No0234_P_PalindromeLinkedList no0234_p_palindromeLinkedList = new No0234_P_PalindromeLinkedList();
        // make ListNode
        ListNode_0234 headNode = new ListNode_0234(1, new ListNode_0234(2));
        // ..
        boolean result = no0234_p_palindromeLinkedList.solution(headNode);
        System.out.println(result);


    }

    public boolean solution(ListNode_0234 listNode) {


        // 리스트 노트 -> deque


        // 계속 순서대로  pollFirst, pollLast  등가 비교하다가 틀린거 나오면 false 리턴
time






         return true;
    }


}