gibsjose / cpp-cheat-sheet Goto Github PK
View Code? Open in Web Editor NEWC++ Syntax, Data Structures, and Algorithms Cheat Sheet
C++ Syntax, Data Structures, and Algorithms Cheat Sheet
std::map
does not have a method to find by value, but rather only by key.
HI,
Can you please assign me this task for hacktoberfest?
Under 1.10 Heap std:: priority queue
The definition of min-heap is provided as "A min-heap is structured with the root node as the smallest and each child subsequently smaller than its parent" which is incorrect because the root of tree would be the smallest element and its children would have a higher value than that.
Similarly, the definition of max-heap also should be modified to "A max heap is structured with the root node as the largest and each child subsequently smaller than its parent".
The data structures and algorithms sheet is pretty much filled out, but the C++ sheet is lacking...
There are gifs which are not working.
Example:
![BinarySearch](Searching/Animations/Binary Search.gif)
Hello,
First, thanks for the great resource! I just wanted to point out that std::set
does not contain method remove
as it is indicated in your code example. Instead std::set::erase
should be used.
Thanks again,
tamaroth
On the following section for map: https://github.com/gibsjose/cpp-cheat-sheet/blob/master/Data%20Structures%20and%20Algorithms.md#15-map-stdmap-and-stdunordered_map
//iterator
for(std::map<int>::iterator it = m.begin(); it != m.end(); it++) {
I believe it should be
//iterator
for(std::map<std::string, std::string>::iterator it = m.begin(); it != m.end(); it++) {
It is hard to see clearly the curves on the current "Big-O Complexity" Chart and will be better if we could add line markers on it.
Knapsack and Travelling sales man algorithms missing in the data structures and algorithms cheat sheet
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.