This wsq was a little harder for me, actually I didn´t implemented the last part of “an unknown array”. Anyway, here is my code in GitHub.
https://github.com/OctavioIRG/TC1017/blob/master/WSQ-s/liszt.cpp
WSQ10 by Octavio Rojas is licensed under a Creative Commons Attribution 4.0 International License.