Binary Search
arr = [10, 20, 30, 40, 50, 60, 70]
key = int(input("Enter number to search: "))
low = 0
high = len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == key:
print("Element found at index", mid)
break
elif arr[mid] < key:
low = mid + 1
else:
high = mid - 1
else:
print("Element not found")
Largest Element
numbers = [10, 25, 8, 45, 30]
largest = numbers[0]
for i in numbers:
if i > largest:
...
मराठी कवितेच्या समृद्ध परंपरेचा सोदाहरण आढावा घ्या.?
मराठी कवितेला सुमारे आठ ते नऊ शतकांचा अत्यंत समृद्ध आणि प्रदीर्घ इतिहास आहे. संतांच्या आध्यात्मिक रचनेपासून ते आधुनिक काळातील प्रयोगशील
Here is the extracted text from the study sheet, organized line-by-line and section-by-section to match the original document's structure:
Pure Black & White Printing Edition | 100% Unabridged Text | Cut along Dashed Square Borders
Environmental Studies is inherently multidisciplinary because understanding environmental issues
A company is an artificial legal person created under the Companies Act, 2017. Like a natural person, a company may also come to an end. The legal process through which a company ends its existence is called winding up. During this process, the company's business is stopped, its assets are collected and sold, its debts and liabilities are paid, and any remaining property is distributed among
Divisibility Test
1: All numbers are divisible by 1
2: All even numbers are divisible by 2 . Last digit must be a 0, 2, 4, 6 or 8
3: The sum of the digits must be divisible by 3
4: The number formed from the last two digits must be divisible by 4
5: The last digit must be a 0 or 5
6: Must pass the divisibility tests for 2 and 3
7: (There is no easy test for divisibility by 7)
8: The number formed from the last three digits must be divisible by
1 MANAGEMENTBASICS EfficiencyvsEffectiveness: Efficiency=doing things right→max output/min inputs/cost/waste. Effectiveness=doing right things→achieve goals/customer needs. High+High=ideal. Goals reached but wasteful→effective/not efficient. Cheap/fast but wrong goal/product→efficient/not effective. POLC: Planning=goals+strategy; Organizing=structure/resources/roles; Leading=motivate/influence; Controlling=measure→compare goals→correct. MintzbergRoles: Interpersonal: Figurehead=ceremonial;...
1. Chickenpox (Varicella)- Causative agent: Varicella-Zoster Virus (VZV). Pathology: The virus enters through the respiratory tract, spreads through the bloodstream, and produces characteristic itchy vesicular skin lesions. Transmission: Spread by respiratory droplets and direct contact with fluid from skin blisters. Incubation period: 10–21 days. Clinical features: Fever, malaise, headache, and an itchy vesicular rash appearing in crops. Diagnosis: Clinical examination, PCR, or VZV IgM antibody
1.Food Delivery:
1-2 add this in OrderManager
OrderStats getOrderStatistics() {
int total = orders.size();
int active = 0;
int closed = 0;
for (Order order : orders) {
if (order.status == OrderStatus.PLACED ||
order.status == OrderStatus.PREPARING ||
order.status == OrderStatus.OUT_FOR_DELIVERY) {
active++;
} else if (order.status == OrderStatus.DELIVERED ||
order.status == OrderStatus.
Vi använder metaforer nästan varje dag, även om vi inte alltid tänker på det. En metafor är en språklig bild där något beskrivs med hjälp av något annat. När vi säger att “livet är en resa” eller att någon har “ett hjärta av guld” menar vi inte det bokstavligt. I stället använder vi en bild för att göra en tanke eller en känsla lättare att förstå. Metaforer finns i vardagsspråket, i litteraturen, i tidningar och i många andra sammanhang. De olika källtexterna visar
...