Number of Trailing Zeros in Factorial of a Number

Write a program to output the number of consecutive trailing zeros in the factorial of a number? Solution: 1. The number of trailing zeros in a number is equivalent to the power of 10 in the factor of that number. 2. The number power of 10 in the factors is the same as the minimum Read More →

Myntra Interview Questions – Set 2

Profile: Backend Software Developer Process: 5 technical ( 3 rounds+ SVP round + CTO round ) + 1 HR Interview Question at Myntra Round 1: Q1. Change Binary tree so that parent node is the sum of root nodes. Q2. Reverse a linkedlist ? Q3. Given an array of +ve and -ve numbers , have to rearrange them Read More →

Possible Paths across a Rectangular Grid

Rectangular Grid

Problem: Consider a rectangular grid of 4×3 with lower  left corner named as A and upper right corner named B. Suppose that starting point is A and you can move one step up(U) or one step right(R) only. This is continued until B is reached. How many different paths from A to B possible ? Now let’s Read More →

Quikr Interview Questions – Set 2

Quikr Interview Questions for Developer Profile Location: Mumbai Written Test: One problem statement was given: You have been given stack of documents that have already been processed and some that have not. your task is to classify these documents into one of the eight categories: [1,2,3..8]. However you notice that there are already large amount Read More →

Quikr Interview Questions – Set 1

Company: Quikr Profile: Software Developer Profile, Bangalore location Round 1: Q1. Given a no K and an array. Find pair of elements whose sum is equal to given no K. Q2. If there is a website run by 2 servers. These 2 servers balances the load using Load Balancer. So, if 1 session is created Read More →

Linux Commands – Set 2

An L-Z Index of the Bash command line for Linux. L less Display output one screen at a time let Perform arithmetic on shell variables • link Create a link to a file ln Create a symbolic link to a file local Create variables • locate Find files logname Print current login name logout Exit Read More →

Linux Commands – Set 1

An A-K Index of the Bash command line for Linux. A alias Create an alias apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find and Replace text, database sort/validate/index B basename Strip directory and suffix from Read More →

MakeMyTrip Interview Questions – Set 1

MakeMyTrip Interview Questions Q1. find out the subset of an array of continuous positive numbers from a larger array whose sum of of the elements is larger in comparision to other subset. eg: {1,2 5 -7, 2 5} .The two subarrays are {1,2,5} {2,5} and the ans is {1,2, 5} as its sum is larger Read More →

Find nth Fibonacci Number in the Fibonacci sequence?

In the Fibonacci sequence, the first two numbers are 0 and 1 and each number after that is the sum of the previous two numbers in the sequence. So, the sequence looks like this: 0, 1, 1, 2, 3, 5, 8, 13, 21… and so on. The “0″ in the sequence is considered to be Read More →

Clustered and Non Clustered Index

In SQL Server database there are mainly two types of indexes, Clustered index and Non Clustered index. For those, who are not aware of benefits of Index or why we use index in database, they help in making your SELECT query faster. you must index on columns which are frequently used in WHERE clause of Read More →

C Programming Quiz – Set 2

Proramming Questions & Answers – Who should Practice these C Questions? – Anyone wishing to sharpen their skills on C programming language – Anyone preparing for aptitude test in C (both objective type test and C coding written test) – Anyone preparing for interviews (campus/off-campus interviews, walk-in interview and company interviews) #1: What is the Read More →

Operating System Interview Questions – Set 2

Operating System Questions and Answers – This set of Operating System MCQs will be useful for interview preparations for experienced people. #1: The two steps of a process execution are : (choose two) a) I/O Burst b) CPU Burst c) Memory Burst d) OS Burst Show Answer Answer: a and b Explanation: none. #2: Scheduling Read More →