Тёмный

1579. Remove Max Number of Edges to Keep Graph Fully Traversable | graph | leetcode daily | Hindi 

shashCode
Подписаться 14 тыс.
Просмотров 577
50% 1

Problem Name:
1579. Remove Max Number of Edges to Keep Graph Fully Traversable
Problem Statement:
Alice and Bob have an undirected graph of n nodes and three types of edges:
Type 1: Can be traversed by Alice only.
Type 2: Can be traversed by Bob only.
Type 3: Can be traversed by both Alice and Bob.
Given an array edges where edges[i] = [typei, ui, vi] represents a bidirectional edge of type typei between nodes ui and vi, find the maximum number of edges you can remove so that after removing the edges, the graph can still be fully traversed by both Alice and Bob. The graph is fully traversed by Alice and Bob if starting from any node, they can reach all other nodes.
Return the maximum number of edges you can remove, or return -1 if Alice and Bob cannot fully traverse the graph.
Problem link:
leetcode.com/problems/remove-...
Java Plus DSA Placement Course Playlist:
• Java and DSA Course Pl...
Java Plus DSA Sheet:
docs.google.com/spreadsheets/...
Notes:
github.com/Tiwarishashwat/Jav...
Telegram Link:
shashwattiwari.page.link/tele...
Ultimate Recursion Series Playlist:
• Recursion and Backtrac...
Instagram Handle: (@shashwat_tiwari_st)
shashwattiwari.page.link/shas...
Samsung Interview Experience:
• I cracked Samsung | SR...
Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe | Samsung
Timestamp:
0:00 - Introduction
#ShashwatTiwari #coding​​ #problemsolving​

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@RohitKumar-dz8dh
@RohitKumar-dz8dh 10 дней назад
Thanks 😊
@SAURABHKUMAR-yo7er
@SAURABHKUMAR-yo7er 10 дней назад
great lec
@shashwat_tiwari_st
@shashwat_tiwari_st 10 дней назад
Please watch DSU first DSU( Disjoint Sets): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7wgUuv0U5zs.html
@keshavgupta9174
@keshavgupta9174 10 дней назад
Bhaiya yeh graph series start krdi kya ?
@shashwat_tiwari_st
@shashwat_tiwari_st 10 дней назад
@@keshavgupta9174 abhi ek video dali hai bs DSU ki because aaj ka question solve krne ke liye required hai... graphs nhi aate toh abhi skip krdo, iske pehle 12 lectures aur aaenge. kal se start hai
@keshavgupta9174
@keshavgupta9174 10 дней назад
@@shashwat_tiwari_st haanji ❤
Далее
Zlatan embarrasses Speed 😂 #ishowspeed
00:32
Просмотров 8 млн
Is it impossible to cut off so much?💀🍗
00:14
Просмотров 3,9 млн
ХЕРЕЙД БОИТСЯ МОЕЙ СОБАКИ!
37:08
PgVector - Postgres como vector database!
49:25
How I Solved Real Time Motion Blur
10:20
Просмотров 20 тыс.
Tell me about yourself | Interview Question #1
0:59
The ORDER BY Algorithm Is Harder Than You Think
13:46
Zlatan embarrasses Speed 😂 #ishowspeed
00:32
Просмотров 8 млн