Logo
Legacy code: Code written by anyone else.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Character-array Memes

Posts tagged with Character-array

Early Access

Algorithms Programming
22 days ago 275.6K views 2 shares
Early Access
Kid's already implementing their own sorting algorithm instead of just using the built-in one. First answer? "aelpp" for apple. That's not a typo—that's literally alphabetically sorted characters. They took the word "apple" and sorted each letter individually (a-e-l-p-p) like they're running a char array through a sort function. The teacher wanted them to sort the words by their first letter, but this future developer interpreted the spec literally: "alphabetical order" = sort the characters. The rest of the answers follow the same pattern—"ikmnppu" (pumpkin), "glo" (log), "eirrv" (river). They're treating strings as mutable character arrays and applying a sort operation to each one. This is the kind of literal thinking that makes you either a brilliant compiler designer or someone who spends 3 hours debugging why their code does exactly what they told it to do, not what they wanted it to do. The kid's not wrong—they just solved a different problem with O(n log n) complexity when the teacher wanted O(1) lookup.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

Dell XPS 16 Laptop, Intel Ultra 9-185H, 32 GB L...

Dell XPS 16 Laptop, Intel Ultra 9-185H, 32 GB L...
Ad Buy this and help us afford a proper UX designer instead of letting the backend devs do it. 🎨