Create Quick-Sort learning Content

Forums: 

Hi,

iam a CS student, and im trying to develope a content that makes it possible to learn the Quick-Sort Algortihm by just doing every step of it.
At the moment i have a question about the sematics.json.
What i need is to pass a list of ints to the javascript code. i tried the type "text", and than seperatet the string by "," wich dosent work.
the type list seems to be for complex types...

thanks for your help!

otacke's picture

Hi Eduard!

I am not sure what exactly you're trying to do, so it would help if you shared a little more insight. For instance, I don't see any reason why you would not be able to retrieve a string from a simple text field in semantics (assuming some starting order for elements that need to be sorted?) and than split the string by some delimiter, e.g. a comma.

Cheers,
Oliver