Three Bookings, Six Double-Booked Seconds | AI Code Test
Description: Intervals [0,10), [2,8), [4,6): time covered by at least TWO intervals is 6 seconds, not 8. The triple overlap counts once. Both tools' full chargeable_seconds functions passed all 16 prewritten Python tests.
The suite checks touching intervals, nested and duplicate intervals, zero durations, unsorted input, huge endpoints and invalid values. Full functions executed unchanged with Python 3.11.18; expected results frozen before submission. Same prompt, first complete scored answer from each tool. One small suite, not an overall AI ranking.
Default Gemini Auto and default/free Perplexity web tools tested Nov 18, 2026; underlying model identity not asserted. Perplexity's third-task browser session hit repeated navigation/creation timeouts before a usable complete answer was obtained in a fresh session. Infrastructure retries were not scored and were not result-based rerolls. No answer repaired to improve its score.
The diagram is an illustration; terminal panels are actual-test-output replays, not live generation. Original instrumental music and synthetic narrator.
Sources:
Gemini: https://share.gemini.google/mzHxKc4B8GAr
Perplexity: https://www.perplexity.ai/session/5a570b2f-8960-4878-a5d9-95b2ae378cbd
#Shorts #Python #Gemini #Perplexity #Coding Close description
The suite checks touching intervals, nested and duplicate intervals, zero durations, unsorted input, huge endpoints and invalid values. Full functions executed unchanged with Python 3.11.18; expected results frozen before submission. Same prompt, first complete scored answer from each tool. One small suite, not an overall AI ranking.
Default Gemini Auto and default/free Perplexity web tools tested Nov 18, 2026; underlying model identity not asserted. Perplexity's third-task browser session hit repeated navigation/creation timeouts before a usable complete answer was obtained in a fresh session. Infrastructure retries were not scored and were not result-based rerolls. No answer repaired to improve its score.
The diagram is an illustration; terminal panels are actual-test-output replays, not live generation. Original instrumental music and synthetic narrator.
Sources:
Gemini: https://share.gemini.google/mzHxKc4B8GAr
Perplexity: https://www.perplexity.ai/session/5a570b2f-8960-4878-a5d9-95b2ae378cbd
#Shorts #Python #Gemini #Perplexity #Coding Close description
