Once I saw this problem, I didn't even attempt. I spent like 5-10 mins trying to reason it out but couldn't. Lol. So I moved on the "hard" one, which I could still reason out
Bro, I tried your solution, 670/671 test cases are running fine on LC using this solution. For the last test case, its giving TLE using your solution 🙃
you didnt even used threshold conditions ,, even though leetcode 700 test cases didnt had a single case where threshold will be challenged. but your code has flaw
why error is coming class Solution { public: void addEdge(int u , int v , list* &revl){ // u----v // directed revl[u].push_back(v); } bool isposs(int n ,vector& edges , int maxwt ){ list *revl = new list[n]; for(auto e : edges){ if(e[2]
Explanation is top notch ❤❤❤❤❤❤
I solved this using Prims Algo , but kudos to this one too !
Very Helpful Video .
Thank you for the video, the threshold had me stumped during the contest.
Good Explaination!
I solved only 1/4 in today's contest.
Same here
But one day I able to solve 4 questions by myself
@harsh_dhakad_Gamer yea, you will if you are consistent.
Loved it !!
Thank you
😊😊
bro i was able to solve first 2 problems.
Once I saw this problem, I didn't even attempt. I spent like 5-10 mins trying to reason it out but couldn't. Lol. So I moved on the "hard" one, which I could still reason out
The Best 🔥
best explanation is there any other method to solve this question....................
prim's minimum spanning tree is technically a faster solution than this.
Thanks
Bro, I tried your solution, 670/671 test cases are running fine on LC using this solution.
For the last test case, its giving TLE using your solution 🙃
same issue here ! though i was using c++
@@Piyanshu-d5x I also used C++
2/4
4th question please
It was easy questions but threshold one was confusing, why they have given this 😏
you didnt even used threshold conditions ,, even though leetcode 700 test cases didnt had a single case where threshold will be challenged. but your code has flaw
why error is coming
class Solution {
public:
void addEdge(int u , int v , list* &revl){ // u----v
// directed
revl[u].push_back(v);
}
bool isposs(int n ,vector& edges , int maxwt ){
list *revl = new list[n];
for(auto e : edges){
if(e[2]