PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCareers
|Home/Coding & Algorithms/Atlassian

Implement Multiple Interview Coding Tasks

Last updated: Apr 22, 2026

Quick Overview

This multi-part prompt evaluates algorithmic problem-solving and data structure design skills across string processing and greedy formatting, dynamic graph/connectivity tracking, collaborative-filtering style recommendation logic, pattern-based routing with wildcards, and constant-time key-count data structures.

  • medium
  • Atlassian
  • Coding & Algorithms
  • Software Engineer

Implement Multiple Interview Coding Tasks

Company: Atlassian

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Across several coding rounds, the following independent algorithm and data-structure problems were reported: 1. **Simplified line formatter**: Given a list of words and an integer `maxWidth`, greedily pack words into lines. For any line with at least two words, insert hyphens `-` between adjacent words so that the total line length becomes exactly `maxWidth`. Distribute any extra hyphens from left to right. If a line contains only one word, leave it unchanged even if it is shorter than `maxWidth`. 2. **Connection threshold tracker**: You are given a sequence of events of the form `[action, userA, userB]`, where `action` is either `connect` or `disconnect`. Treat connections as undirected. Ignore duplicate connects and invalid disconnects. After processing all events, return two sets of users: those with fewer than `n` active connections, and those with at least `n` active connections. 3. **Movie recommendation from similar viewers**: You are given rating records of the form `[userId, movieId, rating]` and a target user. Define a similar user as someone who has watched at least one movie also watched by the target user. Recommend every movie that the target user has not watched and that at least one similar user rated `4` or `5`. Return distinct movie IDs. 4. **Path router with wildcard support**: Implement `add(path, value)` and `get(path)`. Paths are slash-delimited strings such as `/bar/test/foo`. Support patterns containing `*`, where `*` matches exactly one path segment. Exact matches take priority over wildcard matches. If no route matches, return `null`. 5. **Constant-time key counter**: Design a data structure that supports `inc(key)`, `dec(key)`, `getMaxKey()`, and `getMinKey()` in constant time.

Quick Answer: This multi-part prompt evaluates algorithmic problem-solving and data structure design skills across string processing and greedy formatting, dynamic graph/connectivity tracking, collaborative-filtering style recommendation logic, pattern-based routing with wildcards, and constant-time key-count data structures.

Related Interview Questions

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

Across several coding rounds, the following independent algorithm and data-structure problems were reported:

  1. Simplified line formatter : Given a list of words and an integer maxWidth , greedily pack words into lines. For any line with at least two words, insert hyphens - between adjacent words so that the total line length becomes exactly maxWidth . Distribute any extra hyphens from left to right. If a line contains only one word, leave it unchanged even if it is shorter than maxWidth .
  2. Connection threshold tracker : You are given a sequence of events of the form [action, userA, userB] , where action is either connect or disconnect . Treat connections as undirected. Ignore duplicate connects and invalid disconnects. After processing all events, return two sets of users: those with fewer than n active connections, and those with at least n active connections.
  3. Movie recommendation from similar viewers : You are given rating records of the form [userId, movieId, rating] and a target user. Define a similar user as someone who has watched at least one movie also watched by the target user. Recommend every movie that the target user has not watched and that at least one similar user rated 4 or 5 . Return distinct movie IDs.
  4. Path router with wildcard support : Implement add(path, value) and get(path) . Paths are slash-delimited strings such as /bar/test/foo . Support patterns containing * , where * matches exactly one path segment. Exact matches take priority over wildcard matches. If no route matches, return null .
  5. Constant-time key counter : Design a data structure that supports inc(key) , dec(key) , getMaxKey() , and getMinKey() in constant time.

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
  • Careers
  • 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.