Algorithms, C++, std

std::map

Simple insert

  Access to second element using key (C++ 11)

  Iterate…

Continue Reading

C++, LeetCode

Unordered Map

According to the documentation, the average searching complexity is O(1), by looking more into…

Continue Reading

LeetCode

1. Two Sum

 

 

C++, ProjectEuler+

[ProjectEuler+] #8: Largest product in a series

Using string & substr instead of int for large result

C++, ProjectEuler+

[ProjectEuler+] #6: Sum square difference

C++, ProjectEuler+

[ProjectEuler+] #5: Smallest multiple