Filter Team A Transfer Logs
Updated
Problem statement
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
0through100000. - 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