FastPrepCatch Fish with Reusable Baits
Problems/Catch Fish with Reusable Baits

Catch Fish with Reusable Baits

Susquehanna International Group (SIG) logoSusquehanna International Group (SIG)● EasyFULLTIMEOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in a SIG online assessment. The report names the same task but does not include the original wording, examples, or limits. The statement, examples, and limits here are ours.

Our version is about 95% the same as the reported question.

Special thanks: 🌷 A special thank you to a lovely, amazing fren for sharing that this question appeared in an interview on November 14, 2026! (∩˃o˂∩)♡ 🩵

You are given two arrays of positive integers, fish and baits. Each value in fish is a fish size, and each value in baits is the size of one bait.

  • A bait can catch a fish only when the bait is strictly smaller than that fish.
  • A caught fish is removed and cannot be caught again.
  • Each bait can be used at most 3 times.

Process the baits from largest to smallest. For each bait, repeatedly catch the largest remaining fish that it can catch. Move to the next bait after the current bait has been used three times or when it cannot catch any remaining fish.

Return the total number of caught fish after every bait has been processed.

Function

countCaughtFish(fish: int[], baits: int[]) → int

Examples

Example 1

fish = [1,2,3]baits = [1]return = 2

The bait of size 1 catches fish of sizes 3 and 2. It cannot catch the remaining fish of size 1, so the result is 2.

Example 2

fish = [2,2,3,4]baits = [1]return = 3

The only bait is smaller than every fish, but it can be used only three times. It catches fish of sizes 4, 3, and 2.

Example 3

fish = [1,4,3,2]baits = [1,1]return = 3

The first bait catches fish of sizes 4, 3, and 2. The only remaining fish has size 1, so the second bait cannot catch it.

Constraints

  • 1 ≤ fish.length ≤ 10^5
  • 1 ≤ baits.length ≤ 10^5
  • 1 ≤ fish[i] ≤ 10^9
  • 1 ≤ baits[i] ≤ 10^9

More Susquehanna International Group (SIG) Online Assessment questions

  • Bold Play to Reach a GoalOA · Seen Nov 2026
  • Cats, Truth and Who Has MoreOA · Seen Nov 2026
  • Counting Cows by Their LegsOA · Seen Nov 2026
  • Enough Muffins for the LineOA · Seen Nov 2026
  • Expected Consecutive Pairs Among Chosen NumbersOA · Seen Nov 2026
  • Four-by-Four Boundary GridOA · Seen Nov 2026
  • Frog Paths Without Long RunsOA · Seen Nov 2026
  • Higher Roll, or Lose the SumOA · Seen Nov 2026
  • Is a Popular Story Fake?OA · Seen Nov 2026
  • Knights, Knaves and Their StatementsOA · Seen Nov 2026

Similar questions at other companies

  • Can Every Package Fit in a BoxIMC Trading · OAIMC Trading interview questions
  • Minimum Tunnel Crossing TimeArcesium · OAArcesium interview questions
  • Get Maximum PairsAmazon · OA
  • Find Maximum GreatnessTwilio · OATwilio interview questions
  • Binge WatchingVanguard · OAVanguard interview questions
  • Maximum Easy Tasks After RearrangingIBM · OAIBM interview questions
  • Latest Arrival to Catch a BusAutodesk · OAAutodesk interview questions
  • Minimum Removals to Balance ArraySalesforce · OASalesforce interview questions
  • Minimum Machines for TasksExpedia · OAExpedia interview questions
  • Find Minimum Possible SizeMathWorks · OAMathWorks interview questions

Susquehanna International Group (SIG) interview experiences

  • SIG Quant Researcher Experienced Hire Interviews: 11 Experiences
  • SIG Quant Research Intern Interviews: 60 Experiences
  • SIG Quant Researcher New Grad Interviews: 49 Experiences
  • SIG Quant Researcher Intern Interviews: 1 Experience
  • SIG Quant Second-Round Tech Screen: 1 Experience
All Susquehanna International Group (SIG) interview questionsSee Susquehanna International Group (SIG) hiring insights
Saved
class Solution {
    public int countCaughtFish(int[] fish, int[] baits) {
        // Write your code here.
    }

}
Checking account…