★ Final Challenge

Build a Pipeline

50 pts

Combine everything: implement pipeline(nums) that feeds the input through a three-stage pipeline — generate, square, sum — connected by queues, with each stage running in its own thread.

Log in to submit a solution and earn points.