Posts with tag 'divide and conquer'

Matrix Search Sequel

less than 1 minute read

Given a two-dimensional integer matrix, where every row and column is sorted in ascending order, return whether an integer target exists in the matrix.

Largest Sublist Sum

less than 1 minute read

Given a list of integers nums, return the sum of a non-empty contiguous sublist with the largest sum.

Merging K Sorted Lists

less than 1 minute read

Given a list of sorted lists of integers, merge them into one large sorted list.

Majority Vote

less than 1 minute read

You are given a list of integers nums containing n integers, where each number represents a vote to a candidate.

Kth Smallest Element

less than 1 minute read

Given a list of unsorted integers nums, and an integer k, return the kth (0-indexed) smallest element in the list.

Back to top ↑