← AT&T Interview Insights

AT&T·Software Engineer·Technical Phone Screen·Intermediate

Intermediate
Jun 2026

Summary

Phone screen for a software engineer role, just one coding question with a follow-up variant. Pretty light as far as technical screens go.

Questions Asked (1)

Q1

Given a list of entries each containing a timestamp and an intensity value, plus a threshold, return all contiguous time periods where the intensity exceeds that threshold.

Algorithms & Data Structures
Author's notes

Not a hard problem once you see it as a simple scan and merge intervals kind of thing.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Clarify the input format and edge cases, then propose a single-pass linear scan that tracks the start of each above-threshold period and emits it when the intensity drops to or below the threshold. Discuss time/space complexity and test with boundary cases like all above, all below, and alternating values.

Pro tip: Mention that you would confirm whether the threshold is inclusive or exclusive and how to handle missing timestamps or irregular intervals, as these details often matter in production systems.

1. Clarify requirements and edge cases

Ask about input format, threshold inclusivity, handling of empty lists, and whether timestamps are sorted or have gaps.

2. Design the algorithm

Propose a single-pass approach that iterates through entries, starting a period when intensity exceeds the threshold and ending it when it falls below.

3. Handle boundaries and output

Ensure the last period is closed if the list ends while above threshold, and define the output format (e.g., list of [start, end] timestamps).

4. Analyze complexity and test

State O(n) time and O(1) extra space (excluding output), and walk through test cases like all above, all below, and alternating values.

Key Points to Mention

  • Single-pass linear scan with O(n) time complexity
  • Tracking the start timestamp of each above-threshold period
  • Handling edge cases: empty input, all values above/below threshold, threshold exactly equal to intensity
  • Output format: list of contiguous periods as start and end timestamps
  • Threshold inclusivity (e.g., > vs >=) and its impact
  • Potential follow-up: streaming data or multiple thresholds

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.