Leetcode python3 compiler:TypeError: list indices must be integers or slices, not “set”

前端 未结 0 464
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 22:36

Here is my code,which is used to execute "find" in Union-Find data structure

def find(self,ds:List[int],i:int)->int:
            if ds[i]<0:
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题