Demo entry 6631988

python

   

Submitted by anonymous on Jul 20, 2017 at 16:18
Language: Python. Code size: 146 Bytes.

class Stack(object):
	def __init__(self, limit=10):
		self.stk = []
		self.limit = limit	

	def isEmpty(self):
		return len(self.stk) <= 0

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).