aayushssinghal 0 Newbie Poster

i want to implement queue in scheme with out increasing the complexity of the algorithm.
Right now for inserting an element at the end of the queue i need to travel through whole queue. that makes insertion O(N) process.
pls help me with this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.