instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Stručně shrň článek o tématu „Škoda 637“ a uveď hlavní fakta. | **Škoda 637**
Škoda 637 byl osobní automobil vyráběný v československé automobilce Škoda. Prodával se jako dvoudveřový tudor, čtyřdveřový sedan nebo limuzína. Výroba probíhala mezi lety 1932 a 1935, celkem se vyrobilo 67 kusů. Popis vozu Motor byl řadový šestiválec SV o objemu 1961 cm³. Vozy vyrobené do konce roku 193... | null | |
modify the given css code to make the font size to 48px. | body { font-family: "Roboto", sans-serif; font-size: 20px; } | body { font-family: "Roboto", sans-serif; font-size: 48px; } | null |
null | null | null | 1833 in Denmark
Events from the year 1833 in Denmark. Incumbents Monarch – Frederick VI Prime minister – Otto Joachim Events Undated Births 29 January Carl Frederik Aagaard, painter (died 1895 22 February Carl Ludwig Jessen, painter (died 1917) 12 May – Georg Emil Hansen, photographer (died 1891) 7 July – Ludvig Fenge... |
Write a code for concatenating two arrays. | Array1: [1,2,3] Array2: [4,5,6] | def concat_arrays(arr1, arr2): return arr1 + arr2 print(concat_arrays([1,2,3], [4,5,6])) Output: [1, 2, 3, 4, 5, 6] | null |
What is 6 - 3? | 6 - 3 = 3 | null | |
Given an array of integers and a target value, write a Java program to determine whether this array contains two elements with the given target sum. | arr = [2, 4, 6, 8, 10], target = 8 | boolean containsTargetSum(int[] arr, int target){ for (int i = 0; i < arr.length; i++){ for (int j = 1; j < arr.length; j++){ if (arr[i] + arr[j] == target) return true; } } return false; } | null |
null | null | null | Paul Merton's Birth of Hollywood
Paul Merton's Birth of Hollywood is a 2011 BBC documentary series written, directed and presented by Paul Merton. The three-part series traces the rise of the American film-making industry in Hollywood through from the early years of film-making to the foundation of the major motion-pi... |
Create a function to calculate the sum of the Triangle Series up to the given number n. | def sum_triangle(n): if n<=0: return 0 res = (n * (n + 1)) // 2 return res | null | |
Write a code to convert HTML to Markdown using Python. | import markdown import re def convert_html_to_markdown(html): lines = html.split('\n') for line in lines: line = markdown.markdown(line) # remove HTML tags line = re.sub(r'<[^>]*>', '', line) # strip whitespace line = line.strip() print line html = '<p>This is an example of HTML text.</p>' convert_html_to_markdown(html... | null | |
Summarize key facts about „The Shark Is Broken“ clearly and accurately. | **The Shark Is Broken**
The Shark Is Broken is a play written by Ian Shaw and Joseph Nixon, and directed by Guy Masterson. It is a comedic exploration of the behind-the-scenes drama that took place during the filming of the 1975 film Jaws, which was directed by Steven Spielberg and starred Robert Shaw, Roy Scheider, a... | null | |
Implementuj v Pythonu reverse string. | ```python def rev(s: str) -> str: return s[::-1] ``` | null | |
Code an algorithm to reverse an array of integers. | [1, 3, 4, 6, 8] | def reverse_array(arr): left_index = 0 right_index = len(arr) - 1 while left_index < right_index: arr[left_index], arr[right_index] = arr[right_index], arr[left_index] left_index += 1 right_index -= 1 return arr if __name__ == "__main__": print(reverse_array([1, 3, 4, 6, 8])) | null |
Stručně shrň článek o tématu „Čáp simbil“ a uveď hlavní fakta. | **Čáp simbil**
Čáp simbil (Ciconia abdimii) je jeden z nejmenších druhů čápů, který žije v Africe. Je tažným ptákem, který neodlétá před chladem, ale jeho každoroční pravidelné stěhování je navázáno na postup deště a tudíž na dostatek potravy. Výskyt Je to trans-rovníkový migrant, který se sezónně stěhuje mezi severní... | null | |
null | null | null | Shunamitism
Shunamitism (also referred to as gerocomy) is the practice of an old man sleeping with, but not necessarily having sex with, a young virgin to preserve his youth. It is considered an esoteric youth-enhancing method. The rationale was that the heat and moisture of the young woman would transfer to the old m... |
null | null | null | Ladislav Janda
Ladislav Janda (14. ledna 1898 Praha – 1984 Praha) byl český nakladatel, knihkupec, legionář, důstojník československé armády a manažer. Nakladatelství, knihkupectví a knižní distribuce Ladislav Janda vybudoval ve dvacátých letech dvacátého století knižní distribuci a knihkupectví Kramerius, v roce 1933... |
Stručně shrň článek o tématu „Ducháček to zařídí“ a uveď hlavní fakta. | **Ducháček to zařídí**
Ducháček to zařídí je česká filmová komedie z roku 1938 režiséra Karla Lamače. Hlavním hrdinou je vykutálený, ale loajální účetní (Vlasta Burian), jenž se snaží dostat z finančních i osobních problémů svého šéfa, advokáta zadlužené rodiny. Děj filmu Jan Ducháček (Vlasta Burian) je velmi schopným... | null | |
Create a function to print a multiline message in Python | message = "This is a multiline message." | def print_multiline_message(message): print(message) | null |
Stručně shrň článek o tématu „Cankarův dům v Lublani“ a uveď hlavní fakta. | **Cankarův dům v Lublani**
Cankarův dům (slovinsky Cankarjev dom) se nachází ve slovinské metropoli Lublani, na Náměstí republiky (na jeho jižním konci). Jedná se o největší kongresové, kulturní a konferenční centrum ve Slovinsku. Nese název po významném slovinském spisovateli, Ivanu Cankarovi. Dům má celkem čtyři sál... | null | |
Stručně shrň článek o tématu „Skupenské teplo tání“ a uveď hlavní fakta. | **Skupenské teplo tání**
Skupenské teplo tání je (celkové) teplo, které přijme pevná látka při přechodu na kapalinu během tání. Teplo, které přijme 1 kilogram látky se nazývá měrné skupenské teplo tání. Značení Značka: Lt Jednotka SI: joule, značka: J Používané násobky: kilojoule kJ, megajoule MJ Výpočet Hodnotu skupe... | null | |
Stručně shrň článek o tématu „Objem“ a uveď hlavní fakta. | **Objem**
Objem je fyzikální veličina, která vyjadřuje velikost prostoru, kterou zabírá těleso. Z matematického hlediska představuje objem míru charakterizující danou vymezenou část prostoru. Z Fyzikálně-chemického hlediska je objem odvozená jednotka. Objem látek je závislý na tlaku, teplotě a látkovém množství (viz s... | null | |
Kolik je 16 × 11? | 16 × 11 = 176 | null | |
Using the following dictionary, print the value for the element 'age'. | person = { 'name': 'John Smith', 'age': 32, 'address': '123 Main St.' } | age = person['age'] print("The value for the element 'age' is:", age) # Output: The value for the element 'age' is: 32 | null |
Implement quicksort algorithm in Python for a list of integers. | [4, 2, 5, 3, 1] | def quicksort(arr): if len(arr) <= 1: return arr pivot = arr[len(arr) // 2] left = [x for x in arr if x < pivot] middle = [x for x in arr if x == pivot] right = [x for x in arr if x > pivot] return quicksort(left) + middle + quicksort(right) | null |
Loop through an array using JavaScript | const array = [2, 3, 5, 7, 11]; | const array = [2, 3, 5, 7, 11]; for (let i = 0; i < array.length; i++) { console.log(array[i]); } | null |
null | null | null | Sam Kassin
Sam Kassin (lit. Shlomo Kassin, born 1944), also known as "Rabbi Sammy", is a Rosh Yeshiva in Israel. He is also the Chief Rabbi of the Bukharan Quarter of Jerusalem. Biography The son of Esther Sutton and Ezra Kassin, Kassin descends from a line of rabbis that dates back to 1600, with roots in Spain. One o... |
Stručně shrň článek o tématu „Seznam premiérů Srbska“ a uveď hlavní fakta. | **Seznam premiérů Srbska**
Toto je seznam předsedů vlády Srbska od roku 1804 do současnosti. Srbský stát (1804–1918) Za povstvání Jovan Protić (1805), v zastoupení Mateja Nenadović (1805–1806) Karađorđe Petrović (1806–1808) Mladen Milovanović (1808–1809) Jakov Nenadović (1809–1811) Karađorđe Petrović (1811–1813) Srbsk... | null | |
Stručně shrň článek o tématu „Autobusová doprava Kohout“ a uveď hlavní fakta. | **Autobusová doprava Kohout**
Autobusová doprava Kohout s. r. o. je malá dopravní společnost z Karlovy Vsi na Rakovnicku, která provozuje dvě místní autobusové linky (310202 a 310203) v okolí Křivoklátu, s provozem několika spojů pouze v pracovních dnech. V roce 2009 byla tato firma zmiňována jako jeden ze tří autobus... | null | |
Write a SQL query to get the titles and release dates of all the movies from the Movies table released in the year 2019. | SELECT title, release_date FROM Movies WHERE YEAR(release_date) = 2019 | null | |
Write a C++ program to rotate an array by 'k' positions. | int arr[] = {1, 2, 3, 4, 5}; int k = 2; | #include<iostream> using namespace std; void reverseArray(int arr[], int start, int end) { while (start < end) { int temp = arr[start]; arr[start] = arr[end]; arr[end] = temp; start++; end--; } } void leftRotate(int arr[], int d, int size) { reverseArray(arr, 0, d-1); reverseArray(arr, d, size-1); reverseArray(arr, 0, ... | null |
Select the overlapping elements between two lists | list1 = [1, 2, 3, 4, 5, 6] list2 = [3, 4, 5, 6, 7, 8] | [3, 4, 5, 6] | null |
Summarize key facts about „Taj Mahal Marathon“ clearly and accurately. | **Taj Mahal Marathon**
The Taj Mahal Marathon is a long-distance running event — held in Agra, India, every year. Its being held since June 14 2013 and it takes place every year. Overview The race was founded by India's youngest ultra marathon runner and an engineer, Gaurav Madan. Set over a largely flat course around... | null | |
What is an example of a bubble sort algorithm? | Example of a bubble sort algorithm: void bubble_sort(int arr[], int n) { int i, j; for (i = 0; i < n-1; i++) for (j = 0; j < n-i-1; j++) if (arr[j] > arr[j+1]) swap(&arr[j], &arr[j+1]); } | null | |
Summarize key facts about „Funker Vogt“ clearly and accurately. | **Funker Vogt**
Funker Vogt () is a German electronic-industrial music project with an aggressive style, formed by vocalist Jens Kästel and programmer Gerrit Thomas in 1995. Other members of the band are keyboardist/manager Björn Böttcher, live guitarist Frank Schweigert and lyricist Kai Schmidt. The name of the band ... | null | |
Summarize key facts about „Fred Paoli“ clearly and accurately. | **Fred Paoli**
Alfred Frank "Fred" Paoli (born February 18, 1954) is an American former rugby union and American football player who played prop for the United States men's rugby national team and college football for Colorado State as a defensive lineman. During his rugby career, Paoli played 20 test matches for the ... | null | |
Write a code to find the cost of the cheapest product from a list of products in JSON format. | [ { "Name": "Biscuit", "Price": 3.00 }, { "Name": "Cake", "Price": 2.50 }, { "Name": "Chocolate", "Price": 4.00 } ] | """ Find the cost of the cheapest product from a list of products in JSON format """ import json def find_cheapest_product(products): cheapest_product = (None, float('inf')) for product in products: if product['Price'] < cheapest_product[1]: cheapest_product = (product['Name'], product['Price']) return cheapest_product... | null |
Create an algorithm to find the longest continuous increasing subarray. | def longestIncreasingSubarray(arr): n = len(arr) max_len = 1 curr_len = 1 for i in range(1, n): #if current element is greater than its previous element if (arr[i] > arr[i-1]): curr_len += 1 else: if (curr_len > max_len): max_len = curr_len curr_len = 1 #Compare the length of the last #subarray with max_len and #update... | null | |
Summarize key facts about „FEB“ clearly and accurately. | **FEB**
FEB may refer to: February, as an abbreviation for the second month of the year in the Gregorian calendar Brazilian Expeditionary Force (Portuguese: ) Federal Executive Boards, in the US Federation of Enterprises in Belgium Spanish Basketball Federation (Spanish: ) Federatie Eredivisie Basketball, which runs t... | null | |
Introduce a condition to change the background color of a given HTML page to green when the user clicks a button. | <script> function changeBackgroundColor() { document.body.style.backgroundColor = 'green'; } </script> <button onclick="changeBackgroundColor()">Change background color!</button> | null | |
null | null | null | Unix
UNIX () je v informatice ochranná známka operačního systému vytvořeného v Bellových laboratořích americké firmy AT&T v roce 1969. Většina současných operačních systémů je unixovými systémy různou měrou inspirována. Samotný UNIX byl inspirován komplikovaným systémem Multics, ale snažil se o zjednodušení. Na rozdíl... |
Identify the Python command to search a string for a specific keyword. | string.find('keyword') or string.index('keyword') | null | |
Update the values of the variables x, y and z using the given expression. | x=1, y=2, z=3, expression: x+2*y-z | x = 3, y = 2, z = 3 | null |
Stručně shrň článek o tématu „Mikael Agricola“ a uveď hlavní fakta. | **Mikael Agricola**
Mikael Agricola (1510, Pernaja – 9. dubna 1557, Kuolemajärvi) byl finský kněz, biskup, církevní reformátor, básník, tvůrce spisovné finštiny, jemuž je přezdíváno „otec finské literatury“. V latinských spisech se označuje jako Michael Olai Agricola. Byl prvním biskupem v Turku, který se oženil a kte... | null | |
Write a CSS selector that highlights all the <div> elements with a class name of "container". | div.container { background-color: yellow; } | null | |
Count the number of vowels in a sentence. | "Hi there, how are you doing?" | int countVowels = 0; String sentence = "Hi there, how are you doing?"; for (int i = 0; i < sentence.length(); i++) { if (sentence.charAt(i) == 'a' || sentence.charAt(i) == 'e' || sentence.charAt(i) == 'i' || sentence.charAt(i) == 'o' || sentence.charAt(i) == 'u') { countVowels++; } } System.out.println("Number of vowel... | null |
null | null | null | Onward (1858 sternwheeler)
Onward was an early steamboat on the Willamette River built at Canemah, Oregon in 1858. This vessel should not be confused other steamboats named Onward, including in particular the Onward of 1867, a similar but somewhat smaller vessel built at Tualatin Landing, which operated on the Tualati... |
Stručně shrň článek o tématu „Molekulová fyzika“ a uveď hlavní fakta. | **Molekulová fyzika**
Molekulová fyzika (též molekulární fyzika) je část fyziky, která zkoumá látky na úrovni atomů a molekul a vlastnosti látek bezprostředně vycházející z jejich struktury. Snaží se najít vztahy mezi makroskopickým chováním látky na základě vzájemného působení a pohybu velkého množství částic, ze kte... | null | |
null | null | null | Square de la place d'Italie
Square de la place d'Italie je square v Paříži v 13. obvodu. Jeho rozloha činí 4778 m². Poloha Square se nachází uprostřed kruhového objezdu v centru náměstí Place d'Italie, po kterém je pojmenováno. Na square je uprostřed vodní nádrž a bronzová socha maršála Alphonse Juina (1888-1967) z ro... |
Create a SQL query that combines two tables ``A`` and ``B``. | Table A id name 1 car 2 bike Table B id owner 1 Sam 2 John | SELECT A.id, A.name,B.owner FROM A JOIN B ON A.id = B.id; | null |
How would you store the values of this array of dictionaries in a database? | [ {'name': 'John', 'age': 28}, {'name': 'Marry', 'age': 27}, {'name': 'David', 'age': 30} ] | The values of the array of dictionaries can be stored in a database using an SQL query. The query would create a table with columns for each key in the dictionaries and then store the values in their respective columns. For each dictionary, an INSERT query would be run to add the values of that dictionary to database. | null |
Implement `retry` in Python (zavolá fn max n-krát při výjimce). | ```python import time def retry(fn, n=3, delay=0.1): last = None for _ in range(n): try: return fn() except Exception as e: last = e time.sleep(delay) raise last ``` | null | |
Summarize key facts about „Jason Forbes“ clearly and accurately. | **Jason Forbes**
Jason Forbes (born 27 October 1990) is a British actor, writer, comedian, impressionist, and TV presenter. He is best known for the CITV series Horrible Science; The Mash Report on BBC Two; as PC Peasey in the Professor Branestawm movies on BBC One; and as a member of the award-winning sketch trio 'Da... | null | |
Stručně shrň článek o tématu „Kárník“ a uveď hlavní fakta. | **Kárník**
Příjmení Kárník (Kárníková) nosí více osob: Jan Kárník (Josef Svítil; 1870–1958), český spisovatel a lékař Jana Kárníková (* 1981) – česká atletka ve vrhu koulí Ludmila Kárníková (1932–1963), česká historička Pavel Kárník (* 1960) – český politik a knihkupec Vít Kárník (1926–1994), český geofyzik a seismolo... | null | |
Spočítej: 19 + 14 = ? | 19 + 14 = 33 | null | |
Kolik je 26 × 6? | 26 × 6 = 156 | null | |
Hey | Ahoj! Jak ti můžu pomoct? | null | |
Write a regular expression to match any three-digit number. | \d{3} | null | |
Summarize key facts about „James Kennedy (Canadian politician)“ clearly and accurately. | **James Kennedy (Canadian politician)**
James Kennedy (May 14, 1869 – April 23, 1915) was a merchant and political figure in Prince Edward Island, Canada. He represented 4th Prince in the Legislative Assembly of Prince Edward Island from 1908 to 1915 as a Conservative member. He was born in Breadalbane, Prince Edward ... | null | |
Summarize key facts about „Pontoon bridge“ clearly and accurately. | **Pontoon bridge**
A pontoon bridge (or ponton bridge), also known as a floating bridge, uses floats or shallow-draft boats to support a continuous deck for pedestrian and vehicle travel. The buoyancy of the supports limits the maximum load that they can carry. Most pontoon bridges are temporary and used in wartime an... | null | |
Construct a function that will remove all special characters in a given string in JavaScript. | $sample!%string!* | function removeSpecialChars(str) { return str.replace(/[^\w\s]/gi, ''); } console.log(removeSpecialChars('$sample!%string!*')); | null |
Stručně shrň článek o tématu „Lesoparkovaja (stanice metra v Moskvě)“ a uveď hlavní fakta. | **Lesoparkovaja (stanice metra v Moskvě)**
Lesoparkovaja () je stanice moskevského metra na Butovské lince. Byla zprovozněna v rámci úseku Ulica Stakaločavskaja - Bitcevskij park. Byla pojmenována podle toho, že se nachází v těsné blízkosti dvou přírodních území – Bitcevského parku a Butovského lesoparku. Charakter st... | null | |
Develop a program that takes in two numbers and returns the bigger one. | 2 and 3 | def max_num(a,b): if a > b: return a else: return b | null |
Parse the following JSON objects, convert all the values to strings and create a dictionary named "parsed_data". | { "name": "John Doe", "age": 33, "locations": ["NYC", "LA"] } | import json parsed_data = {} data = { "name": "John Doe", "age": 33, "locations": ["NYC", "LA"] } for key, val in data.items(): parsed_data[key] = str(val) | null |
Calculate the volume of a cuboid given the edges. | Length = 4 Width = 5 Height = 2 | def volume_of_cuboid(length, width, height): volume = length * width * height return volume | null |
Identify which line of code contains a syntax error? | def getFibonacciNumber(n): a, b = 0, 1 for i in range 0, n a, b = b, a + b return a | The line "for i in range 0, n" contains a syntax error. The syntax for the for loop should be "for i in range(0, n)". | null |
Kolik je 4 × 7? | 4 × 7 = 28 | null | |
Given a list of numbers, implement a quick sort algorithm. | [7, 4, 5, 9, 1] | def quick_sort(arr): if len(arr) < 2: return arr pivot = arr[0] less = [i for i in arr[1:] if i <= pivot] greater = [i for i in arr[1:] if i > pivot] return quick_sort(less) + [pivot] + quick_sort(greater) if __name__ == '__main__': arr = [7, 4, 5, 9, 1] print(quick_sort(arr)) # Output:[1, 4, 5, 7, 9] | null |
null | null | null | Valentin Kozmič Ivanov
Valentin Kozmič Ivanov (; (19. listopadu 1934, Moskva – 8. listopadu 2011, Moskva) byl sovětský fotbalista. Hrával na pozici útočníka. S reprezentací SSSR se stal mistrem Evropy roku 1960 a na mistrovství Evropy 1964 získal stříbrnou medaili. Na obou těchto šampionátech se dostal do all-stars. Z... |
Stručně shrň článek o tématu „Roger Bernard“ a uveď hlavní fakta. | **Roger Bernard**
Roger Bernard (10. srpna 1907 – 10. srpna 1997) byl francouzský spisovatel a stylista. Psal v esperantu, jeho původní díla jsou básně Almenaŭ bukedeto a další původní dílo Raymond Schwartz, lia vivo kaj verkaro. Dále přeložil Bela la indiferentulo a Homa voĉo od Jeana Cocteaua, a komedie La ŝipego te... | null | |
Stručně shrň článek o tématu „Náboženství“ a uveď hlavní fakta. | **Náboženství**
Náboženství, religie je moderní souhrnný pojem pro velmi rozmanité soustavy jednání, symbolů a představ, jimiž různá společenství a církve vyjadřují reálný, životní, osobní vztah k transcendentní (smyslové vnímání přesahující) zkušenosti či transcendentním představám. Každé náboženství má společné ritu... | null | |
Stručně shrň článek o tématu „Valo“ a uveď hlavní fakta. | **Valo**
Příjmení Valo nebo Vallo náleží více osobnostem: Jozef Valo (normalizační politik) (1921–??) – slovenský politik KSS a poslanec SN FS Jozef Vallo (též Valo; 1898–1978) – poslanec Národního shromáždění za KSČ Vasil Valo (1921–1979) – generál ČSLA, politik KSČ ukrajinské respektive rusínské národnosti Ville Val... | null | |
Use CSS to enlarge the font size of a paragraph of text to 16px. | <p>This is a paragraph of text.</p> | <p style="font-size:16px;">This is a paragraph of text.</p> | null |
Python: IndentationError | Špatné odsazení — míchej jen mezery (4) nebo jen taby, ne obojí. Bloky pod `if/for/def` musí být odsazené. | null | |
Read the given date string in the specified format and print out the day of the week. | Date String: 03/02/2020 Format: mm/dd/yyyy | Thursday | null |
Write a SQL query to identify the employees whose salary is greater than $50k. | SELECT * FROM Employees WHERE Salary > 50000; | null | |
Write a code that sorts an array in descending order. | [7,4,1,2] | arr = [7,4,1,2] arr.sort(reverse=True) | null |
Stručně shrň článek o tématu „Josef Sodomka“ a uveď hlavní fakta. | **Josef Sodomka**
Josef Sodomka (7. června 1904 Vysoké Mýto – 9. února 1965 Vysoké Mýto) byl československý podnikatel, designér a majitel společnosti Sodomka, výrobce užitkových i luxusních automobilových karoserií. Mládí Otec Josefa Sodomky založil v roce 1896 firmu J. Sodomka, která vyráběla především kočáry. Mladý... | null | |
null | null | null | Nindi people
The Nindi are an astari putri group based in southern Tanzania, in the Songea District of Ruvuma Region close to the border with Mozambique. Ethnologue estimates that the Nindi population is now only 100 people . The group is virtually unknown outside Songea. References Ethnic groups in Tanzania Indigenou... |
What are the differences between data types int and float in Java? | In Java, data types int and float represent different levels of precision: int is for whole numbers, while float is for decimal numbers. Int has a 32-bit size, which allows for whole numbers from -2^31 to 2^31-1. Float is 32-bit and can refer to decimal values of up to seven digits. Float can also be expressed in scien... | null | |
Summarize key facts about „Dominion Bridge Company“ clearly and accurately. | **Dominion Bridge Company**
Dominion Bridge Company Limited was a Canadian steel bridge constructor originally based in Lachine, Quebec. From the core business of steel bridge component fabrication, the company diversified into related areas such as the fabrication of holding tanks for pulp mills and skyscraper framin... | null | |
Find two missing numbers in an array in C++. | arr = [1, 3, 6, 5, 8, 9, 10] | #include <algorithm> #include <iostream> #include <vector> std::vector<int> find_missing_numbers(const std::vector<int>::iterator begin, const std::vector<int>::iterator end) { int n = end - begin; int total_sum = (n + 2)*(n + 1)/2; int missing_sum = 0; for (auto it = begin; it != end; ++it) { missing_sum += *it; } int... | null |
Summarize key facts about „Change of Pace“ clearly and accurately. | **Change of Pace**
Change of Pace is an album by jazz saxophonist Johnny Griffin which was recorded in 1961 and released on the Riverside label. Reception The contemporaneous DownBeat reviewer commented that the "ensemble blend creates a fresh sound which, by itself, gives several of these pieces a texture sufficientl... | null | |
null | null | null | 1953 Brown Bears football team
The 1953 Brown Bears football team was an American football team that represented Brown University as an independent during the 1953 college football season. In their third season under head coach Alva Kelley, the Bears compiled a 3–5–1 record, but outscored their opponents 134 to 127. G... |
Spočítej 23×5 | 23 × 5 = 115 | null | |
Extend the following python code to include a new field 'type' with the value 'dog'. | animal = { 'name': 'Rex', 'age': 10 } | animal = { 'name': 'Rex', 'age': 10, 'type': 'dog' } | null |
Write a query to find the number of students enrolled in each class each semester. | Table Name: enroll Fields: enroll_id, student_id, class_id, semester | SELECT class_id, semester, COUNT(student_id) FROM enroll GROUP BY class_id, semester; | null |
Spočítej 11×10 | 11 × 10 = 110 | null | |
Summarize key facts about „Puerto Carrillo“ clearly and accurately. | **Puerto Carrillo**
Puerto Carrillo is a district of the Hojancha canton, in the Guanacaste province of Costa Rica. History Puerto Carrillo was created on 23 July 1999 by Decreto Ejecutivo 28027-G. Segregated from Hojancha. Geography Puerto Carrillo has an area of km² and an elevation of metres. Situated along the Pac... | null | |
Proč `if x = 1` v Pythonu nefunguje? | V Pythonu je `=` přiřazení, ne porovnání. Použij `==` pro rovnost: `if x == 1:`. Od 3.8 existuje walrus `:=` pro přiřazení ve výrazech, ale ne místo `==` v klasické podmínce. | null | |
Using the SQL language, write a query to sum up the total population of a list of cities. | City Population New York 8,398,748 Los Angeles 3,976,322 Chicago 2,705,994 | SELECT SUM(population) FROM ( SELECT population FROM cities WHERE city IN ('New York', 'Los Angeles', 'Chicago') ) total; | null |
null | null | null | Lufia: The Legend Returns
Lufia: The Legend Returns, known as in Japan, is a role-playing video game for the Game Boy Color developed by Neverland and published by Taito, Natsume Inc., and Ubi Soft in Japan, North America, and Europe, respectively, in 2001. It is the third game in the Lufia series and the first one to... |
Write a predicate to check for valid email syntax. | def is_valid_email(string): return re.match("[^@]+@[^@]+\.[^@]+", string) != None | null | |
Generate a python code to remove all the occurrences of the element x from a list y. | def remove_x(x, y): while x in y: y.remove(x) return y | null | |
Kolik je 4 × 8? | 4 × 8 = 32 | null | |
Stručně shrň článek o tématu „Jägalský vodopád“ a uveď hlavní fakta. | **Jägalský vodopád**
Jägalský vodopád (estonsky Jägala juga) je jeden z největších estonských vodopádů. Nachází se na dolním toku řeky Jägale necelých 5 km od jejího ústí na území obce Jõelähtme, přibližně 25 km východně od Tallinnu. Základní údaje Vodopád vznikl na přechodu řeky Jägaly přes Baltský klint. Má výšku 8,... | null | |
Suggest a better way to store a series of strings for fast lookup | strings = ["apple", "strawberry", "banana"] | A better way to store a series of strings for fast lookup is to use a hash table. A hash table is a data structure that uses hashing to store data and allows for efficient lookups. To use a hash table to store the strings, we can create a mapping between each string and a unique key. For example, we can map "apple" to ... | null |
Summarize key facts about „Hans Vintler“ clearly and accurately. | **Hans Vintler**
Hans Vintler (died 1419) was a late medieval Tyrolean poet, author of Die Pluemen der Tugent ("The Flowers of Virtue", ed. Zingerle 1874), a didactic poem of 10,172 lines. He was a member of local nobility, from a family originating in Vintl in the Puster Valley. He is first recorded in 1407 as joinin... | null | |
Create a MySQL query to group a table of student records by their country of origin. | SELECT country, COUNT(*) FROM student_records GROUP BY country; | null | |
Kolik je 6 × 12? | 6 × 12 = 72 | null | |
Stručně shrň článek o tématu „Kamiš růžkatý“ a uveď hlavní fakta. | **Kamiš růžkatý**
Kamiš růžkatý (Anhima cornuta) je pták přibližné velikosti krocana žijící v bažinatých tropických oblastech Jižní Ameriky. Je jediným druhem monotypického rodu kamiš z čeledi kamišovitých. Jeho hnízdiště na západ od And se nacházejí v Kolumbii, Ekvádoru a Peru, na východ ve Venezuele, Brazílii, Bolív... | null | |
Stručně shrň článek o tématu „Raněný“ a uveď hlavní fakta. | **Raněný**
Raněný je samostatně stojící socha muže od Jana Štursy z let 1916–1921. Patří k nejvýznamnějším Štursovým sochám k nejlepším českým pomníkům obětem první světové války. Námět a dílo První světová válka přinesla nezměrné utrpení i ztráty na lidských životech. Někteří umělci, kteří byli přímými účastníky válk... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.