messages
listlengths
2
2
[ { "role": "user", "content": "Refactor C++ logic for sliding window maximum to improve readability and performance. Difficulty: hard. Context: for a backend service. Avoid global mutable state." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) ...
[ { "role": "user", "content": "Implement webhook signature check in JavaScript with edge-case handling. Difficulty: medium. Context: for a backend service. Add minimal comments only." }, { "role": "assistant", "content": "function solve(input) {\n // webhook signature check in JavaScript\n if (...
[ { "role": "user", "content": "Implement JWT verification in SQL with edge-case handling. Difficulty: medium. Context: for an interview prep tool. Handle edge cases explicitly." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT...
[ { "role": "user", "content": "Write unit tests in Rust for two-sum. Difficulty: medium. Context: for an internal library. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // two-sum in Rust\n input.to_string()\n}" } ]
[ { "role": "user", "content": "Write unit tests in Bash for CSV parsing. Difficulty: medium. Context: for an interview prep tool. Keep it production-ready." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Write a Python function for deduplicate preserving order. Difficulty: hard. Context: for a CLI utility. Include input validation." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"deduplicate preserving order in Python.\"\"\"\n if data is None:\n...
[ { "role": "user", "content": "Implement CSV parsing in C++ with edge-case handling. Difficulty: medium. Context: for a backend service. Keep it production-ready." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // CSV parsing in C++\n ...
[ { "role": "user", "content": "Implement pagination helper in Python with edge-case handling. Difficulty: hard. Context: for an interview prep tool. Avoid global mutable state." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"pagination helper in Python.\"\"\"\n if data is No...
[ { "role": "user", "content": "Fix this JavaScript code for CSV parsing: boundary bug and null handling. Difficulty: easy. Context: for an internal library. Add minimal comments only." }, { "role": "assistant", "content": "function solve(input) {\n // CSV parsing in JavaScript\n if (input == nu...
[ { "role": "user", "content": "Implement email validation in Rust with edge-case handling. Difficulty: easy. Context: for a coding challenge platform. Use idiomatic style." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // email validation in Rust\n input.to_s...
[ { "role": "user", "content": "Fix this Go code for rate limiter: boundary bug and null handling. Difficulty: hard. Context: for a CLI utility. Handle edge cases explicitly." }, { "role": "assistant", "content": "func Solve(input string) string {\n // rate limiter in Go\n return input\n}" ...
[ { "role": "user", "content": "Write unit tests in Bash for JSON schema validation. Difficulty: medium. Context: for a backend service. Return deterministic output." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Refactor SQL logic for rate limiter to improve readability and performance. Difficulty: hard. Context: for an internal library. Keep it production-ready." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DES...
[ { "role": "user", "content": "Write unit tests in Go for deduplicate preserving order. Difficulty: medium. Context: for a backend service. Add minimal comments only." }, { "role": "assistant", "content": "func Solve(input string) string {\n // deduplicate preserving order in Go\n return in...
[ { "role": "user", "content": "Write a C++ function for email validation. Difficulty: hard. Context: for an interview prep tool. Keep it production-ready." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // email validation in C++\n r...
[ { "role": "user", "content": "Fix this Bash code for RBAC permission check: boundary bug and null handling. Difficulty: easy. Context: for a backend service. Keep time complexity efficient." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$i...
[ { "role": "user", "content": "Write a TypeScript function for sliding window maximum. Difficulty: medium. Context: for an interview prep tool. Include input validation." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // sliding window m...
[ { "role": "user", "content": "Implement webhook signature check in JavaScript with edge-case handling. Difficulty: medium. Context: for a CLI utility. Avoid global mutable state." }, { "role": "assistant", "content": "function solve(input) {\n // webhook signature check in JavaScript\n if (inp...
[ { "role": "user", "content": "Refactor TypeScript logic for two-sum to improve readability and performance. Difficulty: hard. Context: for an interview prep tool. Include input validation." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n ...
[ { "role": "user", "content": "Implement pagination helper in Python with edge-case handling. Difficulty: easy. Context: for a backend service. Keep time complexity efficient." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"pagination helper in Python.\"\"\"\n if data is Non...
[ { "role": "user", "content": "Write unit tests in SQL for JSON schema validation. Difficulty: easy. Context: for an interview prep tool. Keep it production-ready." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Refactor Python logic for LRU cache to improve readability and performance. Difficulty: hard. Context: for a CLI utility. Avoid global mutable state." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"LRU cache in Python.\"\"\"\n if data is None:\...
[ { "role": "user", "content": "Write a SQL function for JWT verification. Difficulty: hard. Context: for a coding challenge platform. Keep it production-ready." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Write a Rust function for JWT verification. Difficulty: hard. Context: for a backend service. Handle edge cases explicitly." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // JWT verification in Rust\n input.to_string()\n}" } ]
[ { "role": "user", "content": "Implement JSON schema validation in Go with edge-case handling. Difficulty: hard. Context: for a backend service. Use idiomatic style." }, { "role": "assistant", "content": "func Solve(input string) string {\n // JSON schema validation in Go\n return input\n}"...
[ { "role": "user", "content": "Refactor Python logic for deduplicate preserving order to improve readability and performance. Difficulty: hard. Context: for a CLI utility. Keep time complexity efficient." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"deduplicate preserving ord...
[ { "role": "user", "content": "Write unit tests in Python for deduplicate preserving order. Difficulty: medium. Context: for a coding challenge platform. Keep time complexity efficient." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"deduplicate preserving order in Python.\"\"\...
[ { "role": "user", "content": "Write a Python function for JWT verification. Difficulty: medium. Context: for an internal library. Keep time complexity efficient." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"JWT verification in Python.\"\"\"\n if data is None:\n re...
[ { "role": "user", "content": "Write unit tests in JavaScript for CSV parsing. Difficulty: medium. Context: for a backend service. Avoid global mutable state." }, { "role": "assistant", "content": "function solve(input) {\n // CSV parsing in JavaScript\n if (input == null) return null;\n retur...
[ { "role": "user", "content": "Refactor JavaScript logic for deduplicate preserving order to improve readability and performance. Difficulty: hard. Context: for a backend service. Avoid global mutable state." }, { "role": "assistant", "content": "function solve(input) {\n // deduplicate preservi...
[ { "role": "user", "content": "Fix this Bash code for pagination helper: boundary bug and null handling. Difficulty: easy. Context: for a CLI utility. Keep time complexity efficient." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" ...
[ { "role": "user", "content": "Implement JWT verification in Rust with edge-case handling. Difficulty: easy. Context: for a coding challenge platform. Handle edge cases explicitly." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // JWT verification in Rust\n i...
[ { "role": "user", "content": "Refactor SQL logic for LRU cache to improve readability and performance. Difficulty: easy. Context: for a backend service. Handle edge cases explicitly." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC...
[ { "role": "user", "content": "Implement JWT verification in Bash with edge-case handling. Difficulty: hard. Context: for an internal library. Keep time complexity efficient." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Refactor Go logic for CSV parsing to improve readability and performance. Difficulty: hard. Context: for a backend service. Use idiomatic style." }, { "role": "assistant", "content": "func Solve(input string) string {\n // CSV parsing in Go\n return input\n}" ...
[ { "role": "user", "content": "Fix this C++ code for binary search: boundary bug and null handling. Difficulty: hard. Context: for a backend service. Avoid global mutable state." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // binary ...
[ { "role": "user", "content": "Refactor Bash logic for sliding window maximum to improve readability and performance. Difficulty: medium. Context: for an internal library. Return deterministic output." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\...
[ { "role": "user", "content": "Implement two-sum in Go with edge-case handling. Difficulty: hard. Context: for an internal library. Add minimal comments only." }, { "role": "assistant", "content": "func Solve(input string) string {\n // two-sum in Go\n return input\n}" } ]
[ { "role": "user", "content": "Write a C++ function for merge intervals. Difficulty: hard. Context: for a coding challenge platform. Avoid global mutable state." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // merge intervals in C++\n...
[ { "role": "user", "content": "Refactor Bash logic for JSON schema validation to improve readability and performance. Difficulty: medium. Context: for an interview prep tool. Keep it production-ready." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\...
[ { "role": "user", "content": "Implement JWT verification in C++ with edge-case handling. Difficulty: hard. Context: for an internal library. Keep it production-ready." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // JWT verification ...
[ { "role": "user", "content": "Fix this Rust code for RBAC permission check: boundary bug and null handling. Difficulty: easy. Context: for an internal library. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // RBAC permission check ...
[ { "role": "user", "content": "Implement JWT verification in TypeScript with edge-case handling. Difficulty: hard. Context: for a CLI utility. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // JWT verification in Ty...
[ { "role": "user", "content": "Fix this Bash code for retry with backoff: boundary bug and null handling. Difficulty: hard. Context: for an interview prep tool. Return deterministic output." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$in...
[ { "role": "user", "content": "Fix this Go code for deduplicate preserving order: boundary bug and null handling. Difficulty: easy. Context: for an internal library. Handle edge cases explicitly." }, { "role": "assistant", "content": "func Solve(input string) string {\n // deduplicate preservi...
[ { "role": "user", "content": "Write a C++ function for JSON schema validation. Difficulty: easy. Context: for an internal library. Keep it production-ready." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // JSON schema validation in C...
[ { "role": "user", "content": "Implement pagination helper in Rust with edge-case handling. Difficulty: easy. Context: for a coding challenge platform. Use idiomatic style." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // pagination helper in Rust\n input.to...
[ { "role": "user", "content": "Refactor TypeScript logic for binary search to improve readability and performance. Difficulty: easy. Context: for an internal library. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n /...
[ { "role": "user", "content": "Implement binary search in C++ with edge-case handling. Difficulty: easy. Context: for a CLI utility. Keep time complexity efficient." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // binary search in C++...
[ { "role": "user", "content": "Refactor SQL logic for JWT verification to improve readability and performance. Difficulty: medium. Context: for a backend service. Keep it production-ready." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at...
[ { "role": "user", "content": "Write a Bash function for two-sum. Difficulty: easy. Context: for a backend service. Keep time complexity efficient." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Fix this Python code for LRU cache: boundary bug and null handling. Difficulty: easy. Context: for a coding challenge platform. Keep time complexity efficient." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"LRU cache in Python.\"\"\"\n if data...
[ { "role": "user", "content": "Write a TypeScript function for retry with backoff. Difficulty: easy. Context: for an interview prep tool. Include input validation." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // retry with backoff in ...
[ { "role": "user", "content": "Write a Go function for LRU cache. Difficulty: medium. Context: for a backend service. Add minimal comments only." }, { "role": "assistant", "content": "func Solve(input string) string {\n // LRU cache in Go\n return input\n}" } ]
[ { "role": "user", "content": "Write unit tests in Rust for deduplicate preserving order. Difficulty: medium. Context: for a backend service. Handle edge cases explicitly." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // deduplicate preserving order in Rust\n ...
[ { "role": "user", "content": "Refactor Rust logic for binary search to improve readability and performance. Difficulty: medium. Context: for a coding challenge platform. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // binary searc...
[ { "role": "user", "content": "Fix this Rust code for top-k frequent elements: boundary bug and null handling. Difficulty: medium. Context: for a coding challenge platform. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // top-k freq...
[ { "role": "user", "content": "Write a Go function for rate limiter. Difficulty: medium. Context: for a backend service. Handle edge cases explicitly." }, { "role": "assistant", "content": "func Solve(input string) string {\n // rate limiter in Go\n return input\n}" } ]
[ { "role": "user", "content": "Refactor C++ logic for retry with backoff to improve readability and performance. Difficulty: hard. Context: for an internal library. Keep time complexity efficient." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input...
[ { "role": "user", "content": "Write unit tests in TypeScript for CSV parsing. Difficulty: hard. Context: for a coding challenge platform. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // CSV parsing in TypeScript\...
[ { "role": "user", "content": "Implement LRU cache in SQL with edge-case handling. Difficulty: easy. Context: for a backend service. Handle edge cases explicitly." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Refactor Go logic for rate limiter to improve readability and performance. Difficulty: medium. Context: for a backend service. Add minimal comments only." }, { "role": "assistant", "content": "func Solve(input string) string {\n // rate limiter in Go\n return ...
[ { "role": "user", "content": "Fix this Go code for sliding window maximum: boundary bug and null handling. Difficulty: easy. Context: for a backend service. Handle edge cases explicitly." }, { "role": "assistant", "content": "func Solve(input string) string {\n // sliding window maximum in Go...
[ { "role": "user", "content": "Write unit tests in Rust for top-k frequent elements. Difficulty: hard. Context: for a CLI utility. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // top-k frequent elements in Rust\n input.to_string...
[ { "role": "user", "content": "Write a Bash function for top-k frequent elements. Difficulty: medium. Context: for a coding challenge platform. Keep time complexity efficient." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Write unit tests in C++ for webhook signature check. Difficulty: hard. Context: for a backend service. Keep time complexity efficient." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // webhook signature c...
[ { "role": "user", "content": "Refactor Bash logic for pagination helper to improve readability and performance. Difficulty: hard. Context: for a CLI utility. Keep it production-ready." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"...
[ { "role": "user", "content": "Implement binary search in Bash with edge-case handling. Difficulty: medium. Context: for a CLI utility. Keep it production-ready." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Refactor TypeScript logic for rate limiter to improve readability and performance. Difficulty: hard. Context: for a coding challenge platform. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null...
[ { "role": "user", "content": "Write unit tests in SQL for sliding window maximum. Difficulty: medium. Context: for an internal library. Return deterministic output." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Implement retry with backoff in SQL with edge-case handling. Difficulty: hard. Context: for an internal library. Handle edge cases explicitly." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50...
[ { "role": "user", "content": "Implement rate limiter in SQL with edge-case handling. Difficulty: hard. Context: for a backend service. Return deterministic output." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Fix this TypeScript code for email validation: boundary bug and null handling. Difficulty: hard. Context: for a backend service. Include input validation." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // ...
[ { "role": "user", "content": "Write a Rust function for email validation. Difficulty: hard. Context: for a coding challenge platform. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // email validation in Rust\n input.to_string()\...
[ { "role": "user", "content": "Refactor SQL logic for CSV parsing to improve readability and performance. Difficulty: easy. Context: for an interview prep tool. Return deterministic output." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_a...
[ { "role": "user", "content": "Implement rate limiter in JavaScript with edge-case handling. Difficulty: hard. Context: for a coding challenge platform. Avoid global mutable state." }, { "role": "assistant", "content": "function solve(input) {\n // rate limiter in JavaScript\n if (input == null...
[ { "role": "user", "content": "Implement webhook signature check in Bash with edge-case handling. Difficulty: hard. Context: for an internal library. Keep time complexity efficient." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" ...
[ { "role": "user", "content": "Write a SQL function for LRU cache. Difficulty: hard. Context: for a coding challenge platform. Return deterministic output." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Refactor Python logic for retry with backoff to improve readability and performance. Difficulty: medium. Context: for a coding challenge platform. Include input validation." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"retry with backoff in Pyth...
[ { "role": "user", "content": "Write unit tests in C++ for CSV parsing. Difficulty: easy. Context: for an internal library. Keep it production-ready." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // CSV parsing in C++\n return inpu...
[ { "role": "user", "content": "Fix this JavaScript code for RBAC permission check: boundary bug and null handling. Difficulty: easy. Context: for a coding challenge platform. Add minimal comments only." }, { "role": "assistant", "content": "function solve(input) {\n // RBAC permission check in J...
[ { "role": "user", "content": "Refactor Bash logic for top-k frequent elements to improve readability and performance. Difficulty: medium. Context: for a CLI utility. Keep it production-ready." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"...
[ { "role": "user", "content": "Implement binary search in Rust with edge-case handling. Difficulty: easy. Context: for a CLI utility. Return deterministic output." }, { "role": "assistant", "content": "pub fn solve(input: &str) -> String {\n // binary search in Rust\n input.to_string()\n}" ...
[ { "role": "user", "content": "Implement top-k frequent elements in Bash with edge-case handling. Difficulty: hard. Context: for an internal library. Keep it production-ready." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\"" } ]
[ { "role": "user", "content": "Implement JSON schema validation in JavaScript with edge-case handling. Difficulty: medium. Context: for an internal library. Include input validation." }, { "role": "assistant", "content": "function solve(input) {\n // JSON schema validation in JavaScript\n if (i...
[ { "role": "user", "content": "Refactor Go logic for deduplicate preserving order to improve readability and performance. Difficulty: medium. Context: for an interview prep tool. Use idiomatic style." }, { "role": "assistant", "content": "func Solve(input string) string {\n // deduplicate pres...
[ { "role": "user", "content": "Write a JavaScript function for webhook signature check. Difficulty: medium. Context: for a backend service. Include input validation." }, { "role": "assistant", "content": "function solve(input) {\n // webhook signature check in JavaScript\n if (input == null) re...
[ { "role": "user", "content": "Implement retry with backoff in TypeScript with edge-case handling. Difficulty: easy. Context: for a backend service. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // retry with backo...
[ { "role": "user", "content": "Write a TypeScript function for JWT verification. Difficulty: easy. Context: for an internal library. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n // JWT verification in TypeScript\n...
[ { "role": "user", "content": "Write unit tests in Python for retry with backoff. Difficulty: easy. Context: for an internal library. Keep time complexity efficient." }, { "role": "assistant", "content": "def solve(data):\n \"\"\"retry with backoff in Python.\"\"\"\n if data is None:\n ...
[ { "role": "user", "content": "Refactor Go logic for webhook signature check to improve readability and performance. Difficulty: easy. Context: for a coding challenge platform. Use idiomatic style." }, { "role": "assistant", "content": "func Solve(input string) string {\n // webhook signature ...
[ { "role": "user", "content": "Fix this JavaScript code for webhook signature check: boundary bug and null handling. Difficulty: hard. Context: for a backend service. Avoid global mutable state." }, { "role": "assistant", "content": "function solve(input) {\n // webhook signature check in JavaSc...
[ { "role": "user", "content": "Write unit tests in SQL for merge intervals. Difficulty: hard. Context: for an interview prep tool. Keep it production-ready." }, { "role": "assistant", "content": "SELECT id, name\nFROM items\nWHERE active = TRUE\nORDER BY created_at DESC\nLIMIT 50;" } ]
[ { "role": "user", "content": "Refactor JavaScript logic for LRU cache to improve readability and performance. Difficulty: hard. Context: for a coding challenge platform. Include input validation." }, { "role": "assistant", "content": "function solve(input) {\n // LRU cache in JavaScript\n if (...
[ { "role": "user", "content": "Implement deduplicate preserving order in Go with edge-case handling. Difficulty: hard. Context: for a coding challenge platform. Add minimal comments only." }, { "role": "assistant", "content": "func Solve(input string) string {\n // deduplicate preserving order...
[ { "role": "user", "content": "Write a JavaScript function for email validation. Difficulty: easy. Context: for a backend service. Add minimal comments only." }, { "role": "assistant", "content": "function solve(input) {\n // email validation in JavaScript\n if (input == null) return null;\n r...
[ { "role": "user", "content": "Implement two-sum in JavaScript with edge-case handling. Difficulty: medium. Context: for an interview prep tool. Avoid global mutable state." }, { "role": "assistant", "content": "function solve(input) {\n // two-sum in JavaScript\n if (input == null) return null...
[ { "role": "user", "content": "Fix this TypeScript code for sliding window maximum: boundary bug and null handling. Difficulty: medium. Context: for an internal library. Use idiomatic style." }, { "role": "assistant", "content": "export function solve<T>(input: T | null | undefined): T | null {\n...
[ { "role": "user", "content": "Write unit tests in C++ for email validation. Difficulty: easy. Context: for an internal library. Keep time complexity efficient." }, { "role": "assistant", "content": "#include <string>\nstd::string solve(const std::string& input) {\n // email validation in C++\...
[ { "role": "user", "content": "Write a Go function for LRU cache. Difficulty: hard. Context: for an interview prep tool. Add minimal comments only." }, { "role": "assistant", "content": "func Solve(input string) string {\n // LRU cache in Go\n return input\n}" } ]