About 50 results
Open links in new tab
  1. what is actually a circular array and representation

    There are two ways to implement a circular array either take a new array of size 2N where N is the size of the initial array and copy initial array twice into that new array array = [1,2,3,4,5]

  2. Extending the implementation of a Queue using a circular array

    Apr 21, 2017 · Describe how you might extend your implementation [of a queue using a circular array] to support the expansion of the Queue to allow it to store more data items.

  3. Maximum Circular Subarray sum - Computer Science Stack Exchange

    May 23, 2020 · Suppose A is a circular array. In this setting, a “contiguous subarray” can be either an interval A [i .. j] or a suffix followed by a prefix A [i .. n] · A [1 .. j]. Describe and analyze an algorithm …

  4. Formula for returning the size of a circular array

    Jun 4, 2015 · I've come across a way of implementing a circular array that represents a double ended queue. Let the circular array have the following instance variables: int[] array; int front = 0; int rear = ...

  5. Circular Queue using Dynamic Array - Computer Science Stack Exchange

    In the topic, Circular Queue using Dynamic Array, the author has mentioned below point, Let capacity be the initial capacity of the circular queue,We must first increase the size of the array using realloc,this …

  6. What is the time complexity of enqueue and dequeue of a queue ...

    Mar 2, 2019 · I’m trying to understand the time complexity of a queue implemented with a linked list data structure. My book says that we can the implement a queue in O(1) time by: enqueueing at the back …

  7. Can anyone explain how a circular buffer array works?

    Oct 7, 2022 · I'm currently learning about Data Structures and Abstractions and one particular problem has been very confusing to me, and that is the concept of Circular ArrayDeque. In particular, how …

  8. Is there a O(log n)-time algorithm to find the maximum element of a ...

    Nov 2, 2019 · Is there a O (log n)-time algorithm to find the maximum element of a circular shift of a sorted array? Ask Question Asked 6 years, 1 month ago Modified 6 years, 1 month ago

  9. Size of Circular Queue - Computer Science Stack Exchange

    I am Implementing a Queue using circular arrays in C language .The Implementation uses one empty position to indicate that the queue is full.That is if the rear is two position behind front. The

  10. How would you identify the size of a circular turing tape?

    Suppose you have a circular turing tape, i.e. simply a circular array. You do not know the size i.e. the number of cells available in that circular array. The array consists only of binary digits. Lets say you …