Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SLL brisi_pomali_od(int iznos) {
- // Vasiot kod tuka
- SLLNode d1 = first;
- SLLNode D2 = first;
- while (d1 !=null){
- if (d1.plata < iznos){
- if (d1 == first)
- d1 = d2 = first = first.succ;
- else{
- d2.succ = d1.succ;
- d1 = d1.succ;
- }
- } else {
- if (d1!=first) d2 = d1;
- d1 = d2.succ;
- }
- }
- return this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement