登录社区云,与社区用户共同成长
邀请您加入社区
该用户还未填写简介
暂无可提供的服务
重点在于加入入度为0的点,把前驱的边先去掉,进行处理/如何想到运用?需要用到,建立一个邻接表int n=quiet.length;int[]in=new int[in];List<Integer>list[]=new List[n];int[]ans=new int [n];for(int i=0;i<n;i++){list[i]=new ArrayList<>();