Skip to content

LeetAICoder Support Doc

shenjiaqi edited this page Apr 1, 2026 · 1 revision

LeetAICoder Support Doc

Getting Started

LeetAICoder is an iOS app (iPhone and iPad) that helps you practice coding problems by guiding an on-device AI with natural language. The model runs locally; generated solutions can be run and tested on your device as part of the learning flow. The app also includes leaderboards (with optional Game Center) so you can compare scores.

Internet access is not required for the core AI, coding, and local scoring experience. Optional Game Center features need you to be signed in to Apple’s Game Center and may use Apple’s network services.

To get started with LeetAICoder

  1. Download and install the app from the App Store.
  2. Open LeetAICoder. Explore Settings if you want to adjust model-related options (for example, sampling or think-mode behavior, when available).
  3. Open the First Program tab to practice guiding the AI to implement a simple task (for example, adding two numbers) and running tests locally.
  4. Use Challenges to work through curated problems in a similar way and improve your scores.
  5. Open Leaderboard to see rankings. If you want global leaderboards, sign in to Game Center when prompted or from system Settings.

Main areas in the app

  • First Program (screen title: First AI Program) — A guided introduction: you describe what you want in natural language, the AI proposes code, and the app runs checks locally (tests, timing, and related metrics contribute to scoring).
  • Challenges — Coding problems you complete using the same style of AI-assisted workflow.
  • Leaderboard — View total and per-problem standings. With Game Center enabled, scores can sync through Apple.
  • Settings — Choose or tune the on-device model experience (as provided by the app version you installed).

How scoring works (overview)

Your score combines factors such as how many tests pass, execution time, memory use, prompt efficiency (shorter total prompt plus assistant text tends to score better under the app’s formula), and a term related to the model size you use. Exact formulas and constants are implemented in the app; use this only as a conceptual overview.

Troubleshooting

If something does not work as expected, try the following:

  • Update the app to the latest version from the App Store.
  • Restart the app if the model or UI seems stuck after a long session.
  • Free storage and memory — Large on-device models need available space and RAM; close other apps if loading or inference is slow or fails.
  • Game Center — If leaderboards or sign-in fail, confirm you are signed in to Game Center in Settings → Game Center, and that network access is allowed for Apple services if you use online leaderboards.
  • First AI use / model load — The first time the model loads, it can take a while; keep the app in the foreground until loading completes.
  • Tests failing — Make sure your solution matches the problem’s required function signature and I/O rules shown in the app; iterate with clearer prompts if the AI’s first answer is wrong.

Feedback and Suggestions

We value your feedback and suggestions for improving LeetAICoder. If you have ideas, bug reports, or questions, please email aidoge.ys@gmail.com.

Thank you for using LeetAICoder!

Clone this wiki locally