FastPrepReaching Points
Problems/Reaching Points

Reaching Points

Virtu Financial logoVirtu Financial● HardFULLTIMEOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: The interview report names the standard Reaching Points exercise. Our version keeps its moves on positive coordinates and the question of whether the point can be reached.

Start at the positive coordinate (sx, sy). In one move, replace it with either (sx + sy, sy) or (sx, sx + sy).

Return whether some sequence of moves reaches (tx, ty).

Function

reachingPoints(sx: int, sy: int, tx: int, ty: int) → boolean

Examples

Example 1

sx = 1sy = 1tx = 3ty = 5return = true

(1,1) can move to (1,2), then (3,2), then (3,5).

Example 2

sx = 1sy = 1tx = 2ty = 2return = false

Neither legal move can produce (2,2).

Constraints

  • 1 <= sx, sy, tx, ty <= 10^9

More Virtu Financial Online Assessment questions

  • Count Substrings With Identical CharactersOA · Seen Oct 2026
  • HexSpeakOA · Seen Oct 2026
  • Maximum Apples That Fit in a BoxOA · Seen Oct 2026
  • Minimum Steps to a Fibonacci NumberOA · Seen Oct 2026
  • Stabilize Student Test ScoresOA · Seen Oct 2026
  • Maximum Barbell WeightOA · Seen Sep 2026
  • Maximum Sum of HeightsOA · Seen Sep 2026
  • Optimal Account BalancingOA · Seen Sep 2026
  • Banking Transaction ExceptionsOA · Seen Aug 2026
  • FIX Message ReconciliationOA · Seen Aug 2026

Similar questions at other companies

  • Delete and Freeze GameRubrik · OARubrik interview questions
  • Lock CodeVisa · OAVisa interview questions
  • Bootstrap Decision Tree ClassifierPinterest · OAPinterest interview questions
  • Maximum Signal Walk in a Server TreeTower Research Capital · OA
  • Ordered-Pair Checksum SumBirla Pivot · OA
  • Count Pairs with K Divisible Values in the IntervalChubb · OAChubb interview questions
  • Predict Taxi Driver ClassesBoston Consulting Group · OABoston Consulting Group interview questions
  • Balance a Chemical EquationMicrosoft · OAMicrosoft interview questions
  • Arithmetic Triplets After QueriesCapital One · OACapital One interview questions
  • Fastest Average Speed over a Rolling KilometerOptiver · OAOptiver interview questions

Virtu Financial interview experiences

  • Virtu Financial New Grad Quant Trader HR Screen: 1 Experience
  • Virtu Financial Quant Trading Intern Onsite: 1 Experience
All Virtu Financial interview questionsSee Virtu Financial hiring insights
Saved
class Solution {
    public boolean reachingPoints(int sx, int sy, int tx, int ty) {
        // Write your code here.
    }
}
Checking account…