Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
I think the answer example answer might be wrong

brendonv93

Jan 31, 2024

  • Input: nums1 = [4,2,6]nums2 = [6,2,4,5,3,7]
  • Output: [5,4,7]
  • Explanation: The next greater number for 4 is 5, for 2 is 4, and for 6 is 7 in nums2.

isn't the next biggest number after 2 in nums2 3?

2

0

Comments
Comments
B
brendonv93 2 years ago

nevermind, I reread the problem statement more closely

On this page