Skip to content

Commit ba29736

Browse files
authored
Update 785.is-graph-bipartite.md
1 parent 825ad67 commit ba29736

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

problems/785.is-graph-bipartite.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ class Solution:
137137

138138
### 代码
139139

140+
代码支持:Python3,Java
141+
142+
Python3 Code:
143+
140144
```py
141145
class UF:
142146
def __init__(self, n):
@@ -163,6 +167,8 @@ class Solution:
163167
return True
164168
```
165169

170+
Java Code:
171+
166172
```java
167173
// weighted quick-union with path compression
168174
class Solution {

0 commit comments

Comments
 (0)