PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Coding & Algorithms/Atlassian

Determine whether a word exists in a letter grid

Last updated: Mar 29, 2026

Quick Overview

This question evaluates algorithmic problem-solving and implementation skills in grid-based search, including concepts like graph traversal and backtracking; it falls under Coding & Algorithms and primarily assesses practical application and state-management implementation rather than only conceptual understanding.

  • medium
  • Atlassian
  • Coding & Algorithms
  • Software Engineer

Determine whether a word exists in a letter grid

Company: Atlassian

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Given an `m x n` grid of characters `board` and a string `word`, determine whether `word` can be constructed from sequentially adjacent cells. Rules: - Adjacent cells are those horizontally or vertically neighboring (no diagonals). - The same cell may not be used more than once in a single construction path. #### Input - `board`: 2D array of characters - `word`: target string #### Output - Return `true` if `word` exists in the grid by the rules above, else `false`. #### Example `board = [[A,B,C,E],[S,F,C,S],[A,D,E,E]]`, `word = "ABCCED"` → `true` #### Constraints - `1 ≤ m, n ≤ 12` - `1 ≤ |word| ≤ m*n`

Quick Answer: This question evaluates algorithmic problem-solving and implementation skills in grid-based search, including concepts like graph traversal and backtracking; it falls under Coding & Algorithms and primarily assesses practical application and state-management implementation rather than only conceptual understanding.

Related Interview Questions

  • Compute a moving average on a stream - Atlassian (hard)
  • Find a secret word using match feedback - Atlassian (hard)
  • Implement sliding-window rate limiter function - Atlassian (medium)
  • Merge intervals and design rating APIs - Atlassian (medium)
  • Implement sequential and parallel URL requests - Atlassian (medium)
Atlassian logo
Atlassian
Jan 22, 2026, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
3
0
Loading...

Given an m x n grid of characters board and a string word, determine whether word can be constructed from sequentially adjacent cells.

Rules:

  • Adjacent cells are those horizontally or vertically neighboring (no diagonals).
  • The same cell may not be used more than once in a single construction path.

Input

  • board : 2D array of characters
  • word : target string

Output

  • Return true if word exists in the grid by the rules above, else false .

Example

board = [[A,B,C,E],[S,F,C,S],[A,D,E,E]], word = "ABCCED" → true

Constraints

  • 1 ≤ m, n ≤ 12
  • 1 ≤ |word| ≤ m*n

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Atlassian•More Software Engineer•Atlassian Software Engineer•Atlassian 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.