3800 - 3899
Solutions categorised by Problem IDs
3841 - Palindromic Path Queries in a TreeAnswer tree-path palindrome rearrangement queries under label updates using parity masks, heavy-light decomposition, and a Fenwick tree.3863 - Minimum Operations to Sort a StringFind the fewest proper-substring sorts needed to order a string by examining its boundary characters and extreme values.3870 - Count Commas in RangeCount thousands-separator commas from one through n by identifying the first number that needs a separator.3882 - Minimum XOR Path in a GridFind the minimum path XOR in a grid by tracking all reachable XOR values at each cell.