Microsoft Interview Question: Implement a bounded bifocii d... | Glassdoor

Interview Question

Software Engineer Interview

Implement a bounded bifocii data structure using an array

  and efficient enqueue and dequeue algorithms

Interview Answer

2 Answers


class Queue:
    def __init__(self):
        self.items = []

    def isEmpty(self):
        return self.items == []

    def enqueue(self, item):

    def dequeue(self):
        return self.items.pop()

    def size(self):
        return len(self.items)

simple Queue?

X on Apr 7, 2019

Hey just wondering if anyone has tried this before?

It says you can ask questions directly to verified employees at MS and ask questions about the company.. Is it worth it? Check this out:

Anonymous on Jun 12, 2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.