Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

New to STL

$
0
0

I've started using STL in C++ but am not much comfortable with it.Could somebody tell me some good source for STL. I wanted to implement a min heap in STL C++ for Dijkstra Algorithm.Could somebody provide me with some code.Since by default the implementation is a max heap when you call make_heap() on a vector.How should I change the compare function so that make_heap creates a min_heap? How does the use of STL features impact the time and memory of the program from the point of view of programming competitions?


Viewing all articles
Browse latest Browse all 40121

Trending Articles