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

  Рет қаралды 1,391

shashCode

shashCode

Күн бұрын

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/p...
Java Plus DSA Placement Course Playlist:
• Java and DSA Course Pl...
Java Plus DSA Sheet:
docs.google.co...
Notes:
github.com/Tiw...
Telegram Link:
shashwattiwari...
Ultimate Recursion Series Playlist:
• Recursion and Backtrac...
Instagram Handle: (@shashwat_tiwari_st)
shashwattiwari...
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​

Пікірлер: 12
@RohitKumar-dz8dh
@RohitKumar-dz8dh 3 ай бұрын
Thanks 😊 , mene ye problem priority queue se solve Kiya aur yaha aya to dekha ye problem utha complex nahi jitna mene bana diya 😂😂.
@GirjeshSharma-zv3xo
@GirjeshSharma-zv3xo 3 ай бұрын
Sir jab se aapse padna shri kra h tab se coding m intrest aane lga h thank you for your hardworl❤❤
@a3rdtierguy864
@a3rdtierguy864 3 ай бұрын
mai isko map se karne ka intitution build kar diya tha but here for optimized approach
@Munchen888
@Munchen888 3 ай бұрын
Thank you bro! Clearly explained with dry code. 😊 From me to you is subsciption
@PiyushSharma-we8yd
@PiyushSharma-we8yd 3 ай бұрын
mujhe question 5 baar padhne pr bhi samajh nhi aya but jb smjh aa gya, turant solve hogya 😍😍😍
@ishu3923
@ishu3923 3 ай бұрын
sir LRU cache problem pe video bna do.
@Nishant89-i2z
@Nishant89-i2z 2 ай бұрын
saare question ke approach aur code visualize ho pa rahe hain
@dibakarbera1971
@dibakarbera1971 3 ай бұрын
thank you sir
@amanvishwakarma6394
@amanvishwakarma6394 3 ай бұрын
helpfull
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 373 М.
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 18 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 40 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 11 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
How to Study NCERTs for UPSC CSE exam? | StudyIQ IAS
8:58
StudyIQ Books
Рет қаралды 54
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 488 М.
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 375 М.
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 18 МЛН