Jump to content

Recommended Posts

Posted

The answer I chose was B,

 

its not

 

A - because we are always taught to never make assumptions there for limiting the dataset to 100 elements is not practical what if the customer has 200, so this is not an option.

 

its not

 

D - because a language doesnt determine effiency it could be writting in lowlevel langages like assembly language or high level like java the language doesnt determine speed.

 

-------------------

 

now heres the issue C makes a little bit of sense to me because lets say our element is at location 1600 say we had 3000 elements we could start at 1500 and find the element quicker by putting the counter in the middle however I never chose it because lets says our element is 3 that means we would test the upper limits for no reason, and when i program I always pass an accessor to find the element and return it straight away thats why I chose B.

 

any thoughts if im correct?

 

x0zgub.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.