We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7f1166 commit c47c084Copy full SHA for c47c084
src/_Problems_/next-greater-element/index.js
@@ -4,7 +4,7 @@
4
To keep it simple, the next greater element for the last or maximum value in the array is -1.
5
6
Input: [4, 6, 3, 2, 8, 1]
7
- Output: {6, 8, 8, 8, -1, -1}
+ Output: [6, 8, 8, 8, -1, -1]
8
*/
9
10
const Stack = require('../../_DataStructures_/Stack');
0 commit comments