Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /