Process Logs

Problem Overview

  • Identify suspicious users from money transfer logs who appear in at least a given threshold of entries.
  • Input: logs[n] strings "sender recipient amount" and an int threshold; Output: user_id strings sorted by numeric value.
  • Constraints: n up to 1e5; IDs/amount are 1–9 digits, start non-zero; 1 ≤ threshold ≤ n.
  • Context: Analyze application logs to flag potential suspicious activity.
  • From Snowflake interviews; a coding interview problem and common interview question.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: