FastPrepPalindrome Linked List
Problems/Palindrome Linked List

Palindrome Linked List

Intuit logoIntuit● EasyFULLTIMEOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in an Intuit full-time online assessment. Several firsthand reports name the well-known Palindrome Linked List task. We chose what happens with an empty list, the limits on the numbers, and the function interface. Our version is about 98% the same as the reported question.

Return whether the node values of a singly linked list read the same forward and backward. An empty list and a one-node list are palindromes. The input is a linked-list head; examples show its node values as an array. You may modify links while computing the answer.

Function

isPalindrome(head: ListNode) → boolean

Examples

Example 1

head = [1,2,2,1]return = true
head
1221

The forward and reverse value sequences agree.

Example 2

head = [1,2]return = false
head
12

The two endpoint values differ.

Constraints

  • For this exercise, assume at most 100000 nodes, each containing a signed 32-bit integer.

More Intuit Online Assessment questions

  • Employee Promotion OpportunitiesOA · Seen Oct 2026
  • Next Pascal Row CoefficientOA · Seen Oct 2026
  • Parse Router LogsOA · Seen Oct 2026
  • Longest Repeated Letter Block with Adjacent SwapsOA · Seen Oct 2026
  • Maximum Square-Free DivisorOA · Seen Oct 2026
  • Two Tribes from Taller-Person CountsOA · Seen Oct 2026
  • Shortest Path from an Encoded GraphOA · Seen Sep 2026
  • Oldest and Youngest EmployeesOA · Seen Sep 2026
  • Pressure-Isolation Shutdown OrderOA · Seen Sep 2026
  • Submask Sum QueriesOA · Seen Sep 2026

Similar questions at other companies

  • Find the Intersection Node of Two Linked ListsConcentric AI · OAConcentric AI interview questions
  • Merge Two Sorted ListsThe Walt Disney Company · OAThe Walt Disney Company interview questions
  • Reverse Linked-List Nodes in Groups of KPeopleStrong · OA · PHONE SCREENPeopleStrong interview questions
  • Merge Two Sorted ListsLinkedIn · PHONE SCREENLinkedIn interview questions
  • Middle of a Linked ListCisco · PHONE SCREENCisco interview questions
  • Detect a Loop in a Linked ListEPAM · ONSITE INTERVIEWEPAM interview questions
  • Merge Two Sorted ListsIBM · PHONE SCREENIBM interview questions
  • Count Nodes in a ChainApple · PHONE SCREENApple interview questions
  • Detect a Cycle in a Linked ListSalesforce · PHONE SCREENSalesforce interview questions
  • Find the Intersection Node of Two Linked ListsVisa · PHONE SCREENVisa interview questions

Interview reports that mention this question

  • Intuit OA: What It Tests (2026)

Intuit interview experiences

  • Intuit Software Engineering Intern - Full Stack OA Format
All Intuit interview questionsSee Intuit hiring insights
Saved
/**
 * 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 boolean isPalindrome(ListNode head) {
        // Write your code here
    }
}
Checking account…