Nitish Chandra·Dec 16, 20191192. Critical Connections in a NetworkThere are n servers numbered from 0 to n-1 connected by undirected server-to-server connections forming a network where connections[i] =…
Nitish Chandra·Nov 24, 20191096. Brace Expansion IIUnder a grammar given below, strings can represent a set of lowercase words. Let’s use R(expr) to denote the set of words the expression…A response icon1A response icon1
Nitish Chandra·Jul 14, 2019WC 2019 Indian campaignSo finally the dream of pulling ahead of the group of two time WC winners with a third WC is over. The way it ended with India losing 3…
Nitish Chandra·Mar 11, 2019992. Subarrays with K Different IntegersGiven an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different…
Nitish Chandra·Apr 10, 2018Smallest Rotation with Highest ScoreGiven an array A, we may rotate it by a non-negative integer K so that the array becomes A[K], A[K+1], A{K+2], ... A[A.length - 1], A[0]…
Nitish Chandra·Mar 16, 2018Partition Equal Subset SumGiven a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of…
Nitish Chandra·Mar 16, 2018Special Binary StringSpecial binary strings are binary strings with the following two properties:
Nitish Chandra·Mar 13, 2018Swim in Rising WaterOn an N x N grid, each square grid[i][j] represents the elevation at that point (i,j).