Reputation
17,029
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 33 67
Newest
 algorithms
Impact
~545k people reached

Dec
22
comment Hash function with uniqueness guarantees and controllable entropy
input? there shouldn't be input for an RNG
Dec
20
comment Why is close() implemented in InputStream/OutputStream?
it is part of it, the closeable interface is a retro fit
Dec
20
revised Initialize in Field, Constructor, or Argument
added 706 characters in body
Dec
20
revised Initialize in Field, Constructor, or Argument
rolled back to a previous revision
Dec
19
revised Initialize in Field, Constructor, or Argument
deleted 3 characters in body
Dec
19
revised Initialize in Field, Constructor, or Argument
added 18 characters in body
Dec
19
answered Initialize in Field, Constructor, or Argument
Dec
19
revised Shared & exclusive locking
added 862 characters in body
Dec
19
answered Shared & exclusive locking
Dec
19
awarded  Nice Answer
Dec
18
answered Test Driven Development when the specifications change
Dec
17
comment What is a good word for the current “state” of a state machine?
State state = State.START_STATE;
Dec
13
comment What's the purpose of keeping a changelog if everyone uses their VCS properly?
People use changelogs, though you can often generate them from commit messages
Dec
13
comment Is it possible to quickly change an array declared on the stack to one declared on the heap
you'll need to delete it later as well
Dec
13
comment Permutting a list of numbers in order to get a list which satisfies given condition
Because they are the ones closest to all the others, putting them at the ends eliminates one distance from each of them. your method can be improved simply by putting the last number you add to the beginning.
Dec
13
comment Permutting a list of numbers in order to get a list which satisfies given condition
I'd say the beginning and end should contain the 2 middle numbers (the median and number closest to it)
Dec
12
revised Permutting a list of numbers in order to get a list which satisfies given condition
formatting
Dec
12
comment Searching algorithm used in switch statement
@MichaelT then the compiler would just copy the code of case 2 to after case 1 or make it a if cascade with goto endSwitch; for each break.
Dec
12
revised Searching algorithm used in switch statement
added 14 characters in body
Dec
12
answered Searching algorithm used in switch statement