-- Migration: 007_add_new_challenges.sql
-- Description: Add new coding challenges.

SET autocommit=0;
START TRANSACTION;

--
-- Seed data for table `challenges`
--
INSERT INTO `challenges` (`title`, `description`, `difficulty`, `challenge_type`, `sample_cases_json`, `expected_output`) VALUES
('Reverse a String', 'Write a Python function to reverse a given string.', 'beginner', 'python', '[{"input": "hello", "output": "olleh"}, {"input": "world", "output": "dlrow"}]', 'olleh'),
('FizzBuzz', 'Write a Python program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".', 'beginner', 'python', '[]', '1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n...'),
('Factorial Calculation', 'Write a Python function to calculate the factorial of a given non-negative integer.', 'intermediate', 'python', '[{"input": "5", "output": "120"}, {"input": "0", "output": "1"}]', '120');

COMMIT;
