summaryrefslogtreecommitdiff
path: root/PlaygroundCpp/.project
diff options
context:
space:
mode:
authorHaidong Ji2018-12-17 08:43:36 -0600
committerHaidong Ji2018-12-17 08:43:36 -0600
commit6f3a936cda8cb7ec03da98d078d5c34b430429f2 (patch)
tree7b57d720d51d5390ddc78aee27c4a94bc4a53164 /PlaygroundCpp/.project
parent956e0d50a9f0bea2752cc1a84ec26bc72416ce60 (diff)
Closest Pair done in C++!
Finally Divide and Conquer section is finished. A lot of work but so much fun! A few take aways: 1. Be careful when copying code over from Java to C++. Java does parameter passing through reference as default, but I forgot to add "&" in C++ code, which caused my code not passing earlier; 2. Avoid unnecessary calculation. For example, the sqrt calculation is not necessary, until the last step. Avoiding that in my Python code saved a lot of time. 3. It seems that preallocate vector size, if you know beforehand, is a good idea. Woohoo, onto the next section!
Diffstat (limited to 'PlaygroundCpp/.project')
0 files changed, 0 insertions, 0 deletions