The authors present efficient quantum subroutines for finding marked elements and summing numbers, optimizing query complexity and gate overhead.