conversations listlengths 2 2 | metadata dict | id stringlengths 36 36 |
|---|---|---|
[
{
"from": "human",
"value": "A bag has 4 red and 6 blue balls. You draw 2 without replacement. What's the probability both are red?"
},
{
"from": "gpt",
"value": "<thinking>\nI need P(both red) when drawing 2 balls without replacement from 4 red + 6 blue = 10 total.\n\nMethod: Use combinations o... | {
"category": "math",
"subcategory": "probability",
"difficulty": "medium"
} | 799b0c09-cc1e-46d9-b474-bd55689dac56 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | 7f22255f-2dc6-481c-910f-2246dfef41a7 |
[
{
"from": "human",
"value": "All mammals are warm-blooded. Whales are mammals. Dolphins are mammals. Are dolphins warm-blooded? What about fish?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me work through the syllogisms carefully.\n\nPremise 1: All mammals are warm-blooded.\nPremise 2: Whales... | {
"category": "logic",
"subcategory": "deduction",
"difficulty": "medium"
} | 70ae1649-7a9c-455d-ae5e-3d00f6e84e63 |
[
{
"from": "human",
"value": "If 3x + 7 = 22, what is x? Then find x^2 + 2x."
},
{
"from": "gpt",
"value": "<thinking>\nI need to solve for x first, then compute x^2 + 2x.\n\nStep 1: Solve 3x + 7 = 22\nSubtract 7 from both sides: 3x = 22 - 7 = 15\nDivide by 3: x = 15 / 3 = 5\n\nLet me verify: 3(5... | {
"category": "math",
"subcategory": "algebra",
"difficulty": "medium"
} | d402dcc7-7571-4f5f-8dc2-beffccf342ac |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | 47a3c573-63cc-4e94-930d-fc37d22678a1 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | fd61c84a-0cad-4ac9-bace-58a2c3c26fb8 |
[
{
"from": "human",
"value": "What caused the fall of the Roman Empire?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is a famously contested question in history. Edward Gibbon's \"Decline and Fall\" offered one view; modern historians have many competing theories. I should present the main sch... | {
"category": "knowledge",
"subcategory": "history",
"difficulty": "medium"
} | 83d421ee-7bb7-49c7-9a33-972776d9dc1f |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 2db2b543-5d83-4f98-a146-c7f089ff3b97 |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | a7a61296-79a3-419b-aa16-e73211162419 |
[
{
"from": "human",
"value": "Why do heavier objects and lighter objects fall at the same speed (in a vacuum)?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Galileo's insight and Newton's laws.\n\nThe intuitive (wrong) view: heavier objects fall faster because gravity pulls them more.\... | {
"category": "knowledge",
"subcategory": "physics",
"difficulty": "medium"
} | 087ec487-b93c-4f81-922b-1609d95da454 |
[
{
"from": "human",
"value": "Why do heavier objects and lighter objects fall at the same speed (in a vacuum)?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Galileo's insight and Newton's laws.\n\nThe intuitive (wrong) view: heavier objects fall faster because gravity pulls them more.\... | {
"category": "knowledge",
"subcategory": "physics",
"difficulty": "medium"
} | e88ca2d1-7bb0-4a67-902f-ec6ab1b153fc |
[
{
"from": "human",
"value": "All mammals are warm-blooded. Whales are mammals. Dolphins are mammals. Are dolphins warm-blooded? What about fish?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me work through the syllogisms carefully.\n\nPremise 1: All mammals are warm-blooded.\nPremise 2: Whales... | {
"category": "logic",
"subcategory": "deduction",
"difficulty": "medium"
} | 4dc44c44-695d-484d-9b11-776b08fd714c |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | 8dc7d356-a47c-4406-a8d6-9ee5009416d8 |
[
{
"from": "human",
"value": "What is the difference between GDP and GNP?"
},
{
"from": "gpt",
"value": "<thinking>\nGDP = Gross Domestic Product\nGNP = Gross National Product\n\nKey distinction is geographic/ownership based:\n\nGDP: Measures all economic output produced WITHIN a country's border... | {
"category": "knowledge",
"subcategory": "economics",
"difficulty": "medium"
} | 3c8b0fbf-a786-473e-bae4-0276b2d63be1 |
[
{
"from": "human",
"value": "A bag has 4 red and 6 blue balls. You draw 2 without replacement. What's the probability both are red?"
},
{
"from": "gpt",
"value": "<thinking>\nI need P(both red) when drawing 2 balls without replacement from 4 red + 6 blue = 10 total.\n\nMethod: Use combinations o... | {
"category": "math",
"subcategory": "probability",
"difficulty": "medium"
} | 02566886-8c89-40db-9063-514b6ade16fe |
[
{
"from": "human",
"value": "What is the greatest common divisor (GCD) of 48 and 180?"
},
{
"from": "gpt",
"value": "<thinking>\nI'll use the Euclidean algorithm: GCD(a,b) = GCD(b, a mod b), repeat until remainder is 0.\n\nGCD(180, 48):\n180 = 3 * 48 + 36 (180 / 48 = 3 remainder 36)\nGCD(48,... | {
"category": "math",
"subcategory": "number_theory",
"difficulty": "medium"
} | 213119db-d273-439a-8bbf-240bf0649148 |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | dc617380-f92e-4e3f-83ca-04a84401a8e9 |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 534af6f4-73dc-43dc-94ad-ed6fa6c4f9cd |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | 8f162b79-98e2-40c8-acbd-c3e8d30e23d2 |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | 559cfb01-b397-44d9-a323-3b86c55306ac |
[
{
"from": "human",
"value": "This function returns the wrong answer. Find the bug:\n\n```python\ndef sum_evens(nums):\n total = 0\n for i in range(len(nums)):\n if nums[i] % 2 == 1:\n total += nums[i]\n return total\n```\n\nTest: sum_evens([1, 2, 3, 4, 5, 6]) should return 12."
... | {
"category": "programming",
"subcategory": "debugging",
"difficulty": "medium"
} | b3c41097-8981-4f78-bad7-212cef8e042e |
[
{
"from": "human",
"value": "What is the greatest common divisor (GCD) of 48 and 180?"
},
{
"from": "gpt",
"value": "<thinking>\nI'll use the Euclidean algorithm: GCD(a,b) = GCD(b, a mod b), repeat until remainder is 0.\n\nGCD(180, 48):\n180 = 3 * 48 + 36 (180 / 48 = 3 remainder 36)\nGCD(48,... | {
"category": "math",
"subcategory": "number_theory",
"difficulty": "medium"
} | 964f2080-b1a0-4ac5-b592-b9f1694770fc |
[
{
"from": "human",
"value": "A bag has 4 red and 6 blue balls. You draw 2 without replacement. What's the probability both are red?"
},
{
"from": "gpt",
"value": "<thinking>\nI need P(both red) when drawing 2 balls without replacement from 4 red + 6 blue = 10 total.\n\nMethod: Use combinations o... | {
"category": "math",
"subcategory": "probability",
"difficulty": "medium"
} | 4c75ac04-c7db-4b01-b5fb-f3a808939b64 |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | 9d733ddc-530a-4340-a7d7-b81b97677fe5 |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | e0c7a5d8-cb26-4f78-a3e1-b97579585c74 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | 151db284-1f7e-433a-a456-b7a3af36ab33 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | 1e4afae1-1aaf-4c5f-8dd2-f0c2be9b1559 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | 484b512c-a8b3-44ca-8844-16807819f033 |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | 972c3020-c31a-44f9-92da-0356b26d554d |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | 3f234686-3e5d-4107-a3b0-c81f560b2816 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 66397eb0-88e0-497e-b680-929253c1d82f |
[
{
"from": "human",
"value": "This function returns the wrong answer. Find the bug:\n\n```python\ndef sum_evens(nums):\n total = 0\n for i in range(len(nums)):\n if nums[i] % 2 == 1:\n total += nums[i]\n return total\n```\n\nTest: sum_evens([1, 2, 3, 4, 5, 6]) should return 12."
... | {
"category": "programming",
"subcategory": "debugging",
"difficulty": "medium"
} | 177c0352-003c-4716-8d53-0c9d6d129867 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 9f4e5f5e-306f-4cbb-8228-1e167fa79b32 |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | d8e2eed7-95e0-448c-ab79-fe25679aaa50 |
[
{
"from": "human",
"value": "All mammals are warm-blooded. Whales are mammals. Dolphins are mammals. Are dolphins warm-blooded? What about fish?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me work through the syllogisms carefully.\n\nPremise 1: All mammals are warm-blooded.\nPremise 2: Whales... | {
"category": "logic",
"subcategory": "deduction",
"difficulty": "medium"
} | 8fc3dfa4-d7a6-49c0-b073-8d8afed2fc7f |
[
{
"from": "human",
"value": "A train leaves City A at 60 mph. Two hours later, another train leaves City A going the same direction at 90 mph. How long until the second train catches the first?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me define variables carefully.\n\nTrain 1: starts at ti... | {
"category": "math",
"subcategory": "word_problem",
"difficulty": "medium"
} | a444292c-88b9-4417-9efe-e9a1e6116e1c |
[
{
"from": "human",
"value": "Why do heavier objects and lighter objects fall at the same speed (in a vacuum)?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Galileo's insight and Newton's laws.\n\nThe intuitive (wrong) view: heavier objects fall faster because gravity pulls them more.\... | {
"category": "knowledge",
"subcategory": "physics",
"difficulty": "medium"
} | 0a7a64b4-8526-4ff4-a953-f935c57dec86 |
[
{
"from": "human",
"value": "Why does the sky appear blue during the day but red/orange at sunset?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Rayleigh scattering and how light interacts with the atmosphere.\n\nKey physics:\n- Sunlight is white light = all visible wavelengths combin... | {
"category": "knowledge",
"subcategory": "science",
"difficulty": "medium"
} | 7c4235da-c217-4593-8b94-30c770ed9cf6 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 26b254c1-e210-4664-a257-be41927c3c8c |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 8e2f1c25-ca34-4213-9883-cf79c863029d |
[
{
"from": "human",
"value": "Why do heavier objects and lighter objects fall at the same speed (in a vacuum)?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Galileo's insight and Newton's laws.\n\nThe intuitive (wrong) view: heavier objects fall faster because gravity pulls them more.\... | {
"category": "knowledge",
"subcategory": "physics",
"difficulty": "medium"
} | b8632667-e2b8-423e-b944-2a26f21e17ea |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | cb66cbc8-0400-4490-b8b1-08c15834a5df |
[
{
"from": "human",
"value": "Why do heavier objects and lighter objects fall at the same speed (in a vacuum)?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Galileo's insight and Newton's laws.\n\nThe intuitive (wrong) view: heavier objects fall faster because gravity pulls them more.\... | {
"category": "knowledge",
"subcategory": "physics",
"difficulty": "medium"
} | a17b75b4-269b-4b94-a761-ecc42e8ced87 |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | 7cdfd04f-6ddf-4f28-80e7-dc36d19e22d1 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | e166a036-2713-440a-ad0f-bacec38e2b6a |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 95b05af5-6bd7-4bb4-82a1-1e739fde8509 |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | 2e4723de-0041-46df-ad47-c51252b2c26e |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | fdb07dbf-55d2-46a4-b67f-09db270144d3 |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | ef0d2ce4-ca2a-4bb7-9462-5515ec1594df |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 39f391bb-17c1-4c3d-b544-17df991d7ee6 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 348b3762-bfa5-472e-9162-542a928cf345 |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | ea3adc8d-ca33-46fc-b3c1-f8d99ccb40d6 |
[
{
"from": "human",
"value": "Why do heavier objects and lighter objects fall at the same speed (in a vacuum)?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Galileo's insight and Newton's laws.\n\nThe intuitive (wrong) view: heavier objects fall faster because gravity pulls them more.\... | {
"category": "knowledge",
"subcategory": "physics",
"difficulty": "medium"
} | 27859633-8a1c-4f2c-9cb1-e3e90ef97cc0 |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | d64c41be-0e0d-4ab2-8df6-cc5a8ac78023 |
[
{
"from": "human",
"value": "If 3x + 7 = 22, what is x? Then find x^2 + 2x."
},
{
"from": "gpt",
"value": "<thinking>\nI need to solve for x first, then compute x^2 + 2x.\n\nStep 1: Solve 3x + 7 = 22\nSubtract 7 from both sides: 3x = 22 - 7 = 15\nDivide by 3: x = 15 / 3 = 5\n\nLet me verify: 3(5... | {
"category": "math",
"subcategory": "algebra",
"difficulty": "medium"
} | ae4f0bd4-2cc6-4357-a6c1-f786b891bff6 |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 095485cc-5144-4978-a46a-aefa95f0d38f |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | 98a41626-9934-4b95-b81e-cadea7d511cb |
[
{
"from": "human",
"value": "All mammals are warm-blooded. Whales are mammals. Dolphins are mammals. Are dolphins warm-blooded? What about fish?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me work through the syllogisms carefully.\n\nPremise 1: All mammals are warm-blooded.\nPremise 2: Whales... | {
"category": "logic",
"subcategory": "deduction",
"difficulty": "medium"
} | bc14e09c-c418-45ca-847e-5b3a1b6183a2 |
[
{
"from": "human",
"value": "What caused the fall of the Roman Empire?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is a famously contested question in history. Edward Gibbon's \"Decline and Fall\" offered one view; modern historians have many competing theories. I should present the main sch... | {
"category": "knowledge",
"subcategory": "history",
"difficulty": "medium"
} | f77ae2f4-6656-4026-af06-0260421b3d41 |
[
{
"from": "human",
"value": "Why does the sky appear blue during the day but red/orange at sunset?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Rayleigh scattering and how light interacts with the atmosphere.\n\nKey physics:\n- Sunlight is white light = all visible wavelengths combin... | {
"category": "knowledge",
"subcategory": "science",
"difficulty": "medium"
} | a416a7d5-467e-4ea9-a060-c31f97103bf8 |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | 434e2a53-0823-4919-b250-7cedb933f50b |
[
{
"from": "human",
"value": "This function returns the wrong answer. Find the bug:\n\n```python\ndef sum_evens(nums):\n total = 0\n for i in range(len(nums)):\n if nums[i] % 2 == 1:\n total += nums[i]\n return total\n```\n\nTest: sum_evens([1, 2, 3, 4, 5, 6]) should return 12."
... | {
"category": "programming",
"subcategory": "debugging",
"difficulty": "medium"
} | 86bdf5b8-c562-4c4e-89c1-407e77ec6ea7 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 0e7827dc-63bf-4acb-9849-bb12323f82c3 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | a2c7f37b-96c2-4af3-b3ca-499e77c53e0d |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | 91fa58ef-1062-489f-a9d1-ada5afefacd9 |
[
{
"from": "human",
"value": "Why does the sky appear blue during the day but red/orange at sunset?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Rayleigh scattering and how light interacts with the atmosphere.\n\nKey physics:\n- Sunlight is white light = all visible wavelengths combin... | {
"category": "knowledge",
"subcategory": "science",
"difficulty": "medium"
} | e30c997f-8eec-4acd-8abf-78b357f64713 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 8944eeb3-635c-4a68-8a74-797c2044e9a9 |
[
{
"from": "human",
"value": "If 3x + 7 = 22, what is x? Then find x^2 + 2x."
},
{
"from": "gpt",
"value": "<thinking>\nI need to solve for x first, then compute x^2 + 2x.\n\nStep 1: Solve 3x + 7 = 22\nSubtract 7 from both sides: 3x = 22 - 7 = 15\nDivide by 3: x = 15 / 3 = 5\n\nLet me verify: 3(5... | {
"category": "math",
"subcategory": "algebra",
"difficulty": "medium"
} | 466ff0d0-b730-4a9c-aa53-4becba18bc44 |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | 210f9f6a-b5e1-4bc3-b8f5-6bf7821bf40d |
[
{
"from": "human",
"value": "A bag has 4 red and 6 blue balls. You draw 2 without replacement. What's the probability both are red?"
},
{
"from": "gpt",
"value": "<thinking>\nI need P(both red) when drawing 2 balls without replacement from 4 red + 6 blue = 10 total.\n\nMethod: Use combinations o... | {
"category": "math",
"subcategory": "probability",
"difficulty": "medium"
} | 0cca46c9-f6f6-4ed0-97e9-1caa8d87b9a1 |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 9e2c47e6-a953-45eb-8f83-fea2672f2342 |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | a67c7f56-3f6b-4b86-9214-64644fa29955 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | c8ae431d-c531-4d66-9f88-41a81ef972d3 |
[
{
"from": "human",
"value": "This function returns the wrong answer. Find the bug:\n\n```python\ndef sum_evens(nums):\n total = 0\n for i in range(len(nums)):\n if nums[i] % 2 == 1:\n total += nums[i]\n return total\n```\n\nTest: sum_evens([1, 2, 3, 4, 5, 6]) should return 12."
... | {
"category": "programming",
"subcategory": "debugging",
"difficulty": "medium"
} | e0b39cb2-2916-433d-a0dd-789ab7eaf798 |
[
{
"from": "human",
"value": "A bag has 4 red and 6 blue balls. You draw 2 without replacement. What's the probability both are red?"
},
{
"from": "gpt",
"value": "<thinking>\nI need P(both red) when drawing 2 balls without replacement from 4 red + 6 blue = 10 total.\n\nMethod: Use combinations o... | {
"category": "math",
"subcategory": "probability",
"difficulty": "medium"
} | c305d64d-787a-4f2c-8f71-462a6b154e1f |
[
{
"from": "human",
"value": "Explain the Monty Hall problem and why switching doors is the right strategy."
},
{
"from": "gpt",
"value": "<thinking>\nThe Monty Hall problem is famously counterintuitive. Let me work through it carefully.\n\nSetup:\n- 3 doors. Behind one: car. Behind two: goats.\n... | {
"category": "math",
"subcategory": "statistics",
"difficulty": "hard"
} | cb7c5422-f84c-4b9d-8f87-4e2794efced3 |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | eda2bd89-d546-47f0-b6e1-2f0f9ef2dad3 |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | 542122f5-44f7-48d8-92c0-ffe26cc6b862 |
[
{
"from": "human",
"value": "What caused the fall of the Roman Empire?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is a famously contested question in history. Edward Gibbon's \"Decline and Fall\" offered one view; modern historians have many competing theories. I should present the main sch... | {
"category": "knowledge",
"subcategory": "history",
"difficulty": "medium"
} | b67d481d-839c-4c85-991e-391519dc2fe7 |
[
{
"from": "human",
"value": "A bag has 4 red and 6 blue balls. You draw 2 without replacement. What's the probability both are red?"
},
{
"from": "gpt",
"value": "<thinking>\nI need P(both red) when drawing 2 balls without replacement from 4 red + 6 blue = 10 total.\n\nMethod: Use combinations o... | {
"category": "math",
"subcategory": "probability",
"difficulty": "medium"
} | 301492b3-deb3-4a65-bf44-00b1a338c591 |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | f3697828-1109-4fde-a454-59ccabcd022a |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | 95e36bcc-928d-4266-a092-a8049492c1fc |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | f5dd583b-b5e7-4e7c-a57d-f7188d44963a |
[
{
"from": "human",
"value": "Why does the sky appear blue during the day but red/orange at sunset?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is about Rayleigh scattering and how light interacts with the atmosphere.\n\nKey physics:\n- Sunlight is white light = all visible wavelengths combin... | {
"category": "knowledge",
"subcategory": "science",
"difficulty": "medium"
} | 91953a56-6d3a-4b11-b1d2-47b249696e26 |
[
{
"from": "human",
"value": "What is the greatest common divisor (GCD) of 48 and 180?"
},
{
"from": "gpt",
"value": "<thinking>\nI'll use the Euclidean algorithm: GCD(a,b) = GCD(b, a mod b), repeat until remainder is 0.\n\nGCD(180, 48):\n180 = 3 * 48 + 36 (180 / 48 = 3 remainder 36)\nGCD(48,... | {
"category": "math",
"subcategory": "number_theory",
"difficulty": "medium"
} | 8a25dc40-bb5c-42de-b57b-a1cbba75943f |
[
{
"from": "human",
"value": "If 3x + 7 = 22, what is x? Then find x^2 + 2x."
},
{
"from": "gpt",
"value": "<thinking>\nI need to solve for x first, then compute x^2 + 2x.\n\nStep 1: Solve 3x + 7 = 22\nSubtract 7 from both sides: 3x = 22 - 7 = 15\nDivide by 3: x = 15 / 3 = 5\n\nLet me verify: 3(5... | {
"category": "math",
"subcategory": "algebra",
"difficulty": "medium"
} | 887397ae-ba5c-4bf5-bf5c-b831f5fe8aa8 |
[
{
"from": "human",
"value": "What caused the fall of the Roman Empire?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is a famously contested question in history. Edward Gibbon's \"Decline and Fall\" offered one view; modern historians have many competing theories. I should present the main sch... | {
"category": "knowledge",
"subcategory": "history",
"difficulty": "medium"
} | 20c2588f-e240-444c-8a79-a770cd2493a6 |
[
{
"from": "human",
"value": "All mammals are warm-blooded. Whales are mammals. Dolphins are mammals. Are dolphins warm-blooded? What about fish?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me work through the syllogisms carefully.\n\nPremise 1: All mammals are warm-blooded.\nPremise 2: Whales... | {
"category": "logic",
"subcategory": "deduction",
"difficulty": "medium"
} | ff4d0fd8-e618-4cef-9daa-88528c48b1ac |
[
{
"from": "human",
"value": "Write a Python function to find the longest palindromic substring in a string."
},
{
"from": "gpt",
"value": "<thinking>\nI need to find the longest substring that reads the same forward and backward.\n\nApproaches:\n1. Brute force: O(n^3) - check all O(n^2) substrin... | {
"category": "programming",
"subcategory": "algorithms",
"difficulty": "medium"
} | ecb769cb-7b63-474e-979d-826946b21b61 |
[
{
"from": "human",
"value": "If 3x + 7 = 22, what is x? Then find x^2 + 2x."
},
{
"from": "gpt",
"value": "<thinking>\nI need to solve for x first, then compute x^2 + 2x.\n\nStep 1: Solve 3x + 7 = 22\nSubtract 7 from both sides: 3x = 22 - 7 = 15\nDivide by 3: x = 15 / 3 = 5\n\nLet me verify: 3(5... | {
"category": "math",
"subcategory": "algebra",
"difficulty": "medium"
} | 4080970a-82e6-467a-bc83-6dabd1e3b87d |
[
{
"from": "human",
"value": "What caused the fall of the Roman Empire?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is a famously contested question in history. Edward Gibbon's \"Decline and Fall\" offered one view; modern historians have many competing theories. I should present the main sch... | {
"category": "knowledge",
"subcategory": "history",
"difficulty": "medium"
} | 9a6253cc-d6f8-413a-9079-68114734d6b5 |
[
{
"from": "human",
"value": "All mammals are warm-blooded. Whales are mammals. Dolphins are mammals. Are dolphins warm-blooded? What about fish?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me work through the syllogisms carefully.\n\nPremise 1: All mammals are warm-blooded.\nPremise 2: Whales... | {
"category": "logic",
"subcategory": "deduction",
"difficulty": "medium"
} | 0935300f-6586-4a68-a294-76aab19b0a73 |
[
{
"from": "human",
"value": "What is the greatest common divisor (GCD) of 48 and 180?"
},
{
"from": "gpt",
"value": "<thinking>\nI'll use the Euclidean algorithm: GCD(a,b) = GCD(b, a mod b), repeat until remainder is 0.\n\nGCD(180, 48):\n180 = 3 * 48 + 36 (180 / 48 = 3 remainder 36)\nGCD(48,... | {
"category": "math",
"subcategory": "number_theory",
"difficulty": "medium"
} | 8e543237-5255-420a-bbf8-276e5f67dc75 |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | ce59fa82-527a-4b51-ab12-71801a5afe0d |
[
{
"from": "human",
"value": "A circle has area 64pi square cm. What is its circumference?"
},
{
"from": "gpt",
"value": "<thinking>\nGiven: Area = 64pi cm^2\nNeed: Circumference\n\nStep 1: Find radius from area.\nArea = pi * r^2\n64pi = pi * r^2\nr^2 = 64\nr = 8 cm (taking positive root since ra... | {
"category": "math",
"subcategory": "geometry",
"difficulty": "medium"
} | af1b2a3c-f156-4448-9dd1-8c5bb6fac609 |
[
{
"from": "human",
"value": "Analyze the rhetorical devices in: 'Ask not what your country can do for you — ask what you can do for your country.'"
},
{
"from": "gpt",
"value": "<thinking>\nThis is JFK's famous line from his 1961 inaugural address. Let me identify the rhetorical devices systemat... | {
"category": "writing",
"subcategory": "analysis",
"difficulty": "medium"
} | 4157f133-189e-4d89-a324-1c3647d6f224 |
[
{
"from": "human",
"value": "Three friends — Alex, Blake, and Casey — each have a different job: teacher, engineer, doctor. Alex is not the teacher. Blake is not the engineer. Casey is not the doctor. What is each person's job?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me set up the constra... | {
"category": "logic",
"subcategory": "puzzle",
"difficulty": "hard"
} | 642f7cb4-faea-44f4-b2e6-cbcd8ae770bb |
[
{
"from": "human",
"value": "Implement a min-heap from scratch in Python without using heapq."
},
{
"from": "gpt",
"value": "<thinking>\nA min-heap is a complete binary tree where every parent <= its children. The minimum element is always at the root.\n\nKey operations:\n1. insert(val): Add to ... | {
"category": "programming",
"subcategory": "data_structures",
"difficulty": "hard"
} | 47d2c6a1-b250-4d54-9e04-f2a0a9064ac6 |
[
{
"from": "human",
"value": "What caused the fall of the Roman Empire?"
},
{
"from": "gpt",
"value": "<thinking>\nThis is a famously contested question in history. Edward Gibbon's \"Decline and Fall\" offered one view; modern historians have many competing theories. I should present the main sch... | {
"category": "knowledge",
"subcategory": "history",
"difficulty": "medium"
} | edf39455-d424-451d-9894-a13dc4ae086b |
[
{
"from": "human",
"value": "A train leaves City A at 60 mph. Two hours later, another train leaves City A going the same direction at 90 mph. How long until the second train catches the first?"
},
{
"from": "gpt",
"value": "<thinking>\nLet me define variables carefully.\n\nTrain 1: starts at ti... | {
"category": "math",
"subcategory": "word_problem",
"difficulty": "medium"
} | 3a79f1cb-5983-47df-bc1b-0998b01a96db |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.