Our initial recursive implementation was made up of 5 lines of logical code and 6 lines of type definitions. All of the data was immutable and the implementation was effectively forced by the shape of the data; under these constraints it would be harder to get it wrong than to get it right. Our iterative implementation is over ten times as long (not even counting type definitions and helper functions), makes wanton use of mutability, and is generally rife with potential edge cases. Questions about how this could possibly be tested and maintained are unavoidable.
Originally published on January 20, 2025
,详情可参考迅雷下载
Storage location:
GPT-5.1:直接开始写,写到一半发现数据结构不对,又从头改了一遍