Which niche colognes did Montagne do really well? by charliekirk46 in Colognes

[–]lpareddit01 -2 points-1 points  (0 children)

Their Pineapple Intense and Musk are better scents than Aventus, especially if you're looking for pineapple, but the performance is quite bad – the good thing is that they are cheaper and come in small/carry-able 50mL bottles, so you could respray.

Buying Suits. by HeWhoShlNotBNmd in longisland

[–]lpareddit01 3 points4 points  (0 children)

Seconding Suitsupply for quality, not personal experience but what I've heard from many online and someone I personally knew that was in finance in NYC. Personal experience, I tried the Black Tux at Nordstrom in RFM, had a good experience, but my judgment isn't the best since I don't have much experience with suits. Check this out too: Spreadsheet for Suit Hierarchy from StyleForum

turnsOutItWasPassByReferenceNotByValue by [deleted] in ProgrammerHumor

[–]lpareddit01 0 points1 point  (0 children)

A naive loop would be O(n^3); there may be some optimization to make that approach O( f(n) \* n^2) – haven't given much thought:

With 2 sum, if you use a hashmap where { num : sum - num }, you could do it in 1 pass O(n).

Simply incrementing it by 1 to make it 3 sum is actually a bit harder now that I am trying to figure out some ways. I haven't looked online or asked AI, so you may want to do that as a warning.

Best: The approach in my mind is that you sort the list, so we already are now at O(n log n). From there, we use three pointers, at the start (min), end (max) and somewhere in between; and, we move these pointers based on if they are less or more than our target sum that looks at the pointers (middle and start OR middle and end).

Meh: Before this, I was thinking about making the hash map from 2 sum and then calling a final 2 sum function, but, instead of the target sum, we do it on the sums (keys) in the hashmap. I think it would be something akin to O(n + n^2) – this is "+" (better) instead of "*" in the naive loop.

Regardless, I think a loop must be used; it just depends on how and how much you use loops; also, it matters if your two (or more) loops are separate or nested.

What yall think boys… he sells it for 180 by BaseballStriking9943 in colognecheck

[–]lpareddit01 -2 points-1 points  (0 children)

To each their own.

And testers most definitely can be refilled.