title: How to update rear in a circular linked list?
body: <p>I need help updating the rear of a circular linked list if I move a set of nodes after the initial rear.</p>
  
  <p>Lets assume rear is the rear node and rear.next circulates back to <code>[1]</code>.</p>
  
  <pre><code>[1][2][3][4][5]  
  &lt;-------------/
  </code></pre>
  
  <p>If I move <code>[1][2][3]</code> <em>after</em> node <code>[5]</code> giving me</p>
  
  <p><code>[4][5][1][2][3]</code>, which breaks the circular linked list,</p>
  
  <p>How can I approach updating <code>[3]</code> as rear and rear.next to point to <code>[1]</code>?</p>