ch
Feedback
Code with Cisco OA Help : Interview Help

Code with Cisco OA Help : Interview Help

前往频道在 Telegram

Codeforces Codechef Leetcode AtCoder GFG CodeStudio All Contests Solutions available.

显示更多
916
订阅者
无数据24 小时
-47
+5530
帖子存档
A and B done ✅

https://leetcode.com/CookiesWasTaken/ Want to purchase this Leetcode Guardian Account? 😍

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

Get ready for CF

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 ❤️