Search is not available for this dataset
output
stringlengths
451
3.76k
prompt
stringclasses
1 value
"```cpp\n#include <vector>\n#include <unordered_map>\n\nstd::vector<int> twoSum(std::vector<int>& nu(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```java\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic int[] twoSum(int[] nums, int ta(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```python\ndef twoSum(nums, target):\n map = {}\n for i, num in enumerate(nums):\n com(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```javascript\nfunction twoSum(nums, target) {\n const map = new Map();\n for (let i = 0; i <(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```cpp\nstruct ListNode {\n int val;\n ListNode *next;\n ListNode(int x) : val(x), next(nu(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```java\npublic class ListNode {\n int val;\n ListNode next;\n ListNode(int x) { val = x; (...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```python\nclass ListNode:\n def __init__(self, val=0, next=None):\n self.val = val\n (...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```javascript\nfunction ListNode(val, next) {\n this.val = (val===undefined ? 0 : val);\n thi(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```cpp\n#include <string>\n#include <unordered_set>\n\nint lengthOfLongestSubstring(std::string s) (...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
"```java\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic int lengthOfLongestSubstring(St(...TRUNCATED)
"['Use c++ to solve the following problems, and give an explanation.', 'Use java to solve the follow(...TRUNCATED)
README.md exists but content is empty.
Downloads last month
39