PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Palo

Implement three whiteboard coding tasks

Last updated: Apr 6, 2026

Quick Overview

This set of whiteboard coding tasks evaluates proficiency in algorithmic problem-solving, data structure design, and parsing techniques by covering binary search, randomized set operations with average O(1) complexity, and operator-precedence expression evaluation including nested parentheses.

  • easy
  • Palo
  • Coding & Algorithms
  • Software Engineer

Implement three whiteboard coding tasks

Company: Palo

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: easy

Interview Round: Onsite

The interview report described several coding questions in the same category: 1. **Binary search**: Given a sorted array of integers and a target value, return the index of the target if it exists, otherwise return `-1`. The expected time complexity is `O(log n)`. 2. **Randomized set data structure**: Design a data structure that supports the following operations in average `O(1)` time: - `insert(x)`: add `x` if it is not already present - `remove(x)`: delete `x` if it is present - `getRandom()`: return a uniformly random element from the current set 3. **Expression evaluator**: Given a string containing non-negative integers, spaces, and the operators `+`, `-`, `*`, and `/`, evaluate the expression while respecting normal operator precedence. As a follow-up, extend the evaluator to support nested parentheses.

Quick Answer: This set of whiteboard coding tasks evaluates proficiency in algorithmic problem-solving, data structure design, and parsing techniques by covering binary search, randomized set operations with average O(1) complexity, and operator-precedence expression evaluation including nested parentheses.

Related Interview Questions

  • Find Maximum Rectangle in Bar Chart - Palo (medium)
  • Find minimum tanks to cover all houses - Palo (medium)
Palo logo
Palo
Jan 30, 2026, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
1
0

The interview report described several coding questions in the same category:

  1. Binary search : Given a sorted array of integers and a target value, return the index of the target if it exists, otherwise return -1 . The expected time complexity is O(log n) .
  2. Randomized set data structure : Design a data structure that supports the following operations in average O(1) time:
    • insert(x) : add x if it is not already present
    • remove(x) : delete x if it is present
    • getRandom() : return a uniformly random element from the current set
  3. Expression evaluator : Given a string containing non-negative integers, spaces, and the operators + , - , * , and / , evaluate the expression while respecting normal operator precedence. As a follow-up, extend the evaluator to support nested parentheses.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Palo•More Software Engineer•Palo Software Engineer•Palo Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.