All Medium Articles
Given a singly linked list, rearrange the list so that even and odd nodes are alternate in the list.There are two possible forms of this… Read More
Recently RBS conducted their recruitment for their internship positions. 104 students sat for the process they were shortlisted on basis of CGPA. Round 1:Apti +… Read More
Below mentioned is the Python 3 program to print the double-sided staircase pattern. Examples: Input: 10Output: * * * * * * * * *… Read More
DFA (Deterministic Finite Automaton or Acceptor) is a finite state machine that accepts or rejects strings of symbols. DFA accepts the string if it reaches… Read More
Let us consider the following problem to understand Segment Trees.We have an array arr[0 . . . n-1]. We should be able to 1 Find the… Read More
Given a text file, extract words from it. In other words, read the content of file word by word. Example :  Input: And in that… Read More
xargs is a Unix command which can be used to build and execute commands from standard input. Importance: Some commands like grep can accept input… Read More
Skype Round Discussion on projects and the current work. Print all the subsequences of string. Face to Face Interview Round 1 Check whether two strings… Read More
Compiling graphics codes on CodeBlocks IDE shows an error: “Cannot find graphics.h”. This is because graphics.h runs is not available in the library folder of… Read More
Data Replication is the process of storing data in more than one site or node. It is useful in improving the availability of data. It… Read More
Online Test : Ten Questions were asked . Five of these are MCQs on DSA . Two of the remaining five correct  the Syntax questions… Read More
There are n glasses on the table, all standing upside down. In one move, you are allowed to turn over exactly n – 1 of… Read More
Given a target position on the infinite number line, (-infinity to +infinity). Starting form 0 you have to reach the target by moving as described:… Read More
Given a number, the task is to set all even bits of a number. Positions of bits are counted from LSB (least significant bit) to… Read More
Qualcomm visited our campus to hire software interns. The process had three rounds. Round 1: Logical reasoning and Technical test In this round, there were 60 questions… Read More
Given an integer n and an array of positions ‘position[]’ (1 <= position[i] <= 2n), find the number of ways of proper bracket expressions that… Read More
Given a binary tree, find the path length having maximum number of bends. Note: Here, bend indicates switching from left to right or vice versa while… Read More
Method of applying : I applied to Directi via employee referral. Round 1: Online coding round (Codechef , 90 minutes) Problem 1 : Easy, Adhoc Statement… Read More
Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the… Read More
Give a positive integer n, find modular multiplicative inverse of all integer from 1 to n with respect to a big prime number, say, ‘prime’.… Read More