#binarysearch
Two of these C# snippets run perfectly. One has a bug. Which one is it, Snippet 1, 2, or 3? Reply with your pick.
October 31, 2026 at 12:00 PM
Web Developer's Guide to Precise Image Compression Using Binary Search

🤖 IA: It's not clickbait ✅
👥 Users: It's not clickbait ✅

#imagecompression #binarysearch #webdevelopment

👇👇👇
Web Developer's Guide to Precise Image Compression Using Binary Search
Web developers often face the challenge of compressing images to meet specific size requirements, such as a 100KB limit for uploads. The traditional approach involves manually adjusting image quality settings through trial and error, which is inefficient and unreliable. This article introduces a more effective method using binary search to precisely compress images to a target size. The author explains that the quality slider commonly used in image compression tools is a poor primitive because the same quality setting produces vastly different file sizes depending on the image content. Instead, the target-first approach focuses on the desired file size (e.g., 100KB) and finds the highest quality that fits within that budget. The technique involves drawing the image to a canvas, then performing a binary search over the quality axis (typically 8 iterations) to find the optimal quality setting. The algorithm ensures that the resulting image is as high quality as possible while staying within the size limit. The author provides a JavaScript function that implements this method, which can be used directly in web applications. Additionally, the author created a free browser-based tool called 'Compress Image to 100KB' that automates this process, allowing users to drop in an image and get a compressed version that fits their size requirements without any guesswork. The tool operates entirely in the browser, ensuring privacy as images are never uploaded to a server. The article concludes by asking readers about their own image compression practices, including target sizes and whether they compress at upload time, build time, or via a CDN. This method represents a shift from the common practice of compressing defensively (using lower quality settings to ensure size limits are met) to a more precise and efficient approach that maximizes image quality within constraints.
en.killbait.com
October 21, 2026 at 4:08 AM
Binary search becomes especially useful when the same sorted data is searched again and again.

#DSA #BinarySearch #Algorithms #Coding #Programming
September 8, 2026 at 1:10 PM
そもそも Go の slices.SortFunc とかはなぜ 3-way comparator を要求するのか? その方が効率がいいアルゴリムを使えるように?今の実装 quicksort だから別に 3-way いらないでしょ。

github.com/golang/go/is... 最初の方の提案は func less (a, b) bool を受けてるのに、いつの間に 3-way に…

BinarySearch と揃えたの…?
slices: new standard library package based on x/exp/slices · Issue #57433 · golang/go
In #45955 I proposed a new slices package in the standard library. After considerable discussion there and in discussion #47203 we settled on an API and added the experimental package golang.org/x/...
github.com
August 26, 2026 at 12:04 AM
I just completed "Linen Layout" - Day 19 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/19

Oh no! This was almost a brute force approach. Don't need no Trie, don't need even the binarySearch in the list of pattern to cut down waste, just cache the recursion and run it.
Day 19 - Advent of Code 2024
adventofcode.com
December 19, 2024 at 8:25 AM
Waiting patiently for Halftime performance so I'm working on binary search in rotated sorted array.

If the algorithm does not make sense to me, I'll run it back a few times by deleting and typing it out again.

You learn so much more :)
Who else is waiting for K-Dot?

#binarysearch
February 10, 2025 at 12:05 AM
代码可以让 AI 写,但设计得由你做:重塑工程师的“算法直觉” 本文永久链接 – https://tonybai.com/2026/05/19/ai-era-software-engineer-algorithm-map 大家好,我是...

#技术志 #AlgorithmMap #AlgorithmPatterns #Backtracking #BinarySearch #BitManipulation #bloomfilter #DynamicProgramming #EngineeringPractice #Go #Golang

Origin | Interest | Match
代码可以让 AI 写,但设计得由你做:重塑工程师的“算法直觉” - Tony Bai
本文永久链接 - https://tonybai.com/2026/05/19/ai-era-software-engineer-algorithm-map 大家好,我是Tony Bai。 “帮我写一个限流器。” 当你把这行字敲进 Claude、Gemini 或ChatGPT 的对话框或CLI形式的命令
tonybai.com
May 19, 2026 at 12:35 AM
Hmmm. Usually this game is ego-adjusting. Today, it was ego-boosting. #BinarySearch #DumbLuck #SoManyWordsToChooseFrom

🧩 Puzzle #477
🤔 9 guesses
⏱️ 55s
🔗 alphaguess.com
alphaguess: a word game
Guess the word of the day. Guesses reveal where the word is positioned alphabetically. Everyone plays the same word each day.
alphaguess.com
November 13, 2024 at 6:11 PM
Check point do dia:

✅️ TwoSum
✅️ BinarySearch
✅️ ReverseString
✅️ Estudo rápido sobre JWT
✅️ Exception Handler na camada de Rescources do encurtador de URL
November 12, 2024 at 8:22 PM
How Hack: Improving UX with Binary Search and Efficient Data Handling

(Relevant article based on post: Optimizing Dropdown Menus for Better UX in Web Applications) You Should Know: When dealing with large dropdown menus (like country lists), inefficient search mechanisms can frustrate users.…
How Hack: Improving UX with Binary Search and Efficient Data Handling
(Relevant article based on post: Optimizing Dropdown Menus for Better UX in Web Applications) You Should Know: When dealing with large dropdown menus (like country lists), inefficient search mechanisms can frustrate users. Instead of manual iteration, implement binary search for faster lookups. Below are practical steps and commands to optimize UX in web apps. 1. Binary Search Implementation (JavaScript) function binarySearch(arr, target) {
undercodetesting.com
May 25, 2025 at 4:55 AM
Snapshot of the DOM, if you're interested.
June 1, 2025 at 4:12 PM
🆕 Binary Search Variants: 6 LeetCode Problems Benchmarked

#CodingInterview #LeetCode #BinarySearch
https://tildalice.io/binary-search-variants-leetcode-benchmark/
July 19, 2026 at 10:23 AM
🆕 Off-by-One Errors in Binary Search: 5 Common Bugs

#CodingInterview #LeetCode #binarysearch #offbyoneerrors
https://tildalice.io/off-by-one-errors-binary-search-5-common-bugs/
June 1, 2026 at 9:04 PM
🆕 Linear vs Binary Search: 1M Element Speed Test Results

#CodingInterview #LeetCode #binarysearch #linearsearch
https://tildalice.io/linear-vs-binary-search-1m-benchmark/
April 30, 2026 at 3:04 PM
🆕 Binary vs Ternary Search: Why Ternary is 23% Slower on Unimodal Functions

#CodingInterview #LeetCode #binarysearch #ternarysearch
https://tildalice.io/binary-vs-ternary-search-unimodal-benchmark/
March 23, 2026 at 6:04 PM
Cuprum 2929 base game features Pythagorean theorem! However, other concepts can be demonstrated for creative problem solving! Learn the basic idea behind binary search with simple arithmetics!

#gamedev #algorithms #binarysearch #programming

youtube.com/watch?v=IQFS...
YouTube
Share your videos with friends, family, and the world
youtube.com
November 23, 2024 at 7:14 AM
BinarySearch の同値が原因だった。
May 23, 2026 at 2:52 PM
#java #openjdk #AdventCalendar
Java Advent Calendar 2024 series2 四日目のエントリーです。ご参加ありがとうございます。
qiita.com/_mi/items/eb...
Javaで学ぶアルゴリズム -二分探索(.binarySearch ver.) - Qiita
二分探索https://qiita.com/_mi/items/bf5748e52b0d7696d48d上記のロジックは java.util.Arrays にあるのでそれを使うとよいです。メソ…
qiita.com
December 4, 2024 at 3:32 AM
A new release of the Deno Standard library is out with many updates:
👨‍👩‍👧‍👦 collections: binarySearch function has been added
🧪 testing: assertInlineSnapshot has been added
🛤️ path: basename, dirname, extname, join, and normalize now accept URL object input
and so much more 👇

github.com/denoland/std...
Release 2025.05.27 · denoland/std
@std/cli 1.0.18 (patch) BREAKING(cli/unstable): make ProgressBarFormatter.styledTime a getter (#6677) BREAKING(cli/unstable): change custom formatter rule (#6678) BREAKING(cli/unstable): make Prog...
github.com
May 27, 2025 at 5:51 PM
野田たいむがひだりPSTがわにずれるのはM$みたくbinarysearchが左寄りの可能性があるか() pythondateutilはbisectrightだからな
invaid PST-PDT ambious
2024-03-10 02 変換前
2024-11-03 01

timezonetype inv amb algo
osをろすにしてzone適用 3pd 1ps bisectr
M$dateoffset 3pd 1pd ※datetimeoffset
noda 1pd 1ps ※ ?
binary読み() 3pd 1ps bisectr
#タイム損切替
January 1, 2025 at 4:13 PM
Last year was my first #adventofcode, and I had several solutions that took several minutes to run. This year I'm on track to get sub 1-second solutions every day! Today's solution consistently runs in under 6 ms, which I'm very happy about. #binarysearch
December 18, 2024 at 3:22 PM
Here's the much faster, more involved implementation of the O(n log n)-time algorithm. Also dynamic programming, but with a twist, and as a result much, much faster in theory and practice.

Algorithms matter!

(And I know, my code is ugly — not the point)
March 30, 2025 at 3:48 AM
3.npm-binarysearch

a application which help you to sort in nlogn time
October 10, 2025 at 10:00 AM