lightryanking
V2EX  ›  算法

请教一下两组数两两匹配怎么穷举比较好啊?

  •  
  •   lightryanking · Jul 9, 2018 · 3197 views
    This topic created in 2898 days ago, the information mentioned may be changed or developed.

    比如第一组数是:A B C D E 第二组是:1 2 3 4 5 6

    两组数不一定是对称的,第一组数量比第二组可能多也可能少也可能相同,输出结果举例如下:A1 B2 C3 D4 E5,要求输出所有可能的结果

    求大佬指点啊

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3226 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:57 · PVG 20:57 · LAX 05:57 · JFK 08:57
    ♥ Do have faith in what you're doing.