Skip to main content
Tweeted twitter.com/StackCodeReview/status/1610108688890564615
Added some more info
Source Link

Note 2: We cannot use vectors, any statistical related functions, and any other tool that can impact the performance of the code. What we can use though, are basic data types (int, float, double, bool, char, and the long, short, and unsigned versions) and simple conditional and looping structures. To add, the auto keyword is not allowed.

Probably unrelated, but still relevant: Why did I use "we" instead of "I" in the second note?
I'm still learning C++ in school, so I am limiting myself to what we can do in school even though it can really improve the performance.

Note 2: We cannot use vectors, any statistical related functions, and any other tool that can impact the performance of the code. What we can use though, are basic data types (int, float, double, bool, char, and the long, short, and unsigned versions) and simple conditional and looping structures. To add, the auto keyword is not allowed.

Probably unrelated, but still relevant: Why did I use "we" instead of "I" in the second note?
I'm still learning C++ in school, so I am limiting myself to what we can do in school even though it can really improve the performance.

Corrected title, added some info
Source Link

Find the modal value of a sample of integersnumbers

Note: float is used because I don't really intend to use it on big enough numbers. The size can be changed if needed.

Find the modal value of a sample of integers

Find the modal value of a sample of numbers

Note: float is used because I don't really intend to use it on big enough numbers. The size can be changed if needed.

Describe the purpose in the title
Link
Toby Speight
  • 81.8k
  • 14
  • 101
  • 309

Is this a good algorithm for getting Find the modemodal value of a data set?sample of integers

Source Link
Loading