mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Format code with prettier (#3375)
This commit is contained in:
@@ -33,8 +33,7 @@ public class ReverseStackUsingRecursion {
|
||||
|
||||
// Function Used to reverse Stack Using Recursion
|
||||
private static void reverseUsingRecursion(Stack<Integer> stack) {
|
||||
if (stack.isEmpty()) // If stack is empty then return
|
||||
{
|
||||
if (stack.isEmpty()) { // If stack is empty then return
|
||||
return;
|
||||
}
|
||||
/* All items are stored in call stack until we reach the end*/
|
||||
|
||||
Reference in New Issue
Block a user