Home > Back-end >  Java list sorting algorithm with the Idea
Java list sorting algorithm with the Idea

Time:12-12



Excuse me each great god what is this?

Complete code is as follows (at a single table sorting algorithm)

Public void sorting ()
{
ListNode ps=head; ListNode mv=ps. Next;
If (ps==null | | mv==null) return;
While (ps!=null)
{

While (mv!=null)
{

String s;
If ((ps. I). CompareTo (mv) I) & lt;=0) {s mv. I; The mv. I=ps. I;
Ps. I=s; }
The mv=mv. Next;
}
Ps=ps. Next;
}

}
  • Related