Skip to content

[FullStack] Problem 1 - 6 Riki Rifaldi - rkrfld@gmail.com - #300

Open
rkrfld wants to merge 6 commits into
99techteam:mainfrom
rkrfld:main
Open

[FullStack] Problem 1 - 6 Riki Rifaldi - rkrfld@gmail.com#300
rkrfld wants to merge 6 commits into
99techteam:mainfrom
rkrfld:main

Conversation

@rkrfld

@rkrfld rkrfld commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • Problem 1/4: three sum_to_n implementations (loop, Gauss formula, recursion) in JS and TS, with complexity notes
  • Problem 2: currency swap form (Vite + React + TS), live prices, searchable token select, validation, mocked submit
  • Problem 3: messy React code — 11 issues identified and fixed in a refactored version
  • Problem 5: Express + TypeScript CRUD API with file-based persistence (lowdb), filters, README
  • Problem 6: architecture spec for a live top-10 scoreboard with anti-cheat design (spec + diagram only)

Test plan

  • problem1/4: verified sum_to_n variants agree across n = 0, 1, 5, 100
  • problem2: manually tested full swap flow in browser
  • problem5: typecheck clean, live curl-tested full CRUD + filters + validation errors + persistence
  • reviewer read-through of problem3/6 (analysis/spec only)

rkrfld added 6 commits August 18, 2026 21:40
Add sum_to_n.js with three implementations: iterative loop (O(n)), Gauss formula (O(1)), and recursion (O(n) time/space). All verified to agree on n = 0, 1, 5, 100.
Fetches live prices from interview.switcheo.com, dedupes by latest date, renders searchable token dropdowns with Switcheo icons (fallback on 404), computes live swap output, validates same-token/invalid-amount, mocks submit with a loading delay.
List 11 issues (undefined var, inverted filter, missing blockchain type, bad sort comparator, wasted useMemo deps, dead formattedBalances, index-as-key, dropped children) with a refactored WalletPage.tsx fixing each.
Same three approaches as problem1 (loop, Gauss formula, recursion), typed, each annotated with time/space complexity. Verified against n = 0, 1, 5, 100.
Resource CRUD (create/list/get/update/delete) with category/search/price filters, validated input, lowdb JSON-file persistence (no native deps). README covers config and run steps. Verified live: full CRUD flow, filters, 400/404 paths, disk persistence.
Data model (append-only score_events ledger + action_grants for one-time redeemable awards), API, execution-flow diagram, real-time delivery via pub/sub + selective top-10 cache invalidation, and anti-abuse design where the client never states its own point value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant