
import numpy as np

def subband_filtering(x, h):
    """ ASSIGNMENT 3

        Write a routine to implement the efficient version of the subband filter.

        Arguments:
        x:  The length 512 buffer, in time-reversed order e.g. [x[n],x[n-1],...,x[n-511]].
        h:  The prototype filter of the filter bank.

        Returns:
        s: The 32 new output samples of the filter bank.
    """

    # Your code goes here


