DeepSeek Prompt for DeepSeek Optimized
A DeepSeek-optimized prompt for implementing a data validation pipeline algorithm in JavaScript for a fitness tracker.
More prompts for DeepSeek Optimized.
Uses DeepSeek to analyze system architectures and identify performance bottlenecks, scalability issues, and optimization opportunities.
A DeepSeek-optimized refactoring prompt to improve monolith to modular in a Java learning management system codebase.
A DeepSeek-optimized debugging prompt for identifying and fixing data corruption issues in a TypeScript job board.
A DeepSeek-optimized refactoring prompt to improve single tenant to multi-tenant in a Java survey builder codebase.
A DeepSeek-optimized debugging prompt for identifying and fixing database query optimization issues in a TypeScript learning management system.
A DeepSeek-optimized refactoring prompt to improve single tenant to multi-tenant in a Python survey builder codebase.
Implement a data validation pipeline algorithm in JavaScript for use in a fitness tracker. **Leverage DeepSeek strengths:** This requires deep algorithmic reasoning, optimization analysis, and production-quality code generation, which are your core strengths. **Tech stack context:** Remix + Prisma ## Implementation Requirements ### Problem Definition - Clearly define the problem this algorithm solves within a fitness tracker - Specify the input format, constraints, and expected output - Define performance requirements (time complexity target, space constraints) - Describe the real-world use case and why this algorithm is the right choice ### Algorithm Design - Explain the algorithmic approach step by step before writing code - Discuss why this approach was chosen over alternatives - Analyze time complexity: best, average, and worst case with Big-O notation - Analyze space complexity and memory usage patterns - Identify edge cases and boundary conditions ### Core Implementation Provide the complete, production-ready implementation in JavaScript: - Clean, well-structured code following JavaScript idioms and conventions - Comprehensive type annotations and interfaces - Inline comments explaining non-obvious logic - Error handling for invalid inputs and edge cases - Configurable parameters with sensible defaults ### Optimizations - Identify and implement at least 2 performance optimizations - Explain the trade-offs of each optimization (readability vs. speed, memory vs. time) - Include benchmarking code to measure performance - Suggest when the optimization is worthwhile vs. premature ### Testing Suite Provide a complete test suite including: - Unit tests for the core algorithm logic - Edge case tests (empty input, single element, maximum size, duplicates) - Performance tests with large inputs - Property-based test suggestions - Test data generators for stress testing ### Usage Examples - 3 real-world usage examples within a fitness tracker context - Integration pattern showing how to connect this to a larger system - Configuration guide for tuning performance parameters ### Documentation - Clear function and parameter documentation - Complexity analysis summary table - Decision guide: when to use this algorithm vs. alternatives - Common pitfalls and how to avoid them Write code that is not just correct but exemplary. This should serve as a reference implementation that developers can learn from.