Тёмный

2285. Maximum Total Importance of Roads | graph | leetcode daily challenge | DSA | Hindi 

shashCode
Подписаться 16 тыс.
Просмотров 1,3 тыс.
50% 1

Problem Name:
2285. Maximum Total Importance of Roads
Problem Statement:
You are given an integer n denoting the number of cities in a country. The cities are numbered from 0 to n - 1.
You are also given a 2D integer array roads where roads[i] = [ai, bi] denotes that there exists a bidirectional road connecting cities ai and bi.
You need to assign each city with an integer value from 1 to n, where each value can only be used once. The importance of a road is then defined as the sum of the values of the two cities it connects.
Return the maximum total importance of all roads possible after assigning the values optimally.
Problem link:
leetcode.com/problems/maximum...
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​

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

 

26 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@GirjeshSharma-zv3xo
@GirjeshSharma-zv3xo Месяц назад
Sir jab se aapse padna shri kra h tab se coding m intrest aane lga h thank you for your hardworl❤❤
@RohitKumar-dz8dh
@RohitKumar-dz8dh Месяц назад
Thanks 😊 , mene ye problem priority queue se solve Kiya aur yaha aya to dekha ye problem utha complex nahi jitna mene bana diya 😂😂.
@a3rdtierguy864
@a3rdtierguy864 Месяц назад
mai isko map se karne ka intitution build kar diya tha but here for optimized approach
@PiyushSharma-we8yd
@PiyushSharma-we8yd Месяц назад
mujhe question 5 baar padhne pr bhi samajh nhi aya but jb smjh aa gya, turant solve hogya 😍😍😍
@Munchen888
@Munchen888 Месяц назад
Thank you bro! Clearly explained with dry code. 😊 From me to you is subsciption
@dibakarbera1971
@dibakarbera1971 Месяц назад
thank you sir
@ishu3923
@ishu3923 Месяц назад
sir LRU cache problem pe video bna do.
@amanvishwakarma6394
@amanvishwakarma6394 Месяц назад
helpfull
@motivationalquotes6581
@motivationalquotes6581 23 дня назад
saare question ke approach aur code visualize ho pa rahe hain
Далее
Tell me about yourself | Interview Question #1
0:59