Instant Live Detection
Page observers catch the Accepted verdict the instant it lands, with intelligent live synchronization.
Keep solving without friction. SolveBase detects your accepted submissions on Codeforces, LeetCode, CSES, CodeChef, and GeeksforGeeks, pulls your solution source, and pushes it to clean directory trees with live repository statistics.
Select a judge to preview directory structure, code styling, and README summary.
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n; cin >> n;
vector<int> a(n);
for (int &x : a) cin >> x;
int mn = *min_element(a.begin(), a.end());
int idx = min_element(a.begin(), a.end()) - a.begin();
if (!is_sorted(a.begin() + idx, a.end())) {
cout << -1 << "\n";
return;
}
cout << idx << "\n";
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t; cin >> t;
while (t--) solve();
}| Difficulty | Solved | | --- | --- | | [800](./codeforces/800) | 42 | | [1200](./codeforces/1200) | 28 | | [1600](./codeforces/1600) | 15 |
Every platform is organized into its dedicated top-level directory with consistent naming conventions.
CP-Solutions/ ├── codeforces/ │ ├── 800/ │ │ └── 4A - Watermelon.cpp │ ├── 1200/ │ │ └── 231A - Team.py │ └── Unrated/ │ └── 1A - Theatre Square.cpp ├── leetcode/ │ ├── binary-search/ │ │ └── 704 - Binary Search.cpp │ └── dynamic-programming/ │ └── 70 - Climbing Stairs.cpp ├── cses/ │ ├── dynamic-programming/ │ │ └── 1633 - Dice Combinations.cpp │ └── graph-algorithms/ │ └── 1192 - Counting Rooms.cpp ├── codechef/ │ ├── 900/ │ │ └── RESELL - Reselling Items.cpp │ ├── 1600/ │ │ └── MNERROR - Min Error.cpp │ └── 1800/ │ └── GOOD1 - Good Permutation.cpp ├── geeksforgeeks/ │ ├── Easy/ │ │ └── Missing in Array.cpp │ └── Medium/ │ └── Kadane's Algorithm.cpp └── README.md ← Live total solved & per-platform statistical tables
Page observers catch the Accepted verdict the instant it lands, with intelligent live synchronization.
Codeforces by difficulty rating, LeetCode by algorithm topic, CSES by problem section, CodeChef and GFG by rating and difficulty.
Your repository summary tables and total counts update automatically after every single commit cycle.
Vercel handles only short-lived encrypted GitHub authorization data. Source code and repository syncs go directly from your extension to GitHub.
Only new accepted solutions trigger commits in real time, keeping your repository commit log clean and meaningful.
Runs quietly in the background without popups, bells, or contest interruptions. Check the extension only when you want to.
No tokens to generate, no copy-paste. One-click GitHub authorization.
GitHub asks you to authorize SolveBase to manage a solutions repository. Approve it — no personal access token needed.
Clear answers about installation, supported coding platforms, GitHub access, and how SolveBase handles your source code.
SolveBase detects newly accepted coding submissions and saves the source code to a GitHub repository using consistent platform-specific folders.
SolveBase supports Codeforces, LeetCode, CSES, CodeChef, and GeeksforGeeks.
No. The extension sends repository updates directly to GitHub. The SolveBase OAuth service handles only the short-lived GitHub authorization exchange.
Yes. SolveBase can inspect compatible solution folders in an existing repository and preserve content outside its managed README summary block.
No. SolveBase focuses on live accepted submissions. Existing compatible files are indexed when you connect a repository, but old platform submissions are not scraped in bulk.