MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / reverse

Function reverse

Java/Stack/reverseasttring.cpp:20–27  ·  view source on GitHub ↗

reverse function

Source from the content-addressed store, hash-verified

18}
19//reverse function
20void reverse(){
21 if(st.size()==1)return;
22 int temp=st.top();
23 st.pop();
24 reverse();
25 pushin(temp);
26 return;
27}
28
29// Driver Code
30int main()

Callers 1

mainFunction · 0.70

Calls 4

pushinFunction · 0.85
topMethod · 0.80
sizeMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected