Click here to Skip to main content
15,849,829 members
Home / Discussions / Java
   

Java

 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
TheLaughingManAnDerTU26-Apr-11 7:04
TheLaughingManAnDerTU26-Apr-11 7:04 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
Manfr3d27-Apr-11 1:05
Manfr3d27-Apr-11 1:05 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
JavaStudent_LA29-Apr-11 16:17
JavaStudent_LA29-Apr-11 16:17 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
Manfr3d30-Apr-11 4:41
Manfr3d30-Apr-11 4:41 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
JavaStudent_LA3-May-11 17:26
JavaStudent_LA3-May-11 17:26 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
Manfr3d3-May-11 22:58
Manfr3d3-May-11 22:58 
GeneralMessage Removed Pin
4-May-11 5:44
JavaStudent_LA4-May-11 5:44 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
Manfr3d4-May-11 8:32
Manfr3d4-May-11 8:32 
Well, I'm not that friend of recursion, too, but my iterative solution killed the testing framework ^^
Your for-loop has to start at 1, else you reach the first element of the right sub-list.
The 2nd for-loop is redundant. lastRight = in.first.previous; will do the same much quicker and less error-prone.
Except for the missing recursive calls, the merge part and testing for special cases, it doesn't look so bad.
GeneralRe: In-place Merge-Sort with doubly linked list Pin
JavaStudent_LA8-May-11 12:41
JavaStudent_LA8-May-11 12:41 
Questionmysql to oracle conversion tool Pin
ankit.mathurs21-Apr-11 17:39
ankit.mathurs21-Apr-11 17:39 
AnswerRe: mysql to oracle conversion tool Pin
TorstenH.21-Apr-11 23:56
TorstenH.21-Apr-11 23:56 
Questionform validations in java Pin
ships_agr21-Apr-11 0:47
ships_agr21-Apr-11 0:47 
AnswerRe: form validations in java Pin
TorstenH.21-Apr-11 2:36
TorstenH.21-Apr-11 2:36 
GeneralRe: form validations in java Pin
ships_agr21-Apr-11 21:19
ships_agr21-Apr-11 21:19 
GeneralRe: form validations in java Pin
TorstenH.21-Apr-11 23:36
TorstenH.21-Apr-11 23:36 
GeneralRe: form validations in java Pin
ships_agr25-Apr-11 10:15
ships_agr25-Apr-11 10:15 
QuestionProblem with my code Pin
mofuobi21-Apr-11 0:45
mofuobi21-Apr-11 0:45 
AnswerRe: Problem with my code Pin
TorstenH.21-Apr-11 2:30
TorstenH.21-Apr-11 2:30 
QuestionIWAB0380E Errors were encountered while validating XML schemas. XSD: Pin
R V Reddy20-Apr-11 21:07
R V Reddy20-Apr-11 21:07 
AnswerRe: IWAB0380E Errors were encountered while validating XML schemas. XSD: Pin
Peter_in_278020-Apr-11 21:45
professionalPeter_in_278020-Apr-11 21:45 
AnswerRe: IWAB0380E Errors were encountered while validating XML schemas. XSD: Pin
TorstenH.20-Apr-11 23:08
TorstenH.20-Apr-11 23:08 
GeneralRe: IWAB0380E Errors were encountered while validating XML schemas. XSD: Pin
Wael Al Wirr18-May-11 23:53
Wael Al Wirr18-May-11 23:53 
Questioncan we drop packet passing through us and resend it after altering it? Pin
csanuragjain16-Apr-11 22:17
csanuragjain16-Apr-11 22:17 
AnswerRe: can we drop packet passing through us and resend it after altering it? Pin
Richard MacCutchan16-Apr-11 22:27
mveRichard MacCutchan16-Apr-11 22:27 
GeneralRe: can we drop packet passing through us and resend it after altering it? Pin
csanuragjain16-Apr-11 23:15
csanuragjain16-Apr-11 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.