python check string contains all characters

后端 未结 4 1615
粉色の甜心
粉色の甜心 2021-01-29 11:10

I\'m reading in a long list of words, and I made a node for every word in the list. Each node has an attribute \'word\' for their position in the list.

I am trying to co

4条回答
  •  囚心锁ツ
    2021-01-29 11:51

    Looks like a formal languages problem. How do you handle looping nodes?

    IN INW is in the list you gave.

    AGNRT AGNRST are not in the list, because you started out with a single letter, that letter has to be in the next word for example I -> IN, but IN is not in AGNRT or AGNRST

提交回复
热议问题