menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Productivity News

>

Logics in ...
source image

Dev

1w

read

88

img
dot

Image Credit: Dev

Logics in Problem Solving

  • Solved three problems on LeetCode: Sliding window maximum, Implement queue with stack and Perfect squares.
  • Sliding window maximum problem involves finding the maximum number in a sliding window of size k.
  • Approaches to solve Sliding window maximum problem: using nested for loop or using dequeue.
  • Implement queue with stack problem can be solved by using two stacks.
  • Perfect squares problem requires finding the minimum number of perfect squares that sum up to a given input number.

Read Full Article

like

5 Likes

For uninterrupted reading, download the app