Ahmet_Durmic

Untitled

Jul 17th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. bool Is_Sorted(){
  2. Node *temp=new Node;
  3. temp=head;
  4. while(temp!=nullptr&&temp->next!=nullptr){
  5. if(temp->broj>temp->next->broj){
  6. return false;
  7. }
  8. temp=temp->next;
  9. }
  10. return true;
  11. }
Add Comment
Please, Sign In to add comment