There were supposed to be 4 rounds. 1 coding and 3 face-to-face. 1st Round: Hackerrank, 4 coding questions and 1 hour limit. Not necessary to… Read More »

Given an integer N. The task is to find the number of all possible distinct binary strings of length N which have at least 3… Read More »

Given an integer N, the task is to generate all possible binary strings of length N which contain “01” as the sub-string exactly twice. Examples:… Read More »

Given an integer K, the task is to find the length of the smallest no. N which is divisible by K and formed by using… Read More »

Given an array arr[] containing GCD of every possible pair of elements of another array. The task is to find the original numbers which are… Read More »

LinkedIn resume filtering: I received a mail from the recruiter of Google asking about my resume. After a few days, he called me to ask for… Read More »

Given a N x N matrix mat[][] consisting of non-negative integers, the task is to find the number of ways to reach a given score… Read More »

Given an integer N ≥ 2, you can split the number as a sum of k integers i.e. N = k1 + k2 + …… Read More »

In Software engineering DFD(data flow diagram) can be drawn to represent the system of different levels of abstraction. Higher level DFDs are partitioned into low… Read More »

Given an array arr[] of N integers and an integer K, one can move from an index i to any other j if j ≤… Read More »

Given a string str, the task is to find the longest prefix which is also the suffix of the given string. The prefix and suffix… Read More »

Geek on the top is all about success stories of Geeks who are working hard to chase their goals and are an inspiration for other… Read More »

Given a string str. You are allowed to delete only some contiguous characters if all the characters are same in a single operation. The task… Read More »

Given an unsorted array, trim the array such that twice of minimum is greater than the maximum in the trimmed array. Elements should be removed… Read More »

We can create an object of one class into another and that object will be a member of the class. This type of relationship between… Read More »

In this article, we will see how one can insert the user data using variables. Here, we are using the sqlite module to work on… Read More »

The [attribute] Selector is an inbuilt selector in jQuery, used to select all the elements with the specified attribute. Syntax: $(“[attribute_name]”) Parameter: attribute_name: It is… Read More »

self represents the instance of the class. By using the “self” keyword we can access the attributes and methods of the class in python. It… Read More »

Given an array arr[] and two integers X and Y. The task is to find a sub-array of size of atleast X and atmost Y… Read More »

Given an array arr[], the task is to compute the sum of (max{A} – min{A}) for every non-empty subset A of the array arr[]. Examples:… Read More »