• 0

Algorithm Problem (Beginner)


Question

There are unknown number of data sets of different sizes. Write an algorithm to read individual data sets and find the maximum of each set, then calculate average max.

Can someone help me to write the algorithm for this?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

And this is how I end up with people attempting to sit interviews with me then ending up looking ridiculous when they can't even solve the most fundamental logic problems...  Research your own stuff!

Link to comment
Share on other sites

  • 0

how to solve the problem

 

1. Read the question

2. break it down into parts

3. doing a bunch of research

4. pick a language you are comfortable with

5. attempt each part of the question you broke down. Learn from the mistakes you make, check over code and use what works.

 

6. come with a good attempt that works well, then ask for help.

  • Like 1
Link to comment
Share on other sites

This topic is now closed to further replies.