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
Answer

Interview Answer

2 Answers

0

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

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

    def enqueue(self, item):
        self.items.insert(0,item)

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

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

simple Queue?

X on Apr 7, 2019
0

Hey just wondering if anyone has tried this before? https://www.rooftopslushie.com

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: https://www.rooftopslushie.com/request/Microsoft-Azure-Onsite-Interview-196

Anonymous on Jun 12, 2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.