Julia likes to write a separate blog on C++ 14 Set class. She spent time to read C++ solution on algorithm minimum loss. She like to do some research on C++ Set
C++ Set underneath is a binary search tree.
Here is the problem statement:
Study code:
https://gist.github.com/jianminchen/bae3b7c5c3326213d1ff800aef47ebc8
https://gist.github.com/jianminchen/9098f545f0b750fe1cb4acd6a2c0b1b9
C++ Set analog in C#:
http://stackoverflow.com/questions/575406/what-is-the-c-sharp-equivalent-of-the-stl-set
SortedDictionary<T, U>
Actionable Item:
Study C++ 14 Set class, spend 30 minutes to go over all API - memorize all the APIs.
http://www.cplusplus.com/reference/set/set/set/
26 APIs
begin
cbegin
cend
clear
count
crbegin
crend
emplace
emplace_hint
empty
end
equal_range
erase
find
get_allocator
insert
key_comp
lower_bound
max_size
operator=
rbegin
rend
rize
swap
upper_bound
value_comp
No comments:
Post a Comment