Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy3 /
20130902eParentheses Consider an expression that contains numbers, parentheses, and operators. Now we are only interested in the parentheses. Three kind of parentheses can be present: " Examples: test("((5+3)*2+1)") == True test("{[(3+1)+2]+}") == True test("(3+{1-1)}") == False test("[1+1]+(2*2)-{3/3}") == True test("(({[(((1)-2)+3)-3]/3}-3)") == False Tip: what data structure should we use? |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |