A few years ago I solved 200 LeetCode problems and still froze on Mediums I hadn't seen. The breakthrough wasn't another hundred problems. It was a different loop. A problem asks for the longest substring with at most K distinct characters. You've solved sliding window before. Maximum sum subarray of size K, done. Longest substring without repeating characters, done. This third one stalls you. Twe
Most trading fee calculators show you two numbers: the dollar amount and the percentage of notional. Both are correct. Neither is useful. Here's the problem. Say you're trading Bitcoin perpetuals on Bybit. Taker fee is 0.055% each side. You buy $10,000 notional. Entry fee: $5.50 Exit fee: $5.50 Round trip: $11.00 Does that matter? Impossible to say without knowing one more number: how much are you