Orivel Orivel
Open menu

Latest Tasks & Discussions

Browse the latest benchmark content across tasks and discussions. Switch by genre to focus on what you want to compare.

Benchmark Genres

Model Directory

System Design

Google Gemini 2.5 Pro VS OpenAI GPT-5 mini

Design a URL Shortening Service at Scale

You are tasked with designing a URL shortening service (similar to bit.ly or tinyurl.com) that must handle the following constraints: 1. The service must support 100 million new URL shortenings per month. 2. The read-to-write ratio is 100:1 (i.e., 10 billion redirects per month). 3. Shortened URLs must be at most 7 characters long (alphanumeric). 4. The system must guarantee that a shortened URL, once created, never expires unless explicitly deleted by the user. 5. Redirect latency (from receiving the request to issuing the HTTP 301/302) must be under 10 milliseconds at the 99th percentile. 6. The system must remain available even if an entire data center goes offline. 7. The service must support an optional analytics dashboard showing click counts, geographic distribution, and referrer data per shortened URL, but analytics must not degrade redirect performance. Provide a comprehensive system design that addresses: A. High-level architecture: Describe the major components and how they interact. B. URL generation strategy: How you generate unique short codes, why you chose that approach, and how you handle collisions. C. Data model and storage: What databases or storage systems you use and why. Include schema considerations. D. Read path optimization: How you achieve the latency requirement for redirects at the given scale. E. Write path: How new URLs are created and persisted reliably. F. Scaling strategy: How the system scales horizontally to handle growth. G. Reliability and fault tolerance: How you handle data center failures, replication, and failover. H. Analytics pipeline: How you collect, process, and serve analytics data without impacting redirect performance. I. Key trade-offs: Identify at least three significant trade-offs you made in your design and justify each one. Be specific about technologies, protocols, and numerical estimates where relevant (e.g., storage calculations, QPS estimates, cache sizes).

287
Mar 18, 2026 22:59

Coding

Google Gemini 2.5 Pro VS Anthropic Claude Sonnet 4.6

Implement a Versioned Key-Value Store with Historical Queries

Write code that implements an in-memory versioned key-value store supporting historical reads. The store begins empty and processes a sequence of commands. Each successful mutating command creates exactly one new global version number, starting from 1. Read-only commands must not create a version. Keys and values are case-sensitive strings without spaces. Versions are positive integers. Commands: SET key value Create or overwrite key with value. DELETE key Remove key if it exists. GET key Return the current value for key, or NULL if the key does not exist. GET_VERSION key version Return the value associated with key immediately after the specified global version was created, or NULL if the key did not exist at that version. If version is greater than the latest existing version, treat it as invalid and return INVALID_VERSION. HISTORY key Return all historical states for the key in increasing version order, including deletions, formatted as version:value pairs separated by commas. Use NULL for deleted or absent-after-mutation states. If the key has never been affected by any mutating command, return EMPTY. Input format: The first line contains an integer N, the number of commands. The next N lines each contain one command. Output format: For every GET, GET_VERSION, and HISTORY command, print one line with the result. Behavior details and edge cases: - Every SET always creates a new version, even if the value is unchanged. - Every DELETE always creates a new version, even if the key does not exist. - Versions are global across all keys, not per key. - HISTORY for a key should include only versions where that key was directly affected by SET or DELETE. - If a key was deleted and later set again, both events must appear in HISTORY. - Efficiency matters: assume up to 200000 commands, with many historical queries. Your solution should read from standard input and write to standard output. Include the full working program in one file. You may use any mainstream programming language, but the code should be complete and executable as written.

296
Mar 18, 2026 22:33

Education Q&A

Google Gemini 2.5 Pro VS OpenAI GPT-5.4

Explain the Paradox of the Banach–Tarski Theorem and Its Educational Implications

The Banach–Tarski paradox states that a solid ball in three-dimensional space can be decomposed into a finite number of non-overlapping pieces, which can then be reassembled (using only rotations and translations) into two solid balls, each identical in size to the original. Answer the following in a structured essay: 1. State precisely how many pieces are needed in the standard proof of the Banach–Tarski theorem (give the exact minimum number established in the literature). 2. Explain why this result does not contradict physical reality or conservation of mass. In your explanation, identify the specific mathematical property that the pieces must have which prevents them from being physically realizable, and name the axiom of set theory upon which the proof fundamentally depends. 3. Describe how the concept of "measure" (in the sense of Lebesgue measure) relates to this paradox. Why can we not simply say the volumes must add up? 4. Discuss how this theorem is used in mathematics education at the advanced undergraduate or graduate level. What key lessons about the foundations of mathematics—specifically regarding the Axiom of Choice, non-measurable sets, and the limits of geometric intuition—does it illustrate? Suggest a pedagogical approach for introducing this topic to students encountering it for the first time. Your essay should be rigorous yet accessible, demonstrating both mathematical precision and educational insight.

296
Mar 18, 2026 20:40

Analysis

OpenAI GPT-5 mini VS Google Gemini 2.5 Pro

Evaluating Transportation Options for a Mid-Size City

A mid-size city of 350,000 residents is experiencing growing traffic congestion and rising carbon emissions. The city council has narrowed its options to three major transportation infrastructure investments, but can only fund one due to budget constraints. Analyze the three options below, evaluate their trade-offs across at least four distinct criteria (e.g., cost-effectiveness, environmental impact, equity, timeline, scalability, political feasibility), and reach a justified recommendation for which option the city should pursue. Clearly explain your reasoning and acknowledge the strongest counterargument against your recommendation. Option A: Build a 12-mile light rail line connecting the downtown core to the largest suburban employment center. Estimated cost: $1.8 billion. Construction time: 6 years. Projected daily ridership after 5 years of operation: 35,000. Option B: Implement a city-wide bus rapid transit (BRT) network with 4 dedicated-lane corridors totaling 40 miles. Estimated cost: $600 million. Construction time: 3 years. Projected daily ridership after 5 years of operation: 55,000. Option C: Invest in a comprehensive active transportation network (protected bike lanes, e-bike sharing, pedestrian infrastructure improvements) across the entire city, paired with congestion pricing in the downtown core. Estimated cost: $400 million. Construction time: 2 years. Projected daily ridership/usage after 5 years: 80,000 trips per day (cycling, walking, micro-mobility combined).

291
Mar 16, 2026 02:16

Summarization

OpenAI GPT-5.4 VS Google Gemini 2.5 Pro

Summarize a Passage on the History and Science of Coral Reef Bleaching

Read the following passage carefully and then produce a concise summary of no more than 200 words. Your summary must preserve all six key points listed after the passage. Write the summary as a single cohesive paragraph (essay style), not as bullet points. --- BEGIN PASSAGE --- Coral reefs are among the most biodiverse ecosystems on Earth, often referred to as the rainforests of the sea. They occupy less than one percent of the ocean floor yet support roughly twenty-five percent of all known marine species. Reef-building corals belong to the order Scleractinia and form calcium carbonate skeletons that accumulate over centuries to create the massive limestone structures we recognize as reefs. These structures provide habitat, breeding grounds, and nurseries for thousands of species of fish, invertebrates, and algae. Beyond their ecological importance, coral reefs deliver critical ecosystem services to human communities: they protect coastlines from storm surges and erosion, support fisheries that feed hundreds of millions of people, generate tourism revenue estimated at tens of billions of dollars annually, and serve as sources of compounds used in pharmaceutical research. The Great Barrier Reef alone contributes approximately six billion Australian dollars per year to the national economy and supports over sixty thousand jobs. The symbiotic relationship between corals and microscopic algae called zooxanthellae is the foundation of reef productivity. Zooxanthellae of the genus Symbiodinium live within the coral's tissue and perform photosynthesis, providing up to ninety percent of the coral's energy needs in the form of sugars and amino acids. In return, the coral supplies the algae with shelter, carbon dioxide, and nutrients derived from its own metabolic waste. This mutualism is what allows corals to thrive in the nutrient-poor tropical waters where reefs are typically found. The pigments within the zooxanthellae are also responsible for the vivid colors that make coral reefs so visually striking. When this symbiosis is disrupted, the consequences for the reef ecosystem can be catastrophic. Coral bleaching occurs when environmental stressors cause corals to expel their zooxanthellae or when the algae lose their photosynthetic pigments. The most well-documented trigger is elevated sea surface temperature. When water temperatures rise just one to two degrees Celsius above the normal summer maximum for a sustained period of several weeks, the photosynthetic machinery of the zooxanthellae becomes damaged, producing reactive oxygen species that are toxic to both the algae and the coral host. The coral responds by ejecting the algae, which leaves the translucent coral tissue overlying the white calcium carbonate skeleton, producing the characteristic pale or white appearance known as bleaching. Other stressors that can contribute to bleaching include unusually low temperatures, high solar irradiance, changes in salinity, sedimentation, pollution, and disease. However, thermal stress linked to anthropogenic climate change has been identified as the primary driver of mass bleaching events observed over the past four decades. The first recognized global mass bleaching event occurred in 1998, driven by a powerful El Niño that elevated sea surface temperatures across the tropics. An estimated sixteen percent of the world's reef-building corals died during that single event. The second global bleaching event took place in 2010, and the third, which was the longest and most widespread on record, spanned from 2014 to 2017. During this third event, consecutive years of extreme heat affected reefs in every ocean basin. The Great Barrier Reef experienced back-to-back bleaching in 2016 and 2017, with aerial surveys revealing that over two-thirds of the reef's 2,300-kilometer length was affected. Subsequent bleaching events struck the Great Barrier Reef again in 2020 and 2022, raising alarm among scientists that the interval between events is shrinking, leaving corals insufficient time to recover. Recovery from moderate bleaching typically requires a minimum of ten to fifteen years under favorable conditions, but if bleaching recurs within that window, cumulative mortality increases dramatically. The ecological consequences of mass bleaching extend far beyond the corals themselves. When corals die, the three-dimensional reef structure gradually erodes, eliminating the complex habitat that supports fish and invertebrate communities. Studies following the 2016 bleaching on the Great Barrier Reef documented declines of over fifty percent in the abundance of coral-dependent fish species within months. Herbivorous fish that graze on algae play a crucial role in preventing algal overgrowth that can smother recovering corals, so the loss of these species creates a negative feedback loop. Reef degradation also diminishes the capacity of reefs to buffer wave energy, increasing coastal vulnerability to storms. Communities in low-lying island nations such as the Maldives, Kiribati, and the Marshall Islands are particularly at risk because their very land area depends on the continued growth of reef structures. The economic impacts cascade through fisheries, tourism, and coastal infrastructure, disproportionately affecting developing nations in the tropics. Efforts to address coral bleaching operate on multiple scales. At the global level, reducing greenhouse gas emissions remains the most critical intervention, as limiting warming to 1.5 degrees Celsius above pre-industrial levels—the aspirational target of the Paris Agreement—would significantly reduce the frequency and severity of mass bleaching events. At regional and local levels, strategies include improving water quality by reducing agricultural runoff and sewage discharge, establishing marine protected areas to limit physical damage from fishing and anchoring, and controlling outbreaks of coral predators such as the crown-of-thorns starfish. Emerging scientific approaches include selective breeding and assisted gene flow to propagate heat-tolerant coral genotypes, transplantation of thermally resilient Symbiodinium strains, and research into probiotics that may enhance coral stress resistance. While these interventions show promise in laboratory and small-scale field trials, scientists caution that no technological fix can substitute for the rapid and deep decarbonization of the global economy. Without decisive climate action, projections suggest that seventy to ninety percent of existing coral reefs could be lost by mid-century even under moderate warming scenarios, representing an irreversible loss of biodiversity and ecosystem services. --- END PASSAGE --- Your summary must preserve the following six key points: 1. The ecological and economic importance of coral reefs 2. The coral-zooxanthellae symbiosis and its role in reef productivity 3. The mechanism by which thermal stress causes bleaching 4. The timeline and severity of major global bleaching events 5. The cascading ecological and socioeconomic consequences of bleaching 6. The range of mitigation and adaptation strategies being pursued Write your summary as a single cohesive paragraph of no more than 200 words.

277
Mar 16, 2026 02:07

Planning

Anthropic Claude Opus 4.6 VS Google Gemini 2.5 Pro

One-Day Community Fair Recovery Plan After a Storm

You are helping organize a small outdoor community fair scheduled for tomorrow from 10:00 to 16:00. A storm this morning damaged the site and created delays. Create a practical recovery plan for the organizers covering the time from 06:00 to 10:00 tomorrow so the fair can open as safely and smoothly as possible. Situation: - The fair has 12 vendor stalls, 1 small stage, a first-aid tent, portable toilets, and a check-in desk. - The storm left muddy ground in several areas, knocked over 4 stall frames, and damaged the printed directional signs. - Electricity is available from one generator, but it must be tested before any stage equipment or vendor refrigerators are connected. - A safety inspection by the town officer must happen before the public enters. - Volunteers available from 06:00 are: 4 setup volunteers, 2 logistics volunteers, and 1 coordinator. An electrician arrives at 07:30. The town safety officer may arrive any time between 08:30 and 09:30. - A delivery truck bringing replacement signs and sandbags is expected at 08:00, but could be up to 30 minutes late. - Two food vendors need power and at least 30 minutes to prepare before opening. - One vendor has already said they may arrive as late as 09:45. - Weather forecast for the morning: light rain possible between 07:00 and 08:00, then cloudy. Constraints: - No public entry before the safety inspection is complete. - Muddy high-traffic areas should be stabilized before heavy equipment is moved across them. - Generator testing must happen before powered equipment setup. - The coordinator cannot do physical lifting but can communicate, schedule, and make decisions. - At least one volunteer should remain free to handle unexpected issues whenever possible. Your task: Provide a time-sequenced plan from 06:00 to 10:00 with priorities, task assignments by role, dependencies, and contingency actions for the uncertain delivery time, possible rain, late safety inspection, and the late vendor. Keep it concise but specific enough that another organizer could follow it.

284
Mar 15, 2026 15:15

Planning

OpenAI GPT-5.2 VS Google Gemini 2.5 Pro

Emergency Shelter Setup Plan for a Sudden Flood Event

You are the emergency coordinator for a small rural town of 2,000 residents. A flash flood warning has been issued, and you have exactly 6 hours before the flood waters are expected to reach the town. You must plan the setup of an emergency shelter at the local high school gymnasium. Here are your available resources and constraints: 1. You have 15 volunteers, but only 3 have first-aid training. 2. The gymnasium can hold a maximum of 500 people. 3. You have access to 200 cots, 300 blankets, and a 48-hour supply of food and water for 400 people. 4. The town has only 2 school buses (capacity 50 each) and 5 pickup trucks for transport. 5. There are 3 neighborhoods in the flood zone: Riverside (300 residents, highest risk, 20 minutes away), Meadow Lane (200 residents, moderate risk, 10 minutes away), and Creek Side (150 residents, lower risk, 15 minutes away). 6. The town's cell tower may go down within 4 hours. 7. There are 40 known elderly or mobility-impaired residents spread across all three neighborhoods. 8. A backup generator is available but needs 1 hour to set up and test. 9. Roads to Riverside may become impassable within 3 hours. Create a detailed, time-sequenced action plan covering the full 6-hour window. Your plan must address: evacuation prioritization and transport logistics, shelter preparation and resource allocation, communication strategy before and after potential cell tower failure, handling of vulnerable populations, risk mitigation for foreseeable complications, and contingency actions if key assumptions fail (e.g., roads close earlier than expected, more residents arrive than capacity allows).

307
Mar 15, 2026 15:03

Showing 61 to 80 of 106 results

Related Links

X f L