Anonymous user
Balanced brackets: Difference between revisions
m
→{{header|Elena}}
imported>Arakov |
imported>Arakov |
||
Line 2,858:
=={{header|Elena}}==
ELENA 6.x :
<syntaxhighlight lang="elena">
// Determine whether the generated string is balanced; that is, whether it consists entirely of pairs of opening/closing brackets (in that order),
// none of which mis-nest.
import system'routines;
import extensions;
import extensions'text;
randomBrackets(len)
Line 2,897 ⟶ 2,899:
public program()
{
for(int len := 0
{
var str := randomBrackets(len);
|