For leetcode contests are we permitted to look up building blocks of a solution?

For leetcode contests are we permitted to look up the building blocks of a solution?
Note: I do not mean searching for actual solution as that would be clearly cheating.

For example,
A contest question like this has building blocks like finding the index of the max value of the array.

If one of the building blocks for my solution is to find the max value of the array and it is not in the Java 8 API,
am I allowed to search for how to do it?

Obviously, we are not going to search for the solution to the question (trimMean) even if it is somewhere on the internet - that would be cheating.

Comments (0)