PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Coding & Algorithms/Uber

Find the First Unique Log

Last updated: May 2, 2026

Quick Overview

This question evaluates a candidate's ability to analyze and implement efficient data-processing and frequency-detection strategies on ordered string sequences, with attention to time and memory complexity.

  • medium
  • Uber
  • Coding & Algorithms
  • Software Engineer

Find the First Unique Log

Company: Uber

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

You are given a list of log entries in the order they were produced. Each log entry can be treated as a string. Return the first log entry that appears exactly once in the entire list. If no such log entry exists, return `null` or an equivalent empty result. Example: Input: `["login", "click", "logout", "login", "purchase", "click"]` Output: `"logout"` Follow-up: How would your approach change if the input contains about 10 million log entries? Discuss time complexity, memory usage, and any practical considerations for large-scale processing.

Quick Answer: This question evaluates a candidate's ability to analyze and implement efficient data-processing and frequency-detection strategies on ordered string sequences, with attention to time and memory complexity.

Related Interview Questions

  • Implement Minesweeper and Word Search - Uber (medium)
  • Implement Store Autocomplete - Uber (medium)
  • Implement Cache Eviction And Seat Assignment - Uber (medium)
  • Schedule Non-Overlapping Meetings Efficiently - Uber (hard)
  • Evaluate an Arithmetic Expression - Uber
Uber logo
Uber
Mar 4, 2026, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
0
0
Loading...

You are given a list of log entries in the order they were produced. Each log entry can be treated as a string.

Return the first log entry that appears exactly once in the entire list. If no such log entry exists, return null or an equivalent empty result.

Example:

Input: ["login", "click", "logout", "login", "purchase", "click"]

Output: "logout"

Follow-up: How would your approach change if the input contains about 10 million log entries? Discuss time complexity, memory usage, and any practical considerations for large-scale processing.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

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

Master your tech interviews with 7,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.