Instant Live Detection
Page observers catch the Accepted verdict the instant it lands, with intelligent live synchronization.
SOLVEBASE. Install freeSolveBase quietly turns every accepted Codeforces, LeetCode, CSES, CodeChef, or GeeksforGeeks submission into a clean, searchable GitHub archive. You focus on the verdict. Your portfolio keeps growing.
Today
Competitive programming solutions, organized automatically by SolveBase.
Choose a platform to see exactly how SolveBase names folders, formats files, and updates your README.
#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();
}README.md
| Difficulty | Solved | | --- | --- | | [800](./codeforces/800) | 42 | | [1200](./codeforces/1200) | 28 | | [1600](./codeforces/1600) | 15 |
Authorize once and pick the repository where your solutions belong.
SolveBase watches only for an accepted submission on the page you are using.
The source, folder and README stats arrive in GitHub automatically.
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.
Install SolveBase once. Keep your attention on the problem and let your GitHub profile tell the story.
SolveBase detects newly accepted coding submissions and saves the source code to a GitHub repository using consistent platform-specific folders.
SolveBase supports Codeforces, standard LeetCode problem pages, CSES, CodeChef, and GeeksforGeeks. LeetCode contest and Explore editors are not supported in version 1.0.0.
Yes. SolveBase watches Codeforces verdicts, waits for the final accepted result, and commits the solution to a GitHub rating folder.
Yes. On standard LeetCode problem pages, SolveBase detects an accepted submission and saves the solution under an organized LeetCode topic folder in GitHub.
Yes. SolveBase supports accepted submissions from CodeChef, CSES, and GeeksforGeeks practice pages alongside Codeforces and standard LeetCode problems.
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.
Install SolveBase from the Chrome Web Store, connect GitHub, choose a repository, and keep solving. When a supported judge reports an accepted verdict, SolveBase commits the solution directly to GitHub.
SolveBase is free to install and works in Chromium-based browsers such as Chrome, Edge, Brave, and Arc. The extension uses Manifest V3 and does not require a SolveBase account.
Yes. It creates a searchable GitHub archive of accepted practice problems, making it easier to review patterns, show consistent practice, and keep a public coding portfolio up to date.