Next Greater Number

Pubblicato il: 06 febbraio 2024
sul canale di: Coderbyte
294
10

This week, Liz explores how to solve a medium Stack question.

The Challenge (Medium):
Given two arrays of integers, nums1 and nums2 where nums1 is a subset of nums2, find the next greater integer in nums2 for each integer in nums1.

Video Overview:
0:20 Problem overview
3:15 The naive approach
3:57 Live code naive approach
9:03 Optimized approach using a stack
16:31 Live code optimized approach
21:58 Big O

Please subscribe to our channel :)

Additional Resources:
Practice hundreds of real coding challenges at https://coderbyte.com/


In questa pagina del sito puoi guardare il video online Next Greater Number della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coderbyte 06 febbraio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 294 volte e gli è piaciuto 10 spettatori. Buona visione!