Skip to content

[FE]: Code challenge solution - Lucasta To#251

Open
LucastaTo wants to merge 1 commit into
99techteam:mainfrom
LucastaTo:main
Open

[FE]: Code challenge solution - Lucasta To#251
LucastaTo wants to merge 1 commit into
99techteam:mainfrom
LucastaTo:main

Conversation

@LucastaTo
Copy link
Copy Markdown

Overview

This PR completes all three tasks of the coding challenge, covering algorithm implementation, frontend development, and React performance optimization.


Problem 1: Summation Function

  • Implemented sum_to_n(n) using three different approaches:
    • Iterative (loop)
    • Recursive
    • Mathematical formula (O(1))
  • Ensured correctness and readability across implementations

Problem 2: Currency Swap UI

  • Built an interactive currency swap interface
  • Features:
    • Token selection with icons
    • Real-time exchange rate calculation using external API
    • Input validation and error handling
    • Responsive and user-friendly design
  • Focused on clean UI/UX and maintainable code structure
image

Problem 3: React Code Analysis & Refactor

  • Identified performance issues and anti-patterns:
    • Unnecessary re-renders
    • Inefficient state and effect usage
    • Suboptimal component structure
  • Refactored code to:
    • Improve performance
    • Follow React best practices
    • Enhance readability and maintainability

Notes

  • Code is structured for clarity and scalability
  • Additional comments are included where necessary to explain decisions

@LucastaTo LucastaTo changed the title feat: deliver full-stack challenge with optimized implementations and improved UX [FE]: Code challenge solution - Luu The Hung May 3, 2026
@LucastaTo LucastaTo changed the title [FE]: Code challenge solution - Luu The Hung [FE]: Code challenge solution - Lucasta To May 3, 2026
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.

2 participants