ninja
BAN USER
- 0of 0 votes
AnswersHow to use private members of Base class in Subclasses without exposing them ?
- ninja in United States| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswerImplement simple tail command in C++.
- ninja in United States| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersGiven a array of characters of this replace the characters which occur continously with the character and no. of times it occured e.g. AAAABCCDDD A4BC3D3 (count for characters that occurs once can be ignored). Do it Inplace.
- ninja in India| Report Duplicate | Flag | PURGE
SDE1 - 0of 0 votes
AnswersCopy a linked list with next and arbitary pointer without modifying original linked list i.e. read only linked list.
- ninja in United States| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersMultiply two linked list represented as linked list and return result as linked list.
- ninja in United States| Report Duplicate | Flag | PURGE
SDE1 - 0of 0 votes
AnswersWAP to find no of possible paths from source node to destination node. If connection between various nodes is given. If there exists a cycle in a path from source to destination print Infinite path else print total no of path. eg
- ninja in India
5 8
5 is no of nodes
8 is no of connection
and connections are
1 2
1 3
1 5
2 5
2 3
3 4
3 5
4 5
nodes are 1 indexed. ( not 0 )
find no of path from 1 - 5.
ans : 6| Report Duplicate | Flag | PURGE
Amazon - 0of 0 votes
AnswersThere is a rectangular grid of size m * n . Bob is in location ( x, y ) inside grid. He can move in 4 directions up, down, right and left. He will die if he steps outside of rectangular grid. Find the probability that bob is alive given initial position of bob as ( x, y ) and number of steps he moves as N.
- ninja in United States
Edit : Bob moves one step at a time in all 4 directions but he can move N step starting from start state.| Report Duplicate | Flag | PURGE
Amazon - 0of 0 votes
AnswersIs it possible to find all permutations of given string in time O(n) ?
- ninja in India| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersGiven a Circuit (with resistors), we need to calculate the total resistance. Input will be like AB-5ohm, BC-6ohm, BC-10ohm, BC-20 ohm, CD-5 ohm. BC has been repeated twice implying they are in parallel. "Write a program by implementing efficient data structure for storing and calculating the total resistance."
- ninja in India| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer - 0of 0 votes
AnswersFind preorder successor in BST.
- ninja in United States| Report Duplicate | Flag | PURGE
Amazon - 0of 0 votes
AnswersPrint all combinations of a number N, as a sum of positive integers?
- ninja in United States
eg.
3 =
1 2
1 1 1
4=
3 1
2 2
1 1 2
1 1 1 1| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersTwo strings are given to you like abhinav and navigate and you have to give output abhinavigate and all the characters are stored in linked list node. Input is a->b->h->i->n->a->v and n->a->v->i->g->a->t->e and output should be a->b->h->i->n->a->v->i->g->a->t->e.
- ninja in United States| Report Duplicate | Flag | PURGE
Software Engineer / Developer - 0of 0 votes
AnswersGive an efficient algorithm to check whether 9*9 matrix is valid sudoku solution or not ?
- ninja in India| Report Duplicate | Flag | PURGE
@vincent hash table will contain reference to max-heap . but from max - heap we can not access word so we have to scan hash table to find out top 10 words which is 0(n). But this can be done using array only. In 2 D array we can store word and count and get top 10 words in one scan. No need of this complicated DS.
- ninja August 25, 2012
RepMarryJohan, Consultant at ASAPInfosystemsPvtLtd
I am successfully manage and coordinate graphic design projects from concept through completion. Create and conduct highly persuasive sales and ...
Repjessicajbunting, Aghori Mahakal Tantrik at ABC TECH SUPPORT
Hi I am Jessica, from Houston USA. I am working as a manager in Incredible Universe company. I enjoy additional ...
Repmelodyakeel, Consultant at Progress
Hello I am Melody. I am working as Human resource clerks, also called human resource assistants. I can maintain employee ...
What for input like ABCD ?
- ninja October 10, 2013