PDA

View Full Version : Idea: Formula Verifier



vasanth
10-08-2002, 12:03 AM
Well why has the contest here going slugish.. well here is a contest sugestion...


Ok write an efficient program which validates formulaes.... that is brackets



x=x2[{s2(x+y)(x+y)}(x)] is a valid formulae

x=2z)+3x( is invalid and so on...

the program should be able to handle even very big formulaes.....
The contest can also be made like this.. write a function validat which takes an argumen as char array and return an integer



x=validate(array);



so it should return 1 if valid 0 if invalid...

So any one hearing....

face_master
10-08-2002, 12:53 AM
do you mean that the function should only see if the brackets are correct?

vasanth
10-08-2002, 06:43 AM
Yes for it to be simple(so that many contest..) if you want the equation can also be validated....