HN2new | past | comments | ask | show | jobs | submitlogin

somehow everytime i see a question with linked list I'm conditioned to look for in-place solution. Something like

    list = getOddsToTheFront(list)
    list = sortOdds(list)
    list = sortEvens(list)
implementation of helper methods left as an exercise for the reader


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: