• 请不要在回答技术问题时复制粘贴 AI 生成的内容
mortonnex
V2EX  ›  程序员

一道面试题,老司机看看

  •  
  •   mortonnex · May 20, 2016 · 2810 views
    This topic created in 3692 days ago, the information mentioned may be changed or developed.

    owt5008137
        1
    owt5008137  
       May 20, 2016 via Android   ❤️ 1
    位压缩,总共 16 个方块,也就 16bits=65536 种状态。然后 BFS 呗。
    chairuosen
        2
    chairuosen  
       May 20, 2016
    Exin
        3
    Exin  
       May 20, 2016
    试着做了一下,不太优雅, i5-2400 耗时 4 秒
    https://gist.github.com/ExinCoda/29d4718b3bbe15c77044b68abdd26f1f
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5966 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 01:58 · PVG 09:58 · LAX 18:58 · JFK 21:58
    ♥ Do have faith in what you're doing.