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

0% completed

Problem 11: Palindrome Multithreaded Investigator
Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

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!

Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible