Fee Calculation with Boolean Flag and Numeric Parameter
Asked at Virtu Financial · ML Fundamentals & Algorithms · Difficulty: Medium · Last asked Jul 15, 2026
Suppose there are only two parameters: one can be a T/F flag and the other can be any number X. Under this condition, how would you design a mechanism to calculate three different fee schedules? The fee per share increases with longevity; let's say 0.2, 0.3, 0.4. The cap is 1.5.
Loading the problem…
More Virtu Financial interview questions
- Expected Handshakes in 10x10 Grid Dice Rolls
- Strategies for Standing Out in Competitive Environments
- Connect Four Static Board Win Check
- Minimum Segment Merges to Make Two Arrays Identical by Summing Subarrays
- Minimum Operations to Avoid m Consecutive Zeros with k-Length Set-to-One
- Minimum Bit Flips to Make All Numbers Equal