{
  "id": 17519260,
  "title": "Weekly Challenge: An average reflection",
  "url": "https://urgent.news/2026/11/01/weekly-challenge-an-average-reflection",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-01T02:28:44.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/simongreennet/weekly-challenge-an-average-reflection-4b28"
  },
  "original_language": "en",
  "account": "Weekly Challenge 397 presents two coding tasks. The first task, Absent Smallest Positive, requires finding the smallest positive integer that is absent from a given array and greater than the average of all elements in the array. The solution involves calculating the average, initializing a variable with a value slightly above the average, and incrementing until an absent integer is found.\n\nIn the second task, Binary Reflection, an array of integers must be sorted based on the binary reflection of each element. The binary reflection is created by converting the integer to binary, reversing the binary string, and converting it back to an integer. The array is sorted first by numerical order for elements with the same binary reflection, then by their binary reflection values.",
  "summary": "Weekly Challenge 397 Each week Mohammad S. Anwar sends out The Weekly Challenge , a chance for all of us to come up with solutions to two weekly tasks. My solutions are written in Python first, and then converted to Perl. Unless otherwise stated, Copilot (and other AI tools) have NOT been used to generate the solution. It's a great way for us all to practice some coding. Challenge , My solutions…",
  "key_points": [
    "Absent smallest positive integer found in array task",
    "Binary reflection sorting method used in second task",
    "Weekly Challenge 397 features two coding tasks"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}