Skip to main content
Chaker's user avatar
Chaker's user avatar
Chaker's user avatar
Chaker
  • Member for 9 years, 2 months
  • Last seen more than 5 years ago
awarded
awarded
awarded
awarded
awarded
comment
Find the longest subarray with sum less than K
@hpaulj yes the array is a Python list
comment
Find the longest subarray with sum less than K
Thanks!!! And of course I am interested in the code you used.
comment
Loading…
awarded
accepted
revised
Equivalent passwords ACPC 2014
Removing to string conversion
Loading…
comment
Equivalent passwords ACPC 2014
@MirMasej Thanks I change it to Math.abs(p1.charAt(i) - p2.charAt(i)) != diff, However no great difference in runtime.
revised
Equivalent passwords ACPC 2014
deleted 8 characters in body
Loading…
comment
Equivalent passwords ACPC 2014
@Marc-Andre Sorry I Changed it just to see how fast the calculation happens. I was writing it to a file usingwr.println. The problem seems to be from my algorithm since it take a long time to print out the result ( more than 30 seconds for 100000 passwords).
revised
Equivalent passwords ACPC 2014
added 1 character in body
Loading…
revised
Equivalent passwords ACPC 2014
added 504 characters in body
Loading…
asked
Loading…
awarded
revised
Finding overlapping time intervals for two games
deleted 62 characters in body
Loading…