labuladong / advanced-challenge

100 stars 8 forks source link

已结束 #244

Closed labuladong closed 1 year ago

labuladong commented 1 year ago

本期打卡已结算完成。报名最新一期的打卡活动 点这里

alicelmx commented 1 year ago

785 https://leetcode.com/problems/is-graph-bipartite/solutions/3849632/java-dfs-super-ez-to-understand-solution/

sure00 commented 1 year ago

785. Is Graph Bipartite? https://leetcode.com/problems/is-graph-bipartite/solutions/3850377/color-graph/

bells0 commented 1 year ago

785: https://leetcode.cn/problems/is-graph-bipartite/solutions/2368949/dfspan-duan-er-fen-tu-by-wonderbell-7d61/

ZitongWang1202 commented 1 year ago

886 https://leetcode.com/problems/possible-bipartition/solutions/3850616/python3-bipartite-graph/

RuokeZhang commented 1 year ago

https://leetcode.com/problems/possible-bipartition/solutions/3850687/dfs-java/ 886

EvelynGao233 commented 1 year ago

886 https://leetcode.com/problems/possible-bipartition/solutions/3850717/python3-dfs/ 785 https://leetcode.com/problems/is-graph-bipartite/solutions/3850650/python3-dfs-bfs/

stonehard0208 commented 1 year ago

785: https://leetcode.cn/problems/is-graph-bipartite/solutions/2369060/python3-by-xing-chuan-li-li-b8ro/ 886: https://leetcode.cn/problems/possible-bipartition/solutions/2369133/python3-by-xing-chuan-li-li-33lo/

liuyuhang599 commented 1 year ago

785 https://leetcode.com/problems/is-graph-bipartite/solutions/3851025/cpp-dfs-solution/

lilacyl commented 1 year ago

785 https://leetcode.com/problems/is-graph-bipartite/solutions/3851093/dfs-recursive-solution/

dh0072 commented 1 year ago

Q785. Is Graph Bipartite? 写了两个解法:DFS和Union Find DFS做了代码简化,color不再是boolean[]而是int[],使用1和-1记录两个颜色,0代表没有visit过,这样可以省去visited[] https://leetcode.com/problems/is-graph-bipartite/discuss/3850915/Java-Solution-DFS-and-Union-Find

Q886. Possible Bipartition https://leetcode.com/problems/possible-bipartition/discuss/3850972/Java-DFS-solution

yuhaoli-95 commented 1 year ago

785 https://leetcode.cn/problems/is-graph-bipartite/solution/pan-duan-er-fen-tu-by-yuhaoli2333-7h3r/ 886 https://leetcode.cn/problems/possible-bipartition/solution/er-fen-tu-pan-ding-by-yuhaoli2333-w5fx/

Yang-Veronica commented 1 year ago

785 https://leetcode.cn/problems/is-graph-bipartite/solution/785pan-duan-er-fen-tu-by-peaceful-almeid-nv5s/ 886 https://leetcode.cn/problems/possible-bipartition/solution/886-ke-neng-de-er-fen-fa-pan-ding-er-fen-fttf/

Heildiana commented 1 year ago

https://leetcode.cn/problems/is-graph-bipartite/solutions/2370122/dfstu-se-by-foultarnished-b6lz/

zy-79 commented 1 year ago

886 https://leetcode.cn/problems/possible-bipartition/solution/javajie-fa-xue-xi-bi-ji-by-xiao-qi-18-tq11/

Carol-Zhu commented 1 year ago

Day2打卡: 785题 https://leetcode.cn/problems/is-graph-bipartite/solutions/2370309/jin-jie-day2-er-fen-tu-pan-duan-by-carol-yjjb/

Flytothefuture commented 1 year ago

784题 https://leetcode.cn/problems/is-graph-bipartite/description/ 886好怪,,换了个数据结构就不会了qwq,明天再看看

mochi66 commented 1 year ago

785: https://leetcode.com/problems/is-graph-bipartite/solutions/3853977/java-dfs-solution/

husky105 commented 1 year ago

https://leetcode.cn/problems/minimum-height-trees/solutions/2370679/zui-xiao-gao-du-shu-by-fu-he-lin-9941/

CarryLiao5959 commented 1 year ago

https://leetcode.cn/problems/is-graph-bipartite/solutions/2370901/dfs-by-carry-vv-wwbv/

enoren111 commented 1 year ago

785 https://leetcode.cn/problems/is-graph-bipartite/solutions/2370994/785-by-schneiderlin-i-ribh/

FisherChang commented 1 year ago

785 https://leetcode.cn/problems/is-graph-bipartite/solutions/2371027/di-gui-pan-duan-er-fen-tu-by-cai-zhang-c-rfx5/

xiaoyu-wen-1118 commented 1 year ago
  1. https://leetcode.com/problems/is-graph-bipartite/solutions/3856132/python-dfs-with-explanation/
lichade-son commented 1 year ago

785 https://leetcode.cn/problems/is-graph-bipartite/solutions/2371123/pan-duan-er-fen-tu-dfsbfs-by-pensive-mon-abbt/

cjqcjqhhh commented 1 year ago

https://leetcode.cn/problems/is-graph-bipartite/solutions/2371396/day2-da-qia-by-cjqcjqhhh-wzt7/

Youarenotblind commented 1 year ago

886纯C https://leetcode.cn/problems/possible-bipartition/solutions/2371598/c-ke-neng-de-er-fen-fa-by-chong-shi-a-0bko/

nulunulunu commented 1 year ago

https://leetcode.cn/problems/is-graph-bipartite/solutions/2370167/tu-de-bian-li-huan-hen-bu-shou-lian-by-c-dbfu/

YunjiQ commented 1 year ago
Air-skipper commented 1 year ago

https://leetcode.cn/problems/is-graph-bipartite/solution/shi-fou-er-fen-tu-by-air-skipper-mc47/

zhuminghui17 commented 1 year ago

https://leetcode.com/problems/is-graph-bipartite/solutions/3858977/785-is-graph-bipartite-python/

xiaopeiyi0704 commented 1 year ago

https://leetcode.com/problems/possible-bipartition/discuss/3910889/java-dfs

LHRlo commented 1 year ago

https://leetcode.cn/problems/possible-bipartition/solutions/2388948/zhuan-hua-cheng-tu-de-ling-jie-biao-zai-m9y50/

elaineKuo commented 1 year ago

785 https://leetcode.cn/problems/is-graph-bipartite/solutions/2096842/pan-duan-er-fen-tu-by-mei-vampire-4839/