samedi 10 novembre 2018

Check if char comes before another char

How can you check whether a specific char comes before another char using a for-loop?

E.g. the function should return false if ')' comes before '('. So the following strings would be false: ')abc', 'a)abc(', ')abc'

Aucun commentaire:

Enregistrer un commentaire