Google codejam 2020 solution to nesting depth problem x Problem Given a string of digits S, insert a minimum number of opening and closing parentheses into it such that...
Google codejam 2020 solution to vestigium problem x Problem statement Vestigium means “trace” in Latin. In this problem we work with Latin squares and matrix traces. The trace of...
Find all subarrays with product less than target x Problem Statement Given an array with positive numbers and a target number, find all of its contiguous subarrays whose product is...
Count all triplets with sum less than target in a given array x Problem Statement Given an array arr of unsorted numbers and a target sum, count all triplets in it such that arr+arr+arr...
Find unique triplet closest to target in an array x Problem Statement Given an array of unsorted numbers and a target number, find a triplet in the array whose sum is...