Code with Cisco OA Help : Interview Help
Відкрити в Telegram
Codeforces Codechef Leetcode AtCoder GFG CodeStudio All Contests Solutions available.
Показати більше916
Підписники
Немає даних24 години
-47 днів
+5530 день
Архів дописів
https://leetcode.com/CookiesWasTaken/
Want to purchase this Leetcode Guardian Account? 😍
https://leetcode.com/Virus_ARzk/
https://leetcode.com/rohitashwa01/
Anyone wants these IDs?
Very cheap price, dm me ☠️
if anyone wants to buy this Codeforces id, dm me @cp_wala
https://codeforces.com/profile/Loki_Coder
if anyone wants to buy this Codeforces id, dm me @cp_wala
https://codeforces.com/profile/Loki_Coder
Bhai koi AtCoder de raha hai to please Q2 ka testcase explain kardo 🥺
@cp_wala
void code()
{
int n;
cin >> n;
vector arr(n);
for (int &i : arr)
cin >> i;
int minIndex = 0;
for (int i = 0; i < n; i++)
if (arr[i] < arr[minIndex])
minIndex = i;
int res = minIndex;
for (int i = minIndex; i < n - 1; i++)
if (arr[i] > arr[i + 1])
res = -1;
cout << res << endl;
}
// E
// Enjoy ❤️
Вже доступно! Дослідження Telegram за 2025 — головні інсайти року 
