Skip to content

Commit c47c084

Browse files
author
Luciano Medeiros Marcelino
committed
Adjust output type to array in the documentation
1 parent e7f1166 commit c47c084

File tree

1 file changed

+1
-1
lines changed
  • src/_Problems_/next-greater-element

1 file changed

+1
-1
lines changed

src/_Problems_/next-greater-element/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
To keep it simple, the next greater element for the last or maximum value in the array is -1.
55
66
Input: [4, 6, 3, 2, 8, 1]
7-
Output: {6, 8, 8, 8, -1, -1}
7+
Output: [6, 8, 8, 8, -1, -1]
88
*/
99

1010
const Stack = require('../../_DataStructures_/Stack');

0 commit comments

Comments
 (0)