Accepted Solutions Only
Detects new submissions on supported pages and saves them after a final accepted verdict.
SOLVEBASE. Install freeSolveBase is a free Chrome extension that automatically saves newly accepted Codeforces, LeetCode, CSES, CodeChef, and GeeksforGeeks solutions to a public GitHub repository. Solutions are organized by platform, and your README updates automatically.
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 |
Choose a public repository and your platforms, then authorize SolveBase with GitHub.
SolveBase watches only for an accepted submission on the page you are using.
The source, folder and README stats arrive in GitHub automatically.
Read how SolveBase saves solutions to GitHub for supported workflows, source-code handling, and the references behind these details.
Detects new submissions on supported pages and saves them after a final accepted verdict.
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 is a free Chrome extension that detects newly accepted coding submissions and saves the source code to a public GitHub repository using platform-specific folders. It also updates the repository README with solution counts.
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 connect a compatible existing public solutions repository, index recognized solution files, and preserve content outside its managed README summary block. Private repositories and unrelated non-empty repositories are not supported.
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, choose a public repository name and your coding platforms, then connect GitHub. Stay signed in to a supported coding platform and submit a solution with the extension active. SolveBase saves newly accepted solutions 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.
Find platform-specific answers, GitHub permissions, and troubleshooting in the full SolveBase FAQ.