Write a polite but firm email to a landlord who has not fixed the heating for three weeks. I want the repair, not a fight.
Qwen 3.8 Max
Subject: Urgent: Heating repair needed
Dear [Landlord/Property Manager’s Name],
I hope you’re well. I’m writing to follow up on the heating issue at [address/unit number], which I first reported on [date]. It has now been three weeks, and the heating is still not working properly.
I understand that repairs can sometimes take time, but the lack of heat is making it difficult to comfortably and safely use the home, especially given the weather. I would appreciate it if you could arrange for the repair to be completed as soon as possible.
Could you please let me know by [specific date, e.g., the end of the week] what the next step will be and when a repair person will attend? If there is a delay, please also let me know the reason and the expected timeline.
I’d like to resolve this quickly and amicably, and I’m happy to cooperate with access or scheduling if needed. Please let me know if you need anything further from me.
Thank you for your attention to this matter.
Best regards, [Your Name] [Phone Number] [Address/Unit Number]
Asked Nov 1, 2026. Unedited.
DeepSeek V4 Pro
Here’s a draft you can adapt:
Subject: Urgent follow-up: Heating repair needed at [your address]
Dear [Landlord’s name],
I’m writing to follow up on the heating issue at [your address], which I first reported to you on [date]. It has now been three weeks, and the heating is still not working.
I understand that repairs can take time, but with the weather getting colder, this has become a serious health and safety concern. I would appreciate your help in getting this resolved promptly.
Could you please arrange for a qualified technician to repair the heating by [specific date, e.g., Friday, December 8]? If that isn’t possible, please let me know by [date/time] and provide a firm date for the repair.
I want to keep this simple and avoid any conflict, but I’m sure you understand that working heating is essential. If I don’t hear from you by [date], I’ll need to consider the options available to me as a tenant.
Thank you for your attention to this. I look forward to hearing from you.
Best regards, [Your name] [Your phone number / email]
This keeps the tone polite and cooperative while making clear that the delay has gone on long enough and you expect action.
Asked Nov 1, 2026. Unedited.
Write a React hook that debounces a value and cancels on unmount. Include the TypeScript types.
Qwen 3.8 Max
import { useEffect, useState } from "react";
export function useDebouncedValue<T>(value: T, delayMs: number = 300): T {
const [debouncedValue, setDebouncedValue] = useState<T>(value);
useEffect(() => {
const timeoutId: ReturnType<typeof setTimeout> = setTimeout(() => {
setDebouncedValue(value);
}, delayMs);
// Cancels the pending debounce when:
// - `value` changes
// - `delayMs` changes
// - the component unmounts
return () => {
clearTimeout(timeoutId);
};
}, [value, delayMs]);
return debouncedValue;
}Usage:
import { useState } from "react";
import { useDebouncedValue } from "./useDebouncedValue";
export function SearchInput() {
const [search, setSearch] = useState("");
const debouncedSearch = useDebouncedValue(search, 500);
return (
<div>
<input
value={search}
onChange={(event) => setSearch(event.target.value)}
/>
<p>Debounced value: {debouncedSearch}</p>
</div>
);
}Asked Nov 1, 2026. Unedited.
DeepSeek V4 Pro
import { useEffect, useState } from "react";
/**
* Debounces a changing value and returns the last value after the specified delay.
* The timeout is cancelled when the component unmounts or when `value`/`delay` changes.
*/
export function useDebouncedValue<T>(value: T, delay: number): T {
const [debouncedValue, setDebouncedValue] = useState<T>(value);
useEffect(() => {
const timeoutId = setTimeout(() => {
setDebouncedValue(value);
}, delay);
// Cleanup clears the timeout on unmount and before the next effect runs
return () => {
clearTimeout(timeoutId);
};
}, [value, delay]);
return debouncedValue;
}Usage example
function SearchInput() {
const [query, setQuery] = useState("");
const debouncedQuery = useDebouncedValue(query, 300);
useEffect(() => {
if (debouncedQuery) {
// Fetch search results
}
}, [debouncedQuery]);
return (
<input
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder="Search..."
/>
);
}Asked Nov 1, 2026. Unedited.
A drug test is 99% accurate, and 0.5% of people use the drug. Someone tests positive. What is the probability they use it, and why does the answer surprise people?
Qwen 3.8 Max
Assuming “99% accurate” means:
99% sensitivity: a user tests positive with probability 0.99
99% specificity: a non-user tests negative with probability 0.99
and the prevalence is 0.5%, then:
[ P(\text{user} \mid \text{positive}) = \frac{P(\text{positive} \mid \text{user})P(\text{user})} {P(\text{positive} \mid \text{user})P(\text{user}) + P(\text{positive} \mid \text{non-user})P(\text{non-user})} ]
[ = \frac{0.99 \times 0.005} {0.99 \times 0.005 + 0.01 \times 0.995} ]
[ = \frac{0.00495}{0.00495 + 0.00995} \approx 0.332 ]
So the probability they actually use the drug is about 33%.
Why this surprises people
People often hear “99% accurate” and think a positive result must mean there is a 99% chance the person uses the drug. But that confuses:
[ P(\text{positive} \mid \text{user}) ]
with:
[ P(\text{user} \mid \text{positive}) ]
The key issue is the base rate: only 0.5% of people use the drug, so there are many more non-users than users. Even a small false-positive rate among the large non-user population creates many false positives.
Natural-frequency explanation
Imagine testing 100,000 people:
Drug users: [ 0.5\% \times 100{,}000 = 500 ] True positives among users: [ 99\% \times 500 = 495 ]
Non-users: [ 99{,}500 ] False positives among non-users: [ 1\% \times 99{,}500 = 995 ]
Total positive tests:
[ 495 + 995 = 1{,}490 ]
Of those, actual users are:
[ \frac{495}{1{,}490} \approx 33\% ]
So despite the test being highly accurate, a positive result only implies about a one-in-three chance of actual drug use because the drug is rare in the population. This is a classic example of base-rate neglect.
Asked Nov 1, 2026. Unedited.
DeepSeek V4 Pro
Assuming “99% accurate” means:
True positive rate = 99% (if someone uses the drug, test is positive 99% of the time)
True negative rate = 99% (if someone does not use, test is negative 99% of the time)
Let:
(P(\text{use}) = 0.005)
(P(\text{positive} \mid \text{use}) = 0.99)
(P(\text{positive} \mid \text{non-use}) = 0.01)
Using Bayes’ theorem:
[ P(\text{use} \mid \text{positive}) = \frac{0.99 \times 0.005}{(0.99 \times 0.005) + (0.01 \times 0.995)} ]
[ = \frac{0.00495}{0.00495 + 0.00995} = \frac{0.00495}{0.0149} \approx 0.332 ]
So the probability they actually use the drug is about 33%.
Why the surprise? Because people focus on the test’s 99% accuracy and ignore the very low base rate: only 0.5% of people use the drug.
Out of 100,000 people:
500 use the drug → 495 true positives
99,500 do not use → 995 false positives
So among 1,490 positive tests, only 495 are true users:
[ \frac{495}{1490} \approx 33\% ]
Even a highly accurate test produces many false positives when the condition is rare. This is known as the base rate fallacy.
Asked Nov 1, 2026. Unedited.
Head to head
Ranked against 42 models, from public leaderboards and our own blind tests where we have them. How we rank
| Task | Qwen 3.8 Max | DeepSeek V4 Pro | Leads |
|---|---|---|---|
| Coding | #10 | #22 | Qwen 3.8 Max |
| Writing | #5 | #18 | Qwen 3.8 Max |
| Math | #10 | #24 | Qwen 3.8 Max |
| Research | #18 | #12 | DeepSeek V4 Pro |
| Everyday chat | #8 | #18 | Qwen 3.8 Max |
The facts
Scores from artificialanalysis.ai and lmarena.ai.
| Fact | Qwen 3.8 Max | DeepSeek V4 Pro |
|---|---|---|
| Made by | Alibaba | DeepSeek |
| API price, per 1M tokens | $2 in, $6 out | $1.32 in, $3.96 out |
| Speed | 41 tokens a second | 104 tokens a second |
| Artificial Analysis Index | 45.4 | 36.0 |
| LMArena text | 1,484 | 1,451 |
| LMArena coding | 1,503 | 1,469 |
| Updated | Oct 26, 2026 | |