Flag TASER Firings Not Fully Captured On Body Camera

Last updated: November 29, 2026

Quick Overview

Given TASER firing events (device, officer, timestamp) and each officer's body camera recording segments, return the firings where the officer's camera did not record continuously from 30 seconds before to 30 seconds after the firing.

Axon
Coding & Algorithms
Software Engineer
Axon
November 29, 2026
Software Engineer
Onsite
Coding & Algorithms
Medium

0

0

0 solved


Given TASER firing events (device, officer, timestamp) and each officer's body camera recording segments, return the firings where the officer's camera did not record continuously from 30 seconds before to 30 seconds after the firing.

Axon's ecosystem links devices: a TASER trigger can be correlated with body camera footage so use-of-force reviews are complete. The interviewer looks for merging overlapping segments per officer, then answering many window-coverage queries efficiently instead of scanning every segment per event.

What the Interviewer Expects
  • Merge overlapping or touching segments per officer first
  • Answer each query with binary search over merged starts
  • Correctly require a single merged segment to cover the full window
  • Handle officers with no recordings
  • Give complexity in terms of segments and events
Key Topics to Cover
interval merging
binary search
device correlation
preprocessing for queries
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • What if a short gap under one second should count as continuous?
  • How would you return the uncovered sub-intervals rather than a boolean?
  • How would you do this in a streaming system where footage uploads hours after the firing?
  • How would you also consider footage from any other officer on scene?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

Input: firings list of (device_id, officer, t), recordings dict officer to list of (start, end); window is [t - pre, t + post] with defaults 30/30. Output: firings not fully covered, in inpu...

High-Level Design

Coverage of a contiguous window is only possible by one merged segment, because merged segments are disjoint with gaps between them. So: merge each officer's segments once (sort, then fold overlaps). ...


Submit Your Answer
Markdown supported

Related Questions