One-pass Algorithm for γ