capricornkmu
BAN USER
- 0of 0 votes
Answersadd 2 huge numbers represented by linked list. Each linked list element represents a 4 digit number:
- capricornkmu in United States for OpenStack
linked list1 : 8798 -> 8765 -> 1243 -> 9856 -> 8888 -> 0914
linked list 2: 8710 -> 5634 -> 1276 -> 8123 -> 1354 -> 9876
output: ................-> ............. ..-> 7980->0243 -> 0790| Report Duplicate | Flag | PURGE
Ebay Software Developer C - 0of 0 votes
Answersdifference between shared tree and source specific tree in multicast
- capricornkmu in United States for OpenStack| Report Duplicate | Flag | PURGE
Ebay Software Developer Network - 0of 0 votes
Answerswrite a program to validate a IPV4 address
- capricornkmu in United States for OpenStack| Report Duplicate | Flag | PURGE
Ebay Software Developer C - 0of 0 votes
Answersdesign a bit map of 16K bit
- capricornkmu in United States for Networking
get_bit, should get a free bit in this bit map
clear_bit, should clear a bit in this bit map| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer Algorithm - 1of 1 vote
Answerswrite a program to toggle certain bits in a integer.
- capricornkmu in United States for Networking
Eg.
Inputs : int a, int start bit, int num_of_bits
if a is say 11111010110100000
if start = 6
num_of_bits = 4
output should be (starting 6th bit from right, toggle 4 bits)
11111010001000000| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answerswrite a program to count the 2 letter words in a sentence. Eg. "I am in love with New York" should return 2 (am and in).
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answersdesign routing table using trie
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer Network - 0of 0 votes
Answerwhat are the advantages of IPV6 over IPV4 other than the scale advantage ?
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer Network - 0of 0 votes
Answerwrite a program to find the number when a string is transformed to a palindrome, you can go from higher alphabet to lower alphabet and not the other way:
- capricornkmu in United States for Networking
Example:
to convert "abc" to palindrome, 'c' should be changed to 'a'. output should be 2 ('c' - 'a').| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answersfind bugs in the below program:
- capricornkmu in United States for Networking
void fn() {
int *i;
i = (int *) malloc (sizeof(int));
return;
}| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answerwrite a program to merge 2 linked list
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answersdefine how packet reaches from one host to another host. Eg. in topology "host1 - router A - router B - host2" what happens in different layers
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer Network - 0of 0 votes
Answerswrite a program to delete the given node in a BST
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answerwrite to program to find the set bits in an integer
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer C - 0of 0 votes
Answershow traceroute works
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer Network - 0of 0 votes
Answershow would you calculate path mtu
- capricornkmu in United States for Networking| Report Duplicate | Flag | PURGE
Hewlett Packard Software Engineer / Developer Network - 0of 0 votes
Answersgiven a million integers find the largest k elements
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Coding - 1of 1 vote
AnswersGiven m sorted arrays each of size n, merge the arrays into one big array.
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Algorithm - 0of 0 votes
AnswersCheck if tree 1 is sub tree of another tree 2
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Coding - 0of 0 votes
AnswersGiven 2 sorted arrays, find the kth element in the merged array.
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Riverbed Software Engineer / Developer Coding - 0of 0 votes
AnswersYou are given the data for the tennis players - the number of games played, wins/losses, years played, etc. Design an algorithm to rank the players. This is an open ended question.
- capricornkmu in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Application / UI Design - 0of 0 votes
Answerdesign a locking mechanism.
- capricornkmu in United States| Report Duplicate | Flag | PURGE
PayPal Software Engineer / Developer Application / UI Design - 0of 0 votes
Answerstest 1:
- capricornkmu in United States
printf("test %s\n", NULL);
printf("test %s\n", NULL);
prints:
test (null)
test (null)
test 2:
printf("%s\n", NULL);
printf("%s\n", NULL);
prints
Segmentation fault (core dumped)
what is the difference in the above tests ? Why is segmentation fault not thrown in test 1 above ?| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer Debugging - 0of 0 votes
AnswersCheck if a tree is a BST.
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer Coding - 0of 0 votes
AnswersFind the in-order successor of an element in a BST.
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer Coding - 0of 0 votes
Answerswhat happens when BSS is mapped to address 0 ?
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer C - 0of 0 votes
Answerswhat does a structure element a[0] mean ? what is it used for ?
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer C - 0of 0 votes
Answerswhat does #define a ## b mean ?
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer C - 0of 0 votes
Answerswhat is the size of short, int, pointer in 32 bit and 64 architectures ?
- capricornkmu in United States| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer C
this algorithm is not efficient as finding MinValue and MaxValue is not trivial. It involves traversing the entire left/right tree.
- capricornkmu January 15, 2012