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…