instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Generate a code in C to check if a sentence is a palindrome. | char str[] = "amanama" | #include <stdio.h> #include <string.h> // Function to check if a string is palindrome bool isPalindrome(char str[]) { // Start from leftmost and rightmost corners of str int l = 0; int h = strlen(str)-1; // Keep comparing characters while they are same while (h > l) { if (str[l++] != str[h--]) return false; } return tr... | null |
Kolik je 10 × 5? | 10 × 5 = 50 | null | |
Stručně shrň článek o tématu „Mark Woodforde“ a uveď hlavní fakta. | **Mark Woodforde**
Mark Woodforde (* 23. září 1965, Adelaide) je bývalý australský profesionální tenista, specializující se na čtyřhru, v níž dosáhl nejlepších výsledků. Tenisová kariéra V mužské čtyřhře získal dvanáct titulů z Grand Slamu a dalších pět ve smíšené čtyřhře. Společně s krajanem Toddem Woodbridgem, přezd... | null | |
Stručně shrň článek o tématu „Square (slang)“ a uveď hlavní fakta. | **Square (slang)**
Square (čtverec) je anglický slang, který používáme, když chceme mluvit o osobě, která je považována za nudnou, pevně konvenční a nedotčenou současnými trendy. Původně slovo označovalo osobu, která byla upřímná, spravedlivá a věrná. Při vzestupu jazzové hudby se termín změnil z komplimentu na urážku... | null | |
null | null | null | United Nations Security Council Resolution 343
United Nations Security Council Resolution 343, adopted on December 14, 1973, after reaffirming previous resolutions on the topic, and noting recent encouraging developments, the Council extended the stationing in Cyprus of the United Nations Peacekeeping Force in Cyprus ... |
When were you trained / fine-tuned? | My latest fine-tune was on July 23, 2026 (2026-07-23). My broader knowledge comes from the base model pretraining. | null | |
HTML form does nothing | Chybí `action`/`method`, JS preventDefault bez odeslání, nebo button `type="button"` místo `submit`. | null | |
Modify the given C# program to count all the vowels in a given string. | string str = "This is a sample string."; | string str = "This is a sample string."; int count = 0; foreach (char ch in str) { switch (ch) { case 'a': case 'e': case 'i': case 'o': case 'u': count++; break; } } Console.WriteLine("Number of vowels in the given string: " + count); | null |
null | null | null | Valeologie
Valeologie (z lat. valeo = být schopen, být silný, vynikat) je interdisciplinární nauka o psychosomatické zdatnosti člověka jako cesty k úspěchu, který je prospěšný ostatním lidem. Valeologie se zabývá otázkou jak zdatnost získat, jak si ji udržet, jak ji rozvíjet a zvyšovat a jak ji smysluplně využívat ku ... |
Refactor the following Java code to improve readability and dynamism. | public class Movies { private int movieCount = 5; private String genre = "action"; public void printMovieDetails() { System.out.println("The movie count is " + movieCount); System.out.println("The genre is " + genre); } } | public class Movies { private int movieCount; private String genre; public Movies(int movieCount, String genre) { this.movieCount = movieCount; this.genre = genre; } public void printMovieDetails() { System.out.println("The movie count is " + movieCount); System.out.println("The genre is " + genre); } } | null |
null | null | null | Valivý odpor
Valivý odpor (nepřesně valivé tření, neboť se stýkající se povrchy navzájem netřou) je odpor, který působí na těleso kruhového průřezu při jeho valivém pohybu po podložce. Fyzikální princip V místě kontaktu pružného (plného) válcového tělesa s pružnou rovinnou podložkou dochází vlivem jejich deformace kol... |
Create a MySQL query to list all the cars in the database with the make, model, and year. | SELECT make, model, year FROM cars; | null | |
null | null | null | Our Lady of Good Counsel High School (Maryland)
Our Lady of Good Counsel High School is a private, Catholic, college-preparatory, coeducational high school in Olney, Maryland, an unincorporated area of Montgomery County, Maryland. It is located in the Roman Catholic Archdiocese of Washington. Operated under the sponso... |
Summarize key facts about „Westbury Formation“ clearly and accurately. | **Westbury Formation**
The Westbury Formation is a geological formation in England, one of the Penarth Group. It dates back to the Rhaetian. The formation is named after the village of Westbury-on-Severn in Gloucestershire. The remains of giant shastasaurids are known from the formation. Vertebrate fauna Avalonianus P... | null | |
Create a shell script to list all available printer models. | #!/bin/bash lpr -P | null | |
Summarize key facts about „Anna Skarbek“ clearly and accurately. | **Anna Skarbek**
Anna Skarbek (born 1976) is an Australian businesswoman and former investment banker. In 2009 she became the executive director of ClimateWorks Australia, a non-profit group which develops projects to reduce carbon emissions. Under her directorship, the company was awarded a Eureka Prize in 2010 for d... | null | |
Stručně shrň článek o tématu „Kostel Nejsvětější Trojice (Velká Úpa)“ a uveď hlavní fakta. | **Kostel Nejsvětější Trojice (Velká Úpa)**
Kostel Nejsvětější Trojice je římskokatolický, orientovaný filiální, bývalý farní kostel ve Velké Úpě. Patří do farnosti Janské Lázně. Od 23. října 2000 je chráněn jako kulturní památka České republiky. Historie Když v roce 1779 navštívil obec císař Josef II., musel jet z Mar... | null | |
Write a Python class that implements a sorted list. | No input. | class SortedList: def __init__(self): self.items = [] def add(self, item): i = 0 while i < len(self.items) and self.items[i] < item: i += 1 self.items.insert(i, item) def remove(self, item): i = 0 while i < len(self.items) and self.items[i] != item: i += 1 if i < len(self.items): del self.items[i] def remove_at(self, i... | null |
Edit the following Python code to add error handling for invalid inputs. | def area_triangle(base,height): pass | def area_triangle(base,height): if base == 0 or height == 0: raise ValueError("Base and height should not be zero.") else: return 0.5 * base * height | null |
Write a code in Python that will take a string as input and return it with the words in reverse order. | def reverseWords(s): words = s.split(" ") words.reverse() return " ".join(words) | null | |
Create a React component that displays the text "Hello World!". | import React from 'react'; const HelloWorld = () => ( <h1>Hello World!</h1> ); export default HelloWorld; | null | |
Summarize key facts about „List of Pakistan Twenty20 International cricketers“ clearly and accurately. | **List of Pakistan Twenty20 International cricketers**
A Twenty20 International (T20I) is an international cricket match between two representative teams, each having T20I status, as determined by the International Cricket Council (ICC), and is played under the rules of Twenty20 cricket. The first such match was playe... | null | |
Summarize key facts about „2021 World Wrestling Championships – Men's Greco-Roman 63 kg“ clearly and accurately. | **2021 World Wrestling Championships – Men's Greco-Roman 63 kg**
The men's Greco-Roman 63 kilograms is a competition featured at the 2021 World Wrestling Championships, and was held in Oslo, Norway on 9 and 10 October. This Greco-Roman wrestling competition consists of a single-elimination tournament, with a repechage... | null | |
Create a MySQL query to get the name corresponding to the highest id. | SELECT name FROM table ORDER BY id DESC LIMIT 1 | null | |
null | null | null | Andrew Airlie
Andrew Airlie (* 18. září 1961 Glasgow) je kanadský herec původem ze Skotska. Profesně aktivní je od roku 1990. Vytvořil množství filmových rolí i rolí v televizních seriálech. Hrál rovněž ve všech dílech filmové trilogie Padesát odstínů (Padesát odstínů šedi, Padesát odstínů temnoty a Padesát odstínů sv... |
Create a MySQL query that creates a table with two columns, one for id and one for name. | CREATE TABLE table_name ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); | null | |
Stručně shrň článek o tématu „Kostel svaté Kunhuty (Vedrovice)“ a uveď hlavní fakta. | **Kostel svaté Kunhuty (Vedrovice)**
Kostel svaté Kunhuty je farní kostel v římskokatolické farnosti Vedrovice, nachází se v centru obce Vedrovice uprostřed hřbitova. Kostel je jednolodní stavba s gotickým jádrem, později byla v 19. století přestavěna. Kostel je chráněn jako kulturní památka České republiky. Historie ... | null | |
Stručně shrň článek o tématu „Miroslav Štěpánek (historik)“ a uveď hlavní fakta. | **Miroslav Štěpánek (historik)**
Miroslav Štěpánek (10. ledna 1934 Liberec – 2005) byl český historik, archeolog a encyklopedista. Život Jakožto historik a archeolog se věnoval době raným středověkem a problematikou osídlení (Opevněná sídliště 8.–12. století ve střední Evropě, 1965). Důležitý byl i jeho zájem o teoret... | null | |
Implementuj v Pythonu fibonacci iterative. | ```python def fib(n: int) -> int: if n < 0: raise ValueError a, b = 0, 1 for _ in range(n): a, b = b, a + b return a ``` | null | |
Stručně shrň článek o tématu „Pneumatické zařízení“ a uveď hlavní fakta. | **Pneumatické zařízení**
Pneumatické zařízení je mechanický stroj, který využívá tlaku plynu k přenesení nebo zvětšení síly. Pneumatická zařízení využívají často i rozdílu mezi atmosférickým tlakem a tlakem plynu (přetlak nebo podtlak), příp. proudění plynu. Princip pneumatických zařízení spočívá v tom, že stlačením p... | null | |
Summarize key facts about „Percival River“ clearly and accurately. | **Percival River**
The Percival River is a river of the Canterbury region of New Zealand's South Island. It flows southwest from its origins in the Hanmer Range to the northeast of Hanmer Springs, reaching the Waiau River south of the town. See also List of rivers of New Zealand References Rivers of Canterbury, New Ze... | null | |
Rewrite the following function in JavaScript. | def sum_of_two_numbers(a, b): return a + b | function sumOfTwoNumbers(a, b) { return a + b; } | null |
Design an algorithm in JavaScript to find maximum element within an array. | [4,7,2,1,0,6,5] | function findMax(arr) { let max = arr[0]; // Loop through array elements // and compare with max for (let i = 1; i < arr.length; i++) if (arr[i] > max) max = arr[i]; // return max element return max; } // let arr = [4,7,2,1,0,6,5] // console.log(findMax(arr)) # returns 7 | null |
Summarize key facts about „Shadmorad Mahalleh, Mazandaran“ clearly and accurately. | **Shadmorad Mahalleh, Mazandaran**
Shadmorad Mahalleh (, also Romanized as Shādmorād Maḩalleh; also known as Shāhmorād Maḩalleh) is a village in Chehel Shahid Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 313, in 79 families. References Popu... | null | |
Napiš bash skript: záloha složky do tar.gz s datem. | ```bash #!/usr/bin/env bash set -euo pipefail SRC=${1:-.} DST="backup-$(date +%Y%m%d-%H%M%S).tar.gz" tar -czf "$DST" "$SRC" echo "Hotovo: $DST" ``` | null | |
Napiš JS: vrať pole čísel 1..9. | ```javascript const nums = Array.from({length: 9}, (_, i) => i + 1); ``` | null | |
null | null | null | Kaup–Kupershmidt equation
The Kaup–Kupershmidt equation (named after David J. Kaup and Boris Abram Kupershmidt) is the nonlinear fifth-order partial differential equation It is the first equation in a hierarchy of integrable equations with the Lax operator . It has properties similar (but not identical) to those of th... |
Spočítej 10×7 | 10 × 7 = 70 | null | |
Create a class named "Car" to store information about a car's make, model and year. | class Car: def __init__(self, make, model, year): self.make = make self.model = model self.year = year | null | |
Create a function which takes two parameters and returns true if the second parameter is a power of the first parameter. | x = 16 y = 4 | def is_a_power_of(x, y): if x == y: return True if x > y and y != 0: return is_a_power_of(x/y, y) else: return False power_of = is_a_power_of(x, y) | null |
Summarize key facts about „Kottabos“ clearly and accurately. | **Kottabos**
Kottabos () was a game of skill played at Ancient Greek and Etruscan symposia (drinking parties), especially in the 6th and 5th centuries BC. It involved flinging wine-lees (sediment) at a target in the middle of the room. The winner would receive a prize (κοττάβιον or "kottabion"), comprising cakes, swee... | null | |
Create a data structure suitable for storing a list of scores for a game. | scores = [] # Function to add a new score to the scores list def add_score(score): scores.append(score) # Function to display all the scores in the scores list def display_scores(): for score in scores: print(score) | null | |
null | null | null | A-101
A-101 (SA-6, Saturn-Apollo 6) byla orbitální mise nosné rakety Saturn I. Byl to první let s maketou kosmické lodi Apollo. Cíle Prvních pět letů rakety Saturn byly testy, určené k ověření funkčnosti nosiče. Mise A-101 však měla praktický úkol spočívající v testování vybavení pro program Apollo. Maketa lodi Apollo... |
Suggest a way to identify and remove duplicate elements from the list. | numbers = [2, 3, 2, 5, 8, 3, 10] | # Method 1 - Using Set numbers_set = set(numbers) numbers_set = list(numbers_set) print(numbers_set) # Output: [2, 3, 5, 8, 10] # Method 2 - Using Loop no_duplicate = [] for num in numbers: if num not in no_duplicate: no_duplicate.append(num) print(no_duplicate) # Output: [2, 3, 5, 8, 10] | null |
Write a code snippet for generating a random number between 1 and 100. | import random randomNumber = random.randint(1, 100) | null | |
Proč tento kód padá? ```python xs = [1,2,3] for i in range(4): print(xs[i]) ``` | Index 3 neexistuje. `range(len(xs))` nebo iteruj `for x in xs`. | null | |
Děkuju | Rádo se stalo. | null | |
Create a CSS rule to set the div width to 100px. | div { width: 100px; } | null | |
Summarize key facts about „Odd Job Jack“ clearly and accurately. | **Odd Job Jack**
Odd Job Jack is a Canadian adult animated sitcom starring Don McKellar, about one man's misadventures in temporary employment. Seen on and produced for The Comedy Network, a cable specialty channel, Adult Swim and MuchMusic in Latin America, 2x2 in Russia, Hulu in the United States, and MusiquePlus in... | null | |
null | null | null | Mistrovství světa v atletice 2009 – Muži vrh koulí
Závod ve vrhu koulí mužů na Mistrovství světa v atletice 2009 se uskutečnil 15. srpna. Zvítězil v něm americký atlet Christian Cantwell výkonem 22,03 m. Zdařilý úvod měl Christian Cantwell, který se od prvního pokusu usadil na čele. Zejména úřadující olympijský šampio... |
Stručně shrň článek o tématu „Goregrind“ a uveď hlavní fakta. | **Goregrind**
Goregrind je hudební odnož brutal death metalu a grindcoru. Charakteristika Nejčastěji se v tomto hudebním žánru vyskytují elektrické kytary, bicí, baskytary a zpěvák, jenž vydává vokály napodobující prasata (pig squeal), screaming, growling a mnoho dalších technik. V některých kapelách bývá buď více zpě... | null | |
Napiš SQL: vyber 7 nejnovějších objednávek z tabulky orders. | ```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 7; ``` | null | |
Construct a GraphQL query to show all blog posts. | { allBlogPosts { id title author content createdAt modifiedAt } } | null | |
null | null | null | Mixed team at the 1900 Summer Olympics
Early Olympic Games allowed for individuals in a team to be from different nations. The International Olympic Committee (IOC) now groups their results together under the mixed team designation (IOC code ZZX). During the 1900 Summer Olympics, several teams comprising international... |
null | null | null | Forget
Forget may refer to: Forgetting, an apparent loss or modification of information already encoded and stored in an individual's long-term memory People with the surname Nota bene: this surname is pronounced fɔʁʒɛ in French, and is not to be confused with the English verb fɔɹˈɡɛt. Amédée E. Forget (1847–1923), Ca... |
Stručně shrň článek o tématu „Anton Kozman“ a uveď hlavní fakta. | **Anton Kozman**
Anton Kozman (16. května 1937 Moldava nad Bodvou – 31. března 2011 Prešov) byl slovenský fotbalista, který nastupoval jako útočník a záložník. Jeho bratrancem byl fotbalista Ján Czeszciczky. Sportovní kariéra Začínal v Moldavě nad Bodvou. V československé lize hrál za Jednotu Košice, Duklu Pardubice, ... | null | |
Write a Python code to calculate the number of unique combinations of three digits from 0 to 9. | def combinations(n, k): from itertools import combinations return len(list(combinations(range(n), k))) comb = combinations(10, 3) print(comb) | null | |
Kolik je 24 × 3? | 24 × 3 = 72 | null | |
Create a program to convert the input sentence to Pig Latin. | I am a computer programmer | """ Create a program to convert the input sentence to Pig Latin. """ def pig_latin(sentence): words = sentence.split() new_words = [] for word in words: if word[0] in 'aeiou': new_words.append(word + 'ay') else: new_words.append(word[1:] + word[0] + 'ay') return ' '.join(new_words) if __name__ == '__main__': print(pig_... | null |
Create a function that takes in two integers and returns the greatest common divisor (g.c.d). | def gcd(a, b): if a == 0: return b return gcd(b % a, a) | null | |
Develop an algorithm to traverse a linked list in a reverse order. | def traverseReverse(head): if head is None: return stack = [] curr = head while curr is not None: stack.append(curr) curr = curr.next while len(stack) > 0: curr = stack.pop() print(curr.val) | null | |
Explain how to use selectors and filters in CSS. | Selectors are used to target specific elements in an HTML document, while filters are used to apply style rules to these elements. Selectors are identified by their attribute like ids, classes, and tags, while filters are indicated by attributes such as color, font size, and display type. Selectors commonly utilize com... | null | |
What is 18 - 3? | 18 - 3 = 15 | null | |
Stručně shrň článek o tématu „Stade Olympique Yves-du-Manoir“ a uveď hlavní fakta. | **Stade Olympique Yves-du-Manoir**
Stade Olympique Yves-du-Manoir je víceúčelový stadion ve městě Colombes u Paříže, sloužící zejména pro fotbal, ragby a atletiku. Pojme 14 000 diváků. Otevřen byl v roce 1907 a byl ústředním dějištěm Letních olympijských her 1924. Při Letních olympijských hrách v roce 2024 se zde bude... | null | |
Stručně shrň článek o tématu „Věneček“ a uveď hlavní fakta. | **Věneček**
Věneček může být: malý věnec taneční věneček – starší výraz pro jarní taneční slavnost (například: závěrečný ples sezóny, poslední slavnostní hodina tanečního kurzu, studentský věneček apod.) věneček (jídlo) – druh dezertu, cukrovinky nebo moučníku (např. krémový věneček) Věneček (Ralská pahorkatina) – kop... | null | |
Generate the Fibonacci series for the given number. | Number: 10 | [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] | null |
Stručně shrň článek o tématu „Farní sbor Českobratrské církve evangelické v Telči“ a uveď hlavní fakta. | **Farní sbor Českobratrské církve evangelické v Telči**
Farní sbor Českobratrské církve evangelické v Telči je sborem Českobratrské církve evangelické v Telči. Sbor spadá pod Horácký seniorát. Využívá kostel svatého Ducha v Telči. Původně v Dačicích (1895) a v Telči (1904) vznikly kazatelské stanice velkolhoteckého re... | null | |
Given a JSON string, try to parse it into a Python dictionary. | myJSON = '{"name":"John","age":30,"city":"New York"}' | import json myDict = json.loads(myJSON) print(myDict) | null |
Write a Python program to convert a string to a list. The string is "This is a test". | "This is a test" | """ Write a Python program to convert a string to a list. """ def string_to_list(str): return str.split() if __name__ == '__main__': str = "This is a test" print(string_to_list(str)) | null |
Stručně shrň článek o tématu „Vztažná soustava“ a uveď hlavní fakta. | **Vztažná soustava**
Vztažná (nebo také referenční) soustava je zvolená skupina těles (příp. i jediné vztažné těleso), které jsou vzájemně v klidu, anebo zadaném či známém vzájemném pohybu. Poloha a pohyb zkoumaných těles jsou určovány (vztahovány) vzhledem ke zvolené vztažné soustavě, tedy vzhledem ke zvolené skupině... | null | |
Stručně shrň článek o tématu „Questův svět“ a uveď hlavní fakta. | **Questův svět**
Questův svět (v anglickém originále World of Quest) je kanadský komediální televizní seriál, který je založen na kresleném románu a příběhu od Jasona Kruseho. Má prvky parodie na některé fantasy prvky typu kouzelnictví či souboje s meči. Režíroval ho Paul H. Brown. Seriál byl produkován společností Co... | null | |
Explain how to use unsupervised machine learning to classify the following dataset | DataSet: A (2, 3, 4) B (5, 6, 7) C (8, 9, 10) | Unsupervised machine learning methods can be used to classify the given dataset by applying clustering algorithms. Clustering algorithms group objects which are similar to each other into clusters, while also attempting to keep the clusters distinct from each other. A clustering algorithm could be used to group the giv... | null |
Napiš Python funkci: odstraní whitespace (`strip_ws`). | ```python def strip_ws(s: str) -> str: return " ".join(s.split()) ``` | null | |
Stručně shrň článek o tématu „Smrt mouchy“ a uveď hlavní fakta. | **Smrt mouchy**
Smrt mouchy je český film režiséra Karla Kachyni z roku 1976. Hlavní postava – nesmělý dospívající chlapec (Luboš Knytl) je vášnivý fotograf a má panický strach z much. Získává své první milostné zkušenosti a prožívá první lásku, ale teprve po tragické nehodě, u které je svědkem, svůj strach a ostych z... | null | |
Summarize key facts about „National Stock Exchange (Jersey City, New Jersey)“ clearly and accurately. | **National Stock Exchange (Jersey City, New Jersey)**
The National Stock Exchange (NSX) is an electronic stock exchange based in Jersey City, New Jersey. It was founded March 1885 in Cincinnati, Ohio, as the Cincinnati Stock Exchange. In 1995, it moved headquarters to Chicago, Illinois, and it was renamed the National... | null | |
Stručně shrň článek o tématu „Pilot Pen Tennis 2009 – muži“ a uveď hlavní fakta. | **Pilot Pen Tennis 2009 – muži**
Tenisový turnaj na okruhu ATP Pilot Pen Tennis 2009 se konal ve dnech 23.–29. srpna v americkém New Havenu venku na kurtech s tvrdým povrchem. Odměny činily 750,000 USD. Dvouhra Nasazení hráčů V závorce je kolo, ve kterém hráč vypadl. Všichni nasazení hráči měli v 1. kole volný los. Ce... | null | |
Write a JavaScript program to check whether two or more arrays have the same elements. | array1 = [1, 2, 3, 4]; array2 = [3, 4, 5, 6]; | function sameElementCheck(arr1, arr2) { if (arr1.length !== arr2.length) { return false; } let flag = true; arr1.forEach((elem) => { if (!arr2.includes(elem)) { flag = false; } }) return flag; } | null |
Stručně shrň článek o tématu „Miloslav Špinka“ a uveď hlavní fakta. | **Miloslav Špinka**
Miloslav Špinka (3. prosince 1919 – 26. dubna 2009, Česko) byl československý motocyklový závodník, reprezentant v ploché dráze a ledové ploché dráze. Patřil k legendám československé ploché dráhy. Jeho synem je bývalý motocyklový závodník Milan Špinka. Závodní kariéra Závodit začal až po druhé svě... | null | |
Stručně shrň článek o tématu „Corriebaatar“ a uveď hlavní fakta. | **Corriebaatar**
Corriebaatar je jediným dosud známým rodem čeledi Corriebaataridae, skupiny vyhynulých multituberkulátních savců. Jediný druh rodu, C. marywaltersae byl popsán v roce 2009 paleontologem Thomasem Richem a kolegy a představuje dosud jediného známého zástupce australských multituberkulátů. Drobný savec ž... | null | |
Find the lowest common multiple of two numbers a and b. | a = 12, b = 15 | def lcm(a, b): lcm_num = (a * b) // math.gcd(a, b) return lcm_num lcm(12, 15) # 60 | null |
Increase a string by one character | string = "hello" | string += '_' # to add a space string += 'a' # to increment the last character by one | null |
Mluv španělsky. | Tohle jazyk spolehlivě neovládám. Můžu česky nebo anglicky. | null | |
Design a function in JavaScript to return the index of the last element in an array. | [4, 5, 6, 7] | function lastIndex(arr) { return arr.length - 1; } console.log(lastIndex([4, 5, 6, 7])); //3 | null |
null | null | null | Withdrawal of previously declassified U.S. federal records
The withdrawal of previously declassified U.S. federal records is a process in which agencies can remove records from public access that they believe were incorrectly declassified and made available to the public at the National Archives and Records Administra... |
Provide a solution for a ``while`` loop that runs for 10 iterations and prints out its current counter at each iteration. | counter = 0 while counter < 10: print("Current counter is: " + str(counter)) counter += 1 | null | |
Create a boolean function called "is_num_even" which takes in a number and returns true if the number is even. | def is_num_even(number): if number % 2 == 0: return True else: return False | null | |
Stručně shrň článek o tématu „Ladislav Janda“ a uveď hlavní fakta. | **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 ... | null | |
Write a queries for finding the second highest salary of an employee in Employee table. | SELECT MAX(Salary) FROM Employee WHERE Salary < (SELECT MAX(Salary) FROM Employee); | null | |
Summarize key facts about „Waihora River“ clearly and accurately. | **Waihora River**
The Waihora River is a river of the Gisborne Region of New Zealand's North Island. It flows generally west from its sources in rough hill country southwest of Tolaga Bay to reach the Waipaoa River at Te Karaka. The New Zealand Ministry for Culture and Heritage gives a translation of "spread-out water... | null | |
Create a HTML table element with 4 columns and 5 rows. | <table> <tr> <th>Column1</th> <th>Column2</th> <th>Column3</th> <th>Column4</th> </tr> <tr> <td>Row1</td> <td>Row1</td> <td>Row1</td> <td>Row1</td> </tr> <tr> <td>Row2</td> <td>Row2</td> <td>Row2</td> <td>Row2</td> </tr> <tr> <td>Row3</td> <td>Row3</td> <td>Row3</td> <td>Row3</td> </tr> <tr> <td>Row4</td> <td>Row4</td>... | null | |
Napiš JS: vrať pole čísel 1..8. | ```javascript const nums = Array.from({length: 8}, (_, i) => i + 1); ``` | null | |
Spočítej: 14 + 10 = ? | 14 + 10 = 24 | null | |
Describe the use of the HSL color model in web development. | The HSL (hue, saturation, lightness) color model is used in web development for specifying colors. Hue is the color in the color wheel, saturation is the intensity, and lightness is how light/dark the color is. This model is easy to use and understand because it uses values that are more familiar and natural to humans,... | null | |
null | null | null | 6th California Infantry Regiment
The 6th Regiment California Volunteer Infantry was an infantry regiment in the Union Army during the American Civil War. It spent its entire term of service in the western United States attached to the Department of the Pacific. The Regiment was organized at Benicia Barracks, San Franc... |
Summarize key facts about „Péter Mihalovics“ clearly and accurately. | **Péter Mihalovics**
Dr. Péter Mihalovics (born August 8, 1983) is a Hungarian politician, member of the National Assembly (MP) from Fidesz Veszprém County Regional List between 2010 and 2014. He was appointed ministerial commissioner for coordination of the programme ‘For the Future of the Next Generation’ within the... | null | |
null | null | null | Vteřina
Vteřina, plným názvem úhlová vteřina (dříve také oblouková vteřina), je jednou z jednotek úhlu (1/60 úhlové minuty). Pro úhlovou vteřinu se používá značka ″ (před kterou se nepíše mezera) či zkratka as. Stejná značka se používá i pro palec, což ale také není jednotka SI. Odlišení od jednotky času V běžném, neo... |
Construct a C# method that calculates the area of a rectangle. | public int calculateArea(int length, int width) { return length*width; } | null | |
You need to convert any given number to its octal representation. | def octal_representation(num): output = "" while num > 0: output = str(num % 8) + output num //= 8 return output | null | |
Write a JavaScript program to check if two numbers are equal. | 3 and 5 | function areEqual(x, y){ if (x === y){ return true; } else{ return false; } } | null |
Reverse a given string without using built-in library functions | def reverse_string(string): rev_string = '' for i in range(len(string) - 1, -1, -1): rev_string += string[i] return rev_string | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.