1. Two Sum

leetcode-potd

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up

808. Soup Servings

leetcode-potd

You have two soups, A and B, each starting with n mL. On every turn, one of the following four serving operations is chosen at random,

Count pairs Sum in matrices

gfg-potd

Given two matrices mat1[][] and mat2[][] of size n x n, where the elements in each matrix are arranged in strictly ascending order. Specifically, each row is sorted

Kth element in Matrix

gfg-potd

Given a matrix mat[][] of size n*n, where each row and column is sorted in non-decreasing order. Find the kth smallest element in the matrix. Examples:

Scroll to Top