vinodjayachandran
BAN USER- 0of 0 votes
AnswersHow does URL shorteners ( like bitly etc ) work ?
- vinodjayachandran in India| Report Duplicate | Flag | PURGE
Blue Jeans Principal Software Engineer Algorithm - 0of 0 votes
AnswerHow write your own annotations in Java ?
- vinodjayachandran in India| Report Duplicate | Flag | PURGE
Blue Jeans Principal Software Engineer Java - 0of 0 votes
AnswerIn JDBC, When you do the following
Class.forName("driver class name") Connection conn = DriverManager.getConnection()
How does JVM recognizes to give the exact driver's connection object which has been loaded by Class.forNAme in the previous line ?
- vinodjayachandran in India| Report Duplicate | Flag | PURGE
Blue Jeans Principal Software Engineer Java - 0of 0 votes
AnswersGiven an input Array which contains elements as below
- vinodjayachandran in India
[a1,a2,a3,....an,b1,b2,b3,...bn]
Output Should be
[a1,b1,a2,b2,a3,b3,.....an,bn]
Do it without any additional Memory.| Report Duplicate | Flag | PURGE
Blue Jeans Principal Software Engineer Algorithm - 0of 0 votes
AnswersAssume a Bank Branch, with few teller counters.
- vinodjayachandran in India
There is a token system, from which customers can procure tokens for the type of transaction (cash withdrawal, cheque deposit, account opening, loan etc).
Each teller needn't have the capability to handle all possible types of transactions. each Teller can handle only a subset of transactions and there could be a overlap of transactions handling capabilities between tellers.
Design this banking system such that, each customer is served on a first cum First serve basis as per the token number for each transaction type.
Hint : Publisher-Subscriber Model| Report Duplicate | Flag | PURGE
Blue Jeans Principal Software Engineer Algorithm - 0of 0 votes
AnswerAssume a Game where a player can jump from one step to other to reach the final step.
- vinodjayachandran in India
From any given step Player can go to another step in any direction North, South, East or West. (i.e ) from Any given step user has a choice of multiple steps to choose from to proceed towards final step.
Some steps may not lead you in right direction to final step, in that case he need to retrace back.
To jump from one step to another Player uses a ladder. Distance between adjacent steps is not constant, they differ for each pair.
What is longest length of a ladder needed for the player to reach the final step from the starting step.| Report Duplicate | Flag | PURGE
Flipkart SDE-2 Algorithm - 1of 1 vote
AnswersImplement a MessageBroker which accept messages from Publisher and deliver to Subscriber.
- vinodjayachandran in India
To begin with start with single Publisher and Subscriber. But design it in such a way to scale up to many publisher and subscriber associated with a Single Broker.
Take Performance and parallel processing into consideration.| Report Duplicate | Flag | PURGE
Flipkart SDE-2 Problem Solving technical - 0of 0 votes
AnswersFrom a web page, each logged in user can click on a plus icon and enter key-value pairs. There is restriction on the entered key and values. Design a schema to store the enter the key-value pairs entered by each user, such that given a key we should be able to retrieve all the username who entered that particular key.
- vinodjayachandran in India| Report Duplicate | Flag | PURGE
StartUp Developer Program Engineer Database - 0of 0 votes
AnswersGiven a graph of price variation of a stock over a period of 12 months, return the ideal time to buy and sell, for maximization of profit. Time duration is not constraint. Time duration needn't be minimum it can even be maximum 12 motnhs
- vinodjayachandran| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat are the various ways to swap 2 variables
- vinodjayachandran
Answer :
a) Using temporary Variable
b) Usnig some Arithmentic operation
c) Using bitwise XOR operation
Which operation is better and Why ?| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersDesign a Chess Game
- vinodjayachandran| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Algorithm
int a =10;
int b = 12;
String c = a + "." + b;
System.out.println(c);
Alternatively you can also return the variable c
- vinodjayachandran February 03, 2015if you are free to use java, its as simple as
s1.indexOf(s2)
Isn't Trie data structure the solution for it ?
- vinodjayachandran June 14, 2016