Skip to content

ozorob2/C-Balanced-Expression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

C-Balanced-Expression

Checks if a expression is balanced Ex: (({{}})) is balanced ({)} is not balanced

  • Implemented Stack using Dynamic Array
  • Pushed relevant characters onto stack
  • Popped Characters off stack when necessary
  • Returns whether the expression is balanced
  • Also, returns where the expression is no longer balanced if it is not balanced along with expected character

Note: to follow this tutorial you will need gcc to be downloaded on your machine follow this tutorial to get it http://gcc.gnu.org/install/download.html

To run this code you will type gcc main.c then ./a.out

About

Checks if a expression is balanced Ex: (({{}})) is balanced ({)} is not balanced

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages