PracHub
QuestionsCoachesLearningGuidesInterview Prep

Quick Overview

Practice a Uber coding interview problem focused on determine whether a word exists in a character grid. The prompt emphasizes edge cases, clean implementation, and verifiable test behavior without revealing the solution.

  • hard
  • Uber
  • Coding & Algorithms
  • Software Engineer

Determine Whether a Word Exists in a Character Grid

Company: Uber

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Given a 2D character grid and a word, return whether the word can be formed by moving horizontally or vertically between adjacent cells without reusing a cell. Implement: ```python def exists_in_grid(board: list[list[str]], word: str) -> bool: pass ```

Quick Answer: Practice a Uber coding interview problem focused on determine whether a word exists in a character grid. The prompt emphasizes edge cases, clean implementation, and verifiable test behavior without revealing the solution.

Return whether a word exists by walking adjacent cells without reuse.

Examples

Input: {"board":[["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]],"word":"ABCCED"}

Expected Output: true

Explanation: Exists.

Input: {"board":[["A","B"],["C","D"]],"word":"ABCD"}

Expected Output: false

Explanation: Cannot jump.

Input: {"board":[["A"]],"word":"A"}

Expected Output: true

Explanation: Single.

Input: {"board":[["A"]],"word":"B"}

Expected Output: false

Explanation: Mismatch.

Input: {"board":[["A","A"]],"word":"AAA"}

Expected Output: false

Explanation: Cannot reuse.

Input: {"board":[["A","B"],["D","C"]],"word":"ABCD"}

Expected Output: true

Explanation: Path around square.

Input: {"board":[],"word":"A"}

Expected Output: false

Explanation: Empty board.

Input: {"board":[["A"]],"word":""}

Expected Output: true

Explanation: Empty word.

Last updated: Jul 4, 2026

Loading coding console...

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
  • AI Coding 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.

Related Coding Questions

  • Thread-Safe Token-Bucket Rate Limiter - Uber (medium)
  • Group Anagrams - Uber (medium)
  • Quadtree for 2D Geospatial Points - Uber (medium)
  • Deep Equality of Two Records - Uber (medium)
  • Shortest Path in a Grid with Blocked Cells - Uber (medium)