hw algorithms

hw

 

for zext