Comments
On CLICKHERE → MST, 6 years ago
0

Okay

On CLICKHERE → MST, 6 years ago
0

And Thankyou for the help

On CLICKHERE → MST, 6 years ago
0

if the question constraint using prim's mst only then on dense graph I shall use matrix method and on sparse I shall use priority queue method?

On CLICKHERE → MST, 6 years ago
0
On CLICKHERE → MST, 6 years ago
0

I am not that great at CP, currently I am beginning at data structures. Please can you explain.

On CLICKHERE → MST, 6 years ago
0

Which has the better time complexity between above and this

On CLICKHERE → Sort in Class, 7 years ago
0

Okay got it. thank you very much.

On CLICKHERE → Sort in Class, 7 years ago
0

But why static?

On CLICKHERE → Sort in Class, 7 years ago
0

Yes. Perfectly Worked.

On CLICKHERE → Sort in Class, 7 years ago
0
static bool cmp(const int &a, const int &b){
		return (a < b);
	}

like this?

On CLICKHERE → Vector in Class, 7 years ago
0

non-static data member declared with placeholder ‘auto’

On CLICKHERE → Vector in Class, 7 years ago
0

It gives error fff

On CLICKHERE → Vector in Class, 7 years ago
+1

Wonderfull!

On CLICKHERE → Vector in Class, 7 years ago
0

Got it

On CLICKHERE → Vector in Class, 7 years ago
0

Okay thank you

On CLICKHERE → Vector in Class, 7 years ago
0

Okay but why? how to declare this in class vector<vector<pair<T, pair<T, T2>>>> adjList(5) ?

vector<vector<pair<T, pair<T, T2>>>> adjList = vector<vector<pair<T, pair<T, T2>>>> (5) like this?