Given a two dimensional matrix A of zero’s and one’s and an integer K. In each move, you can choose any row or column and… Read More »

#
All Medium Articles

Given a list of words in Python, the task is to remove the Nth occurrence of the given word in that list. Examples: Input: list… Read More »

Given a word containing vowels and consonants. The task is to find that in how many different ways word can be arranged so that the… Read More »

Given integers ‘N’ and ‘K’ where, N is the number of vertices of an undirected graph and ‘K’ denotes the number of edges in the… Read More »

Given two integers and . The task is to find the maximum value of x, such that, n! % (k^x) = 0. Examples: Input :… Read More »

Given an array A[] of integers. The task is to return the sum of the width of all subsequences of A. For any sequence S,… Read More »

Pre-requisite: Operator Overloading in C++ Given two strings. The task is to concatenate the two strings using Operator Overloading in C++. Example: Input: str1 =… Read More »

Token Bus (IEEE 802.4) is a popular standard for the token passing LANs. In a token bus LAN, the physical media is a bus or… Read More »

To disable a link using CSS, pointer-events property can be used, which sets whether the element in the page has to respond or not while… Read More »

Given an integer ‘k’ and a string ‘str’ consisting of characters from English alphabets. The task is to convert all lower case character to uppercase… Read More »

Given n cities: x1, x2, …… xn: each associated with T[i] (treasure) and C[i] (color). You can choose to visit a city or skip it.… Read More »

I am a 2018 b.tech(CSE) graduate and contacted a recruiter through LinkedIn, drive happened at Gurgaon office and gave an interview for a Bangalore team.… Read More »

Problem: How to merge two arrays while keeping keys instead of reindexing in PHP? Solution: This can be achieved in two ways which are by… Read More »

Given an Grid of integers. The task is to find total numbers of 3 x 3 (contiguous) Magic Square subgrids in the given grid. A… Read More »

Problem: Convert timestamp to readable date/time in PHP Solution: This can be achieved with the help of date() function, which is an inbuilt function in… Read More »

Given an unsigned integer x. Round it up to the next greater multiple of 8 using bitwise operations only. Examples: Input : 35 Output :… Read More »

Given a string S containing letters and ‘#‘. The ‘#” represents a backspace. The task is to print the new string without ‘#‘. Examples: Input… Read More »

We have an integer N. We need to express N as a sum of K integers such that by adding some(or all) of these integers… Read More »

Given an array containing weights of gifts, and an integer K representing maximum weight a box can contain (All boxes are uniform). Each box carries… Read More »

The wait() and join() methods are used to pause the current thread. The wait() is used in with notify() and notifyAll() methods, but join() is… Read More »