Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
peak index in a mountain array
momo2345
Jul 11th, 2020
98
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
class
Solution
{
public
:
int
peakIndexInMountainArray
(
vector
<
int
>
&
A
)
{
int
index
=
max_element
(
A.
begin
(
)
,A.
end
(
)
)
-
A.
begin
(
)
;
return
index
;
}
}
;
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
🔥 EASY PROFIT GUIDE ✅ Working 🔥 ✅🚨
JavaScript | 13 min ago | 0.18 KB
💵 Crypto Swap Glitch ✅ Easy money 🔥 🚨🔥
JavaScript | 30 min ago | 0.18 KB
💎 Instant Money Method 💎 🚨💎
JavaScript | 47 min ago | 0.18 KB
🔥 EASY PROFIT GUIDE ✅ Working 🔥 ✅🚨
JavaScript | 1 hour ago | 0.18 KB
💎 Free Crypto Method 💎 🔥🔥
JavaScript | 1 hour ago | 0.18 KB
spiral_staircase
Lua | 1 hour ago | 95.91 KB
Longest Repeating Character Replacement - Lee...
Java | 2 hours ago | 2.78 KB
ecu_firmware
C++ | 2 hours ago | 124.77 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!