Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
0481762e
Unverified
Commit
0481762e
authored
Dec 12, 2017
by
Guolin Ke
Committed by
GitHub
Dec 12, 2017
Browse files
fix a silly bug in maxK
parent
24177dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/LightGBM/utils/array_args.h
include/LightGBM/utils/array_args.h
+1
-1
No files found.
include/LightGBM/utils/array_args.h
View file @
0481762e
...
@@ -136,7 +136,7 @@ public:
...
@@ -136,7 +136,7 @@ public:
if
((
k
>
l
&&
k
<
r
)
||
l
==
0
||
r
==
end
-
1
)
{
if
((
k
>
l
&&
k
<
r
)
||
l
==
0
||
r
==
end
-
1
)
{
return
k
;
return
k
;
}
else
if
(
k
<=
l
)
{
}
else
if
(
k
<=
l
)
{
return
ArgMaxAtK
(
arr
,
start
,
l
,
k
);
return
ArgMaxAtK
(
arr
,
start
,
l
+
1
,
k
);
}
else
{
}
else
{
return
ArgMaxAtK
(
arr
,
r
,
end
,
k
);
return
ArgMaxAtK
(
arr
,
r
,
end
,
k
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment