Contact Details:

Mail : amarnath255561@gmail.com
Showing posts with label BrowserStack Written Paper 2013. Show all posts
Showing posts with label BrowserStack Written Paper 2013. Show all posts

Sunday, December 22, 2013

BrowserStack Written Paper 2013


IIT D :

Section 1.

Q1 parse and prettify html
given a single line input
input: <html><head><title>hello</title></head></html>
output: <html>
<head>
<title>hello</title>
</head>
</html>

Q2 remove comments from c/c++
WAP to remove comments from c/c++ file

Section 2.

given a array of numbers. number within 1 to n.How u would sort them in following situations.
a . all unique elements
b. 1 repeated , 1 missing
c 2 repeated 2 missing
d. 4 repeated 4 missing+



Q3 given a NXN grid number of unique paths from left top to bottom right
Ans: (2n)!/(n!xn!)