isEmpty to check our array is empty or not
()
| 47 | |
| 48 | // isEmpty to check our array is empty or not |
| 49 | func (ll *Stack) IsEmpty() bool { |
| 50 | return ll.length == 0 |
| 51 | } |
| 52 | |
| 53 | // len use to return length of our stack |
| 54 | func (ll *Stack) Length() int { |
no outgoing calls