#code

Read more stories on Hashnode

Articles with this tag

Rat in a maze · Q24:Consider a rat placed at (0, 0) in a square matrix of order N * N. It has to reach the destination at (N - 1, N - 1). Find all...

N Queens · Q23:The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer...

Permutations · Q18:Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example...

Number of SubArrays with bounded Maximum · Q10:Given an integer array nums and two integers left and right, return the number of contiguous non-empty...

Max Chunks To Make Sorted II · Q9: You are given an integer array arr. We split arr into some number of chunks (i.e., partitions), and individually sort...

Max Chunks to make Sorted · Q8: You are given an integer array arr of length n that represents a permutation of the integers in the range [0, n - 1]. We...