Skip to main content
K.Steff's user avatar
K.Steff's user avatar
K.Steff's user avatar
K.Steff
  • Member for 12 years, 7 months
  • Last seen more than 1 year ago
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
comment
Practical Usage Of Structures in c#
Dear downvoter, care to explain the downvote? This community is based on sharing knowledge, something you clearly couldn't have possibly had the time to do...
comment
Conflict resolution for two-way sync
I agree that a case-by-case approach is the appropriate way to go here. The "best" way (git approach) is not always applicable, as users may not want to review/merge changes
awarded
awarded
awarded
awarded
awarded
awarded
comment
Is it necessary to read every single byte to check if a copied file is identical to the original?
@KeithThompson I'm upvoting the answer, but I think it's about time for an update on SHA1 - The SHAppening
awarded
comment
How to improve efficiency with functional programming?
@semicolon Well comparing a single runtime on a single case is probably not the best way to measure performance. If you believe you have arrived at a better (more performant) solution than the currently accepted answer, add another answer and then we can have a meaningful discussion about performance. I continue to believe that the currently accepted solution is asymptotically better in memory and equal in time.
comment
How to improve efficiency with functional programming?
@semicolon I should have qualified my comment, sorry about it. My statement was related to the hidden price of calculating all primes up to N - the naïve Eratosthenes is O(N*log(N)*log(log(N))) operations and O(N) memory which means this is the first component of the algorithm that will run out of memory or time if N is really big. It doesn't get much better with the sieve of Atkin, so I concluded the algorithm will be less appealing than the foldl lcm [1..N], which needs a constant number of bigints.
1
2 3 4 5
16