FastPrepCount Teams Outscoring a Target Team
Problems/Count Teams Outscoring a Target Team

Count Teams Outscoring a Target Team

Bloomberg LP logoBloomberg LP● EasyNEW GRADOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported by the original poster in a reply to a first-hand Bloomberg entry-level process. This corrects the preliminary football-score-combinations label to the actual prompt.

Given matches, scores, and a team name targetTeam, return how many teams scored strictly more goals than targetTeam.

Match i is matches[i] = [homeTeam, awayTeam], and its result is scores[i] = [homeGoals, awayGoals]. Every team plays in exactly one match.

Function

countTeamsOutscoring(matches: String[][], scores: int[][], targetTeam: String) → int

Examples

Example 1

matches = [["Red","Blue"],["Green","Yellow"],["Orange","Violet"]]scores = [[0,1],[2,5],[0,0]]targetTeam = "Blue"return = 2

Blue scored one goal. Only Green and Yellow scored more, so the answer is two.

Constraints

  • matches and scores have the same length.
  • targetTeam appears exactly once in matches.

More Bloomberg LP interview questions

  • Word SearchOA · PHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Longest Distance in a Frequency-Limited NetworkOA · Seen Sep 2026
  • Maximum Redundancy After One Segment FlipOA · Seen Sep 2026
  • Sum of Pipeline Response TimesOA · Seen Sep 2026
  • Merge IntervalsOA · PHONE SCREEN · ONSITE INTERVIEW · Seen Aug 2026
  • Design an Ordered StreamOA · PHONE SCREEN · ONSITE INTERVIEW · Seen May 2026
  • Ashley Loves Numbers (Financial Engineer)OA · Seen Nov 2019
  • Consecutive Sum (Financial Engineer Intern)OA · Seen Nov 2019
  • Find Longest ChainOA · Seen Sep 2017
  • N-ary Index-Path Encoder and DecoderPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026

Similar questions at other companies

  • Build the Task HierarchyPendo · OA
  • Count User Mentions in Chat MessagesRamp · OARamp interview questions
  • Word Frequency Counts in Alphabetical OrderAbridge · OAAbridge interview questions
  • Minimum Magic Stones After MergesElevenLabs · OAElevenLabs interview questions
  • Items SortAkuna Capital · OAAkuna Capital interview questions
  • Count Cross-Array Target-Sum PairsVisa · OAVisa interview questions
  • Array Rank TransformTata Consultancy Services · OATata Consultancy Services interview questions
  • Find Max Health SumAmazon · OA
  • Influencers SquadTikTok · OATikTok interview questions
  • Count Soldiers with a Next-Rank SuperiorMarshall Wace · OAMarshall Wace interview questions

Bloomberg LP interview experiences

  • Bloomberg AI-Assisted Coding Round, All Levels: 14 Experiences
  • Bloomberg SWE Intern Interview Questions: 68 Questions
  • Bloomberg Interview Questions, Level Not Reported: 65 Questions
  • Bloomberg Experienced Design & More: 126 Questions (Part 2 of 2)
  • Bloomberg Experienced SWE Interviews: 167 Questions (Part 1 of 2)
  • Bloomberg New Grad Coding Questions: 121 Questions (Part 2 of 2)
All Bloomberg LP interview questionsSee Bloomberg LP hiring insights
Saved
class Solution {
    public int countTeamsOutscoring(String[][] matches, int[][] scores, String targetTeam) {
      // Write your code here.
    }
}
Checking account…