FastPrepFilter Team A Transfer Logs
Problems/Filter Team A Transfer Logs

Filter Team A Transfer Logs

Chainalysis logoChainalysis● EasyFULLTIMEONSITE INTERVIEW

Updated Sep 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: A first-hand Chainalysis onsite report asks to filter Team A logs again to the transfer search type. Returning zero-based indices in stream order and exact labels are explicit execution assumptions; the reported core matches at about 94%.

Parallel arrays describe a stream of logs: teams[i] is the team and searchTypes[i] is the search type of log i.

Return the zero-based indices whose team is exactly Team A and whose search type is exactly transfer, preserving stream order.

Function

filterTeamATransferLogs(teams: String[], searchTypes: String[]) → int[]

Examples

Example 1

teams = ["Team A","Team B","Team A"]searchTypes = ["transfer","transfer","address"]return = [0]

Only the first log satisfies both predicates.

Example 2

teams = ["Team A","Team A"]searchTypes = ["Transfer","transfer"]return = [1]

Search-type matching is exact.

Constraints

  • The arrays have the same length from 0 through 100000.
  • Every value is a non-empty ASCII string.

More Chainalysis interview questions

  • Block Transaction Count TrendsONSITE INTERVIEW · Seen Mar 2025
  • Filter Team A LogsONSITE INTERVIEW · Seen Mar 2025
  • High-Severity Counts by Search TypeONSITE INTERVIEW · Seen Mar 2025
  • Team A High-Severity Transfer HashesONSITE INTERVIEW · Seen Mar 2025
  • Meeting RoomsPHONE SCREEN · Seen Apr 2025
  • Meeting Rooms IIPHONE SCREEN · Seen Apr 2025
  • Course Schedule IIOA · Seen Nov 2022
  • Longest Common SuffixOA · Seen Nov 2022

Similar questions at other companies

  • Bad Request AlertsMicrosoft · ONSITE INTERVIEWMicrosoft interview questions
  • Confusing Bib NumbersVerily · ONSITE INTERVIEW
  • Group Transactions by HourAffirm · ONSITE INTERVIEWAffirm interview questions
  • Longest Common PrefixKotak Mahindra Bank · PHONE SCREEN · ONSITE INTERVIEWKotak Mahindra Bank interview questions
  • Rotate a Matrix by 90 DegreesIDFC Bank · ONSITE INTERVIEWIDFC Bank interview questions
  • Plus OneDruva · ONSITE INTERVIEW
  • Ring Buffer OperationsAmazon · ONSITE INTERVIEW
  • Rotate a Flat Image ClockwiseGoogle · ONSITE INTERVIEWGoogle interview questions
  • Merge Sorted ArrayDP World · ONSITE INTERVIEW
  • List the Key and Value of Every Map EntryNewgen Software · ONSITE INTERVIEW
All Chainalysis interview questionsSee Chainalysis hiring insights
Saved
class Solution {
    public int[] filterTeamATransferLogs(String[] teams, String[] searchTypes) {
        // write your code here
    }
}
Checking account…