search

Home  >  Q&A  >  body text

How to implement php

算法,php如何实现输入一个字符串,输出该字符串中字符的所有组合。
例如:输入参数:字符串:"abc"
输出:"a","b","c","ab","ac","bc","abc"

大大大大2046 days ago1009

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2019-04-12 09:36:34

    From the perspective of the problem, it needs to be implemented using a recursive algorithm. Of course, it can also be implemented indirectly using static variables

    reply
    0
  • 大大

    Can you guys implement it in detail?

    大大 · 2019-04-12 12:30:44
  • Cancelreply