Query
stringlengths
2
286
Type
stringclasses
19 values
Need Swift code to create a simple REST endpoint — keep it minimal.
Coding
Can you help me detect a cycle in a directed graph using Go?
Coding
What's the most efficient way to walk a directory tree recursively in Python?
Coding
Refactor-friendly Perl example: serialize a class to JSON
Coding
what's the idiomatic way to walk a directory tree recursively in PHP?
Coding
Explain how to send an HTTP POST request in C, with an example.
Coding
I'm new to Dart. How would I remove duplicates from a list while keeping order?
Coding
write Swift to implement binary search, with comments
Coding
What's the idiomatic way to check whether a number is a power of two in Scala?
Coding
Explain how to run a shell command and capture its output in Go, with an example.
Coding
Show me Ruby code to find the longest common subsequence of two strings.
Coding
what's the most efficient way to implement an LRU cache in Kotlin?
Coding
Show me PHP code to merge two sorted arrays
Coding
Write a Python script to rename all files in a folder
Coding
What's the most efficient way to sort a list of objects by a field in Ruby
Coding
Can you help me calculate a factorial using Dart?
Coding
Can you help me build a trie for autocomplete using Lua?
Coding
Could you show a Rust implementation to serialize a class to JSON and explain its complexity?
Coding
Show me JavaScript code to find the longest common subsequence of two strings.
Coding
What's the idiomatic way to send an HTTP POST request in PHP?
Coding
What's the idiomatic way to parse a CSV file in Rust?
Coding
Explain how to convert a Roman numeral to an integer in Go, with an example.
Coding
explain how to retry a request with exponential backoff in TypeScript, with an example.
Coding
What's the most efficient way to implement a token-bucket rate limiter in Java?
Coding
write Python to generate a random password, with comments
Coding
What's the idiomatic way to find the longest common subsequence of two strings in Perl?
Coding
Explain how to count word frequencies in a text file in C++, with an example.
Coding
I'm new to Java. How would I parse command-line arguments
Coding
can you help me implement a stack using Scala?
Coding
How do I sort a list of objects by a field in Scala?
Coding
What's the most efficient way to build a trie for autocomplete in Swift?
Coding
Explain how to create a simple REST endpoint in TypeScript, with an example.
Coding
Can you help me handle exceptions when opening a file using TypeScript?
Coding
Show me Bash code to deep clone an object.
Coding
What's the idiomatic way to schedule a recurring job in Bash?
Coding
Can you help me measure a function's execution time using Elixir?
Coding
Write a Bash function to rotate a matrix 90 degrees.
Coding
I'm new to C++. How would I implement an LRU cache?
Coding
Need Haskell code to walk a directory tree recursively — keep it minimal.
Coding
I'm new to PowerShell. How would I find the longest common subsequence of two strings?
Coding
Need PowerShell code to flatten a nested list — keep it minimal.
Coding
What's the most efficient way to measure a function's execution time in Swift?
Coding
Can you help me implement a queue using two stacks using Python?
Coding
write Kotlin to download a file from a URL, with comments
Coding
Need Scala code to convert Celsius to Fahrenheit — keep it minimal.
Coding
Can you help me parse command-line arguments using Elixir?
Coding
What's the most efficient way to implement an LRU cache in Java?
Coding
I'm new to Java. How would I implement an LRU cache?
Coding
Explain how to find duplicate elements in an array in R, with an example.
Coding
What's the most efficient way to connect to a PostgreSQL database in Python?
Coding
Rust: reverse a linked list
Coding
What's the most efficient way to implement binary search in C++?
Coding
Haskell: rotate a matrix 90 degrees
Coding
Refactor-friendly Elixir example: walk a directory tree recursively
Coding
What's the idiomatic way to memoize a recursive function in JavaScript?
Coding
How do I paginate a list of results in Java?
Coding
Write a PowerShell function to open a WebSocket connection.
Coding
can you help me find duplicate elements in an array using C?
Coding
Refactor-friendly Dart example: serialize a class to JSON
Coding
Need Haskell code to deep clone an object — keep it minimal.
Coding
Write a Swift function to check for balanced parentheses.
Coding
How do I parse a date string like '2024-03-05T10:20:30Z' in JavaScript
Coding
I'm new to JavaScript. How would I measure a function's execution time?
Coding
Explain how to connect to a PostgreSQL database in C++, with an example
Coding
Refactor-friendly Bash example: generate a UUID
Coding
What's the most efficient way to generate a random password in Bash?
Coding
Write a Kubernetes deployment YAML for an nginx container with 3 replicas
Coding
Ruby: retry a request with exponential backoff
Coding
Write a PowerShell function to find duplicate elements in an array.
Coding
Refactor-friendly C example: count word frequencies in a text file
Coding
Need Elixir code to reverse a linked list — keep it minimal.
Coding
Need Scala code to implement a min-heap — keep it minimal.
Coding
I'm new to PHP. How would I retry a request with exponential backoff?
Coding
Show me Elixir code to parse a CSV file.
Coding
Explain how to retry a request with exponential backoff in Bash, with an example.
Coding
Write a PowerShell function to paginate a list of results.
Coding
write Elixir to find the longest common subsequence of two strings, with comments
Coding
What's the idiomatic way to rotate a matrix 90 degrees in Ruby?
Coding
Explain how to run a shell command and capture its output in Haskell, with an example
Coding
Explain how to run a shell command and capture its output in Rust, with an example.
Coding
I'm new to Haskell. How would I create a simple REST endpoint?
Coding
What's the idiomatic way to flatten a nested list in C++?
Coding
Show me Rust code to paginate a list of results.
Coding
Write a Java function to implement Dijkstra's algorithm
Coding
write Kotlin to count vowels in a string, with comments
Coding
Refactor-friendly Rust example: implement a min-heap
Coding
Show me TypeScript code to measure a function's execution time.
Coding
How do I set up a GitHub Actions workflow to run pytest on every push
Coding
what's the most efficient way to reverse a linked list in C++?
Coding
What's the most efficient way to transpose a 2D array in JavaScript?
Coding
write Bash to flatten a nested list, with comments
Coding
Can you help me count vowels in a string using Rust?
Coding
Write a Lua function to implement Dijkstra's algorithm.
Coding
What's the idiomatic way to format a date as ISO 8601 in R?
Coding
How do I write a unit test for a function in Go?
Coding
Refactor-friendly Lua example: write a unit test for a function
Coding
Give me a PowerShell snippet that can format a date as ISO 8601
Coding
write Kotlin to sort a list of objects by a field, with comments
Coding
Explain how to serialize a class to JSON in Ruby, with an example
Coding
Could you show a Ruby implementation to deep clone an object and explain its complexity?
Coding