Grokking Multithreading and Concurrency for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Problem 11: Palindrome Multithreaded Investigator

Overview

The challenge at hand is to evaluate a sequence of numbers and categorize them into palindromes and non-palindromes. A palindrome is a number (or a word) that reads the same backward as forward (e.g., 121, 12321).

In this problem, the task of categorization is done by two separate threads:

  • Thread A: Responsible for detecting and outputting palindromes.
  • Thread B: Responsible for detecting and outputting non-palindromes.

The challenge is magnified by the constraint that the numbers should be output in sequence, regardless of their categorization

.....

.....

.....

Like the course? Get enrolled and start learning!