Filter Team A Logs
Updated
Problem statement
Each index represents one log in a data stream, and teams[i] is that log's team.
Return the zero-based indices of every log whose team is exactly Team A, preserving stream order.
Function
filterTeamALogs(teams: String[]) → int[]Examples
Example 1
teams = ["Team A","Team B","Team A"]return = [0,2]The first and third logs belong to Team A.
Example 2
teams = ["team a","Team B"]return = []Team matching is exact and case-sensitive.
Constraints
0 <= teams.length <= 100000.- Each team name is a non-empty ASCII string.
More Chainalysis interview questions
- Block Transaction Count TrendsONSITE INTERVIEW · Seen Mar 2025
- Filter Team A Transfer 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