October 2023 0 4 Report
public class TestePFL { public static void main(String args[]) { PilhaDin P = new PilhaDin(); FilaDin F = new FilaDin(); ListaOrd L = new ListaOrd(); for(int i=3; i<8; i+=3) { F.enqueue(i+1); P.push(i-1); } while(!F.qIsEmpty()) L.ins(F.dequeue()); while(!P.isEmpty()) L.ins(P.pop()); L.print(); } } 2, 5, 4, 7 2, 4, 5, 7 7, 4, 5, 2 4, 2, 7, 5
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 ELIBRARY.TIPS - All rights reserved.