- "<|start_header_id|>user<|end_header_id|>\n\nImplement a function to calculate the factorial of a non-negative integer.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nWrite a program to determine if a given string is a palindrome.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nCreate an algorithm to find the nth Fibonacci number.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nImplement a stack data structure using arrays or linked lists.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nWrite a program to check if a binary tree is balanced.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nCreate a function to reverse a linked list.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nImplement the bubble sort algorithm.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nWrite a binary search algorithm to find an element in a sorted array.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nImplement the merge sort algorithm.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nSolve the "knapsack problem" using dynamic programming.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nWrite a program to find the longest common subsequence of two strings.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nImplement the Fibonacci sequence using dynamic programming.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nCreate a class representing a car with attributes like make, model, and year.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nDesign a class hierarchy for different shapes like circles, rectangles, and triangles.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nImplement inheritance and polymorphism in a program modeling different animals.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nGiven a list of integers, find the two numbers that sum up to a specific target.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nWrite a function to find the largest prime factor of a given number.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nOptimize a recursive algorithm by implementing memoization.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nGiven a list of words, find the longest word that can be constructed by concatenating other words from the list.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nWrite a program to generate all possible combinations of a set of numbers.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n" - "<|start_header_id|>user<|end_header_id|>\n\nImplement an algorithm to solve the traveling salesman problem.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"