DSA
DSA copied to clipboard
Collection of DSA problems and solutions
The spiral matrix problem, often referred to as "Spiral Order Matrix" or "Spiral Traversal of a Matrix," is a common coding interview question and a fundamental algorithm problem. The task...
Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted order, not...
Using Dynamic programming. Given an integer array C where C[i] is the cost of ith step on a staircase. Once we pay the cost, we can either climb one or...
Submit any code related to Sorting and searching add under array/Sorting and Searching/