Microsoft Interview Experience | Set 155 (For Data Scientist)

Online Test: This was a cocubes online test. Multiple choice questions regarding basic machine learning and a little bit of neural network was asked. The… Read More »

ZigZag Tree Traversal

Write a function to print ZigZag order traversal of a binary tree. For the below binary tree the zigzag order traversal will be 1 3… Read More »

Python | Maximum and minimum element’s position in a list

Given a list of N integers, find the maximum and minimum element’s position in the list. Examples: Input : 3, 4, 1, 3, 4, 5… Read More »

Java program to read all mobile numbers present in given file

Given the input text file, read all mobile numbers present and write to some output file. Suppose we have a file names as input.txt and… Read More »

IDE for Python programming on Windows

The following are the list of best IDE’s for Python Programming on Windows operating systems. 1) PyCharm 2) Eclipse with Pydev 3) Wing IDE 4)… Read More »

SequenceMatcher in Python for Longest Common Substring

Given two strings ‘X’ and ‘Y’, print the longest common sub-string. Examples: Input : X = “GeeksforGeeks”, Y = “GeeksQuiz” Output : Geeks Input :… Read More »

Position of robot after given movements

Given a robot which can only move in four directions, UP(U), DOWN(D), LEFT(L), RIGHT(R). Given a string consisting of instructions to move. Output the co-ordinates… Read More »

Breaking a number such that first part is integral division of second by a power of 10

Given a very large number N, we need to count the total ways such that if we divide the number into two parts a and… Read More »

Queries on Left and Right Circular shift on array

Given an array A of N integers. There are three type of type of commands: 1 x : Right Circular Shift the array x times.… Read More »

Newman–Shanks–Williams prime

In mathematics, a Newman–Shanks–Williams prime (NSW prime) is a prime number p which can be written in the form: Recurrence relation for Newman–Shanks–Williams prime is:… Read More »

Oracle Online test and Interview Experience | Set 67

Online Test: The first round was an online test. There were no coding questions. There were MCQs based on computer networks, Databases, OS, OOPS concepts… Read More »

TCS Interview Experience | Set 29 (Pool Campus)

TCS had conducted a pool campus in our college. Around 750-800 students had participated in it. On 11th Nov, writing round was conducted. Writing round… Read More »

Lobb Number

In combinatorial mathematics, the Lobb number Lm, n counts the number of ways that n + m open parentheses can be arranged to form the… Read More »

Maximize volume of cuboid with given sum of sides

We are given the sum of length, breadth and height, say S, of a cuboid. The task is to find the maximum volume that can… Read More »

Number of ways to insert a character to increase the LCS by one

Given two strings A and B. The task is to count the number of ways to insert a character in string A to increase the… Read More »