messages listlengths 3 3 |
|---|
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## K-th Smallest Measurement\n\n**Time Limit:** 2 seconds \n**Memory Limit:** 256 MB\n\... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Problem Statement\n\nYou are given a sequence of sensor readings recorded over time.... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def num_of_subsequences(s: str, word: str) -> int:\n \"\"\"\n Returns the number o... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def max_treasures(N, T, treasures, start_x, start_y):\n \"\"\" Determine the maximum ... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def min_moves_to_laser(n: int, m: int, xs: int, ys: int, xl: int, yl: int) -> int:\n ... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def rob_houses(arr, m):\n \"\"\"\n Given a list of non-negative integers represent... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Problem Statement\n\nRoma is an avid online poker player. On his favourite site each... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Monthly Temperature Pivot\n\nThe National Weather Service collects a massive log of t... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: Given an integer array `heights` representing the heights of a series of buildings along... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def min_deletions_to_balance(S: str) -> int:\n \"\"\" Determine the minimum number of... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Rising River Profile\n\n**Time Limit:** 2 seconds\n**Memory Limit:** 512 MB\n\n### Pr... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: \nGiven an integer array hours representing times in hours, return an integer denoting t... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Problem Statement\n\nYou are implementing the back‑end of a live code editor that su... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Question: Disk Utilization Over Time Simulator\n\nYour task is to implement a functi... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Problem Statement\n\nA high‑frequency sensor array records a stream of integer readi... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Rotating Log Buffer\n\n**Time Limit:** 2 seconds\n\n**Memory Limit:** 256 MB\n\n####... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Infinite Grid K‑in‑a‑Row\n\n**Time Limit:** 1 second\n\n**Memory Limit:** 256 MB\n\n#... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def find_rendezvous_point(coordinates):\n \"\"\"\n Finds the coordinates of the op... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Pipeline Security Upgrade\n\nA long oil pipeline is divided into **n** consecutive s... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: You are given an array of integers and a window size 'k'. Implement the function 'max_sl... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: from typing import List\n\ndef longest_increasing_subsequence_length(array: List[int]) -... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def plant_flowers(N, G, M, flowers):\n \"\"\"\n Plants flowers in the garden follo... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: You are given a stream of data representing stock prices over time for a particular stoc... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: Background\n----------------\nIn the land of Algravia, there exists a magical forest whi... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Minimum Re‑wiring Operations in a Data‑Center Grid\n\n#### Problem Description\nYou ... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Perfect Boxes\n\n**Time Limit:** 2 seconds \n**Memory Limit:** 256 MB\n\n#### Probl... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Dynamic Non‑Adjacent Maximum Sum\n\n**Time Limit:** 2 seconds\n**Memory Limit:** 256... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: from typing import List, Dict\n\ndef shortest_path_bfs(graph: Dict[int, List[int]], star... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: Johnny is playing a simplified version of a strategy game. In this game, there are `n` k... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Enchanted Knight Tour Validation\n\nA mischievous wizard has enchanted an **n × n** c... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: **Problem Title:** Minimum Cost to Make a Pangram\n\n**Time Limit:** 2 seconds \n**Memo... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Twin Artifact Selection\n\n**Story**\n\nDeep within the forgotten ruins of **Arcanum... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: A positive integer x is called a 321-like Number when it satisfies the following conditi... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def filter_transactions(transactions, threshold):\n \"\"\"\n Filters out all trans... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ### Leaderboard BST\n\n**Time Limit:** 2 seconds\n**Memory Limit:** 256 MB\n\n#### Probl... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: class Inventory:\n def __init__(self):\n \"\"\" Initialize the inventory syste... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Maximal Topic Sets\n\n**Problem Statement**\nOn a knowledge‑sharing platform each use... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Problem Statement\n\nA network of environmental sensors records the temperature of a ... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: from typing import List\n\ndef largest_rectangle_area(heights: List[int]) -> int:\n \... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: import numpy as np\n\ndef matrix_product_inverse(input_list):\n \"\"\"\n Computes ... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def automorphicNumber(n: int) -> str:\n \"\"\"\n Given a number, find if it is Aut... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def longest_equal_even_odd_subarray(arr: List[int]) -> int:\n \"\"\"\n Function to... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: ## Count Feasible Schedules\n\n**Time Limit:** 2 seconds\n**Memory Limit:** 256 MB\n\n##... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: You are given a binary array nums.\nA subarray of an array is good if it contains exactl... |
[
{
"role": "system",
"content": "You will write python program to solve algorithm problems. You will only write code blocks."
},
{
"role": "user",
"content": "Write python code to solve the following problem: def find_healthy_ingredients(available_ingredients, healthy_ingredients):\n \"\"\"\n ... |
End of preview. Expand in Data Studio
- Downloads last month
- 12