Haneunhanlee.hashnode.devยทJul 22, 2022[Solution] 2148. Count Elements With Strictly Smaller and Greater ElementsProblem Problem_Link Solutions (time, space) O(n), O(1) class Solution { public int countElements(int[] nums) { int min = Integer.MAX_VALUE; int max = Integer.MIN_VALUE; int count = 0; for (int temp : nums) { ...Algorithm Solving StudyleetcodeAdd a thoughtful commentNo comments yetBe the first to start the conversation.