Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - algorithm parentheses and brackets
Search - algorithm parentheses and brackets - List
DL : 0
任意输入一个由若干个圆括号、方括号和花括号组成字符串,设计一个算法判断该串中的括号是否配对。 -Enter an arbitrary number of parentheses, square brackets and curly braces composed of strings, to design an algorithm to determine the string in brackets whether the pair.
Date : 2025-12-29 Size : 1kb User : 李娜

DL : 0
假设一个算术表达式中可以包括三种括号:圆括号“(”和“)”,方括号“[”和“]”和花括号“{”和“}”且这三种括号可以按任意的次序嵌套使用(如:…[…{…}…[…]…]…[…]…(…)…)。编写判别给定表达式中所含括号是否正确配对出现的算法(已知表达式已存入数据元素为字符的顺序表中)-Suppose an arithmetic expression can include three types of brackets: parentheses " (" and " )" , in square brackets " [" and " ]" and braces " {" and " }" and this can be any of three brackets order of nested (such as: ... [... {...} ... [...] ...] ... [...] ... (...) ...). The preparation of discrimination contained in the given expression appears in parentheses matching algorithm is correct (known expression for the character data elements have been deposited in the order form)
Date : 2025-12-29 Size : 1kb User : bear
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.