Query
stringlengths
2
286
Type
stringclasses
19 values
What's the idiomatic way to count word frequencies in a text file in Python?
Coding
Refactor-friendly C++ example: schedule a recurring job
Coding
Could you show a PowerShell implementation to detect a cycle in a directed graph and explain its complexity?
Coding
How do I download a file from a URL in C++?
Coding
What's the idiomatic way to implement Dijkstra's algorithm in Dart?
Coding
Explain how to send an HTTP POST request in Rust, with an example.
Coding
Bash: count word frequencies in a text file
Coding
Can you help me memoize a recursive function using C?
Coding
Write a Kotlin function to calculate a factorial.
Coding
How do I remove duplicates from a list while keeping order in C#?
Coding
Show me Java code to implement binary search.
Coding
Explain how to merge two sorted arrays in PHP, with an example.
Coding
could you show a Bash implementation to implement a token-bucket rate limiter and explain its complexity?
Coding
I'm new to Java. How would I build a trie for autocomplete
Coding
Could you show a C implementation to implement an LRU cache and explain its complexity?
Coding
Could you show a JavaScript implementation to check for balanced parentheses and explain its complexity?
Coding
Need Perl code to schedule a recurring job — keep it minimal.
Coding
Can you help me implement a queue using two stacks using Dart
Coding
Refactor-friendly Python example: parse command-line arguments
Coding
How do I measure a function's execution time in C?
Coding
Write a Dart function to convert a string to snake_case.
Coding
Need C++ code to convert a Roman numeral to an integer — keep it minimal.
Coding
write Lua to debounce a function call, with comments
Coding
What's the most efficient way to implement a token-bucket rate limiter in Elixir?
Coding
write C# to calculate a factorial, with comments
Coding
Could you show a Perl implementation to strip whitespace from a string and explain its complexity?
Coding
How do I parse a CSV file in JavaScript?
Coding
Can you help me implement an LRU cache using Swift?
Coding
what's the most efficient way to implement Dijkstra's algorithm in Java?
Coding
What's the most efficient way to implement an LRU cache in Swift?
Coding
What's the most efficient way to calculate a factorial in Ruby?
Coding
Refactor-friendly Java example: implement bubble sort
Coding
JavaScript: implement a queue using two stacks
Coding
What's the most efficient way to find duplicate elements in an array in Haskell?
Coding
What's the most efficient way to transpose a 2D array in PHP?
Coding
Refactor-friendly Swift example: handle exceptions when opening a file
Coding
I'm new to Perl. How would I send an HTTP POST request?
Coding
What's the most efficient way to parse command-line arguments in Elixir?
Coding
Need Dart code to write a unit test for a function — keep it minimal.
Coding
How do I solve the two-sum problem in O(n)?
Coding
Can you help me generate a random password using Bash?
Coding
write Perl to write a unit test for a function, with comments
Coding
Could you show a PowerShell implementation to connect to a PostgreSQL database and explain its complexity?
Coding
Explain how hash tables handle collisions and implement chaining in Python
Coding
write C# to find all permutations of a string, with comments
Coding
Need Elixir code to retry a request with exponential backoff — keep it minimal.
Coding
Refactor-friendly C# example: parse a CSV file
Coding
PHP: implement bubble sort
Coding
Show me R code to detect a cycle in a directed graph.
Coding
What's the most efficient way to connect to a PostgreSQL database in Lua?
Coding
I'm new to PHP. How would I parse a CSV file
Coding
Show me C code to find all permutations of a string.
Coding
Can you help me find the longest common subsequence of two strings using Swift?
Coding
read and parse a JSON file in R
Coding
What's the most efficient way to sort a list of objects by a field in Java?
Coding
write C++ to convert a string to snake_case, with comments
Coding
I'm new to Python. How would I deep clone an object
Coding
What's the most efficient way to debounce a function call in Haskell?
Coding
Need Haskell code to rotate a matrix 90 degrees — keep it minimal.
Coding
What's the most efficient way to serialize a class to JSON in Go?
Coding
how do I handle exceptions when opening a file in Swift
Coding
Show me C code to compute a SHA-256 hash.
Coding
write R to generate a UUID, with comments
Coding
Can you help me convert a Roman numeral to an integer using Haskell
Coding
What's the most efficient way to read and parse a JSON file in Java?
Coding
write Java to parse a CSV file, with comments
Coding
Refactor-friendly Rust example: implement an LRU cache
Coding
Explain how to create a simple REST endpoint in Perl, with an example.
Coding
Give me a Lua snippet that can compute the first n Fibonacci numbers.
Coding
C#: read a file line by line
Coding
Could you show a Swift implementation to create a simple REST endpoint and explain its complexity?
Coding
Can you help me read and parse a JSON file using Lua?
Coding
What's the idiomatic way to reverse a linked list in Perl?
Coding
Can you help me implement a queue using two stacks using C?
Coding
Show me C++ code to generate a random password.
Coding
Refactor-friendly Ruby example: schedule a recurring job
Coding
write a Go function to implement an LRU cache
Coding
I'm new to JavaScript. How would I flatten a nested list?
Coding
Write a Ruby function to count vowels in a string.
Coding
convert Celsius to Fahrenheit in Kotlin
Coding
handle exceptions when opening a file in Python
Coding
create a simple REST endpoint in Swift
Coding
Show me JavaScript code to rotate a matrix 90 degrees.
Coding
Give me a Kotlin snippet that can find the k-th largest element in an array.
Coding
What's the most efficient way to parse an XML document in Haskell?
Coding
Need PHP code to debounce a function call — keep it minimal.
Coding
Could you show a PowerShell implementation to convert a string to snake_case and explain its complexity?
Coding
How do I open a WebSocket connection in C#?
Coding
give me a Elixir snippet that can format a date as ISO 8601.
Coding
schedule a recurring job in TypeScript
Coding
I'm new to Rust. How would I check for balanced parentheses?
Coding
What's the idiomatic way to transpose a 2D array in Ruby?
Coding
I'm new to PHP. How would I implement an LRU cache?
Coding
What's the most efficient way to implement a min-heap in Swift?
Coding
R: send an HTTP POST request
Coding
I'm new to Perl. How would I compute the first n Fibonacci numbers?
Coding
Show me PHP code to implement binary search.
Coding
write Go to implement Dijkstra's algorithm, with comments
Coding
write Elixir to compute the first n Fibonacci numbers, with comments
Coding
What's the idiomatic way to generate a UUID in C?
Coding