MCPcopy Index your code
hub / github.com/Tiwarishashwat/InterviewCodes / push

Method push

DesignAStackWithIncrements.java:15–22  ·  view source on GitHub ↗
(int x)

Source from the content-addressed store, hash-verified

13 }
14
15 public void push(int x) {
16 if(isFull()){
17 return;
18 }
19 index++;
20 size++;
21 stack[index] = x;
22 }
23
24 public int pop() {
25 if(isEmpty()){

Callers 15

inorderTraversalMethod · 0.80
preorderTraversalMethod · 0.80
minAddToMakeValidMethod · 0.80
canBeValidMethod · 0.80
isValidMethod · 0.80
findMaxMethod · 0.80
maxWidthRampMethod · 0.80
minLengthMethod · 0.80
countOfAtomsMethod · 0.80
parseBoolExprMethod · 0.80
dfsMethod · 0.80
minSwapsMethod · 0.80

Calls 1

isFullMethod · 0.95

Tested by

no test coverage detected