Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
DFS
irapilguy
Nov 20th, 2017
141
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
void
dfs
(
int
v
)
{
used
[
v
]
=
1
;
for
(
int
i
=
1
;
i
<=
n
;
i
++
)
{
if
(
used
[
i
]
==
0
&&
mas
[
v
]
[
i
]
==
1
)
{
dfs
(
i
)
;
}
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Online Trainer v21
Ruby | 18 min ago | 6.10 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 18 min ago | 0.39 KB
Meta
GetText | 23 min ago | 0.05 KB
Series (Biram)
Dart | 31 min ago | 1.45 KB
Untitled
C++ | 34 min ago | 0.49 KB
Untitled
Python | 36 min ago | 10.37 KB
Untitled
Python | 37 min ago | 8.08 KB
snowybot.py
JavaScript | 57 min ago | 3.87 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!