These modern C++ examples are meant to serve as examples for me to reference now that I've determined to stop programming in C++ as if it were C. The STL, now that I'm using it regularly is so great that I hardly feel stripped of my Python powers. Well... list comprehensions... I mostly miss that.
- Check if a string contains any one of a number of characters
- Check if a string contains a given substring
- Working with filenames using string member functions
- Remove chars from a string
- Merge two lists using std::merge()
- Append a list to the end of another
- Remove elements using a filter
- min_element(), max_element(), accumulate()
- Using std::accumulate
- Sort and comparator functions
- A Vector of vectors
- More vector of vectors
- Randomly shuffle elements in a vector or a list
- Rearrange a collection into the next lexicographical permutation
- Basic unordered_map examples
- Find word frequencies using unordered_map
- Check whether one map's keys exist in another map
- Application: Solving the classic interview problem "2-sum"
- Application: Solving the interview problem "Frequency Sort"
- Application: Solving the interview problem "LRU Cache"
- A simple implementation of a singly-linked list
- Merge two singly-linked lists
- A class implementation of a singly-linked list
- Reverse an Integer
- Container with the most water
- Implement atoi() to convert input string to 32-bit integer
- Longest Palindromic Substring
