Survivor
BAN USER
- 0of 0 votes
AnswersDifference between kill -9 and kill -3
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Unix - 0of 0 votes
AnswersHow to find a process and kill in unix?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Unix - 0of 0 votes
AnswersWhat is space complexity?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Algorithm - 0of 0 votes
AnswersHow to find time complexity of an algorithm?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Algorithm - 0of 0 votes
AnswersWhat is Big Oh notation?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Algorithm - 0of 0 votes
AnswersHow inter-thread communication can be done?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswersHow to improve query performance?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Database - 0of 0 votes
AnswersDifference between == and equals
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswersDifferent ways to create/track session in web application?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswersWhere do you prefer composite object vs interfaces?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWhat would you change about Java?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswersHow to create Annotations?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswerWhat is GOTCHA in Java generic? Hint: Legacy code implementing collection
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswersWhat would you change about Java?
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Java - 0of 0 votes
AnswersImplement queue using stack
- Survivor in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Data Structures - 1of 1 vote
AnswerHow to make object immutable?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Java - 0of 0 votes
AnswersWhy do we need to override hashcode and equals methods?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Java - 0of 0 votes
AnswersWhat is MVC?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Java - 0of 0 votes
AnswersWhat are different isolation level?
- Survivor in United States| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Database
Your solution will work but can be improved by only pushing first half of elements on stack. Middle of linkedlist can be found using slow and fast runner approach. Once we reach at the middle we start comparing element pointed by slow pointer and popping element on top of stack.
- Survivor February 25, 2013Existing class hierarchy can be easily retrofitted to add new behavior using interfaces. Interfaces allows to define mixed behaviors. Interfaces allows constructions of non-hierarchial frameworks.
Abstract classes are easy to evolve. Adding new behavior to abstract classes is simpler than interfaces.
Prefer abstract classes if simplicity is more important than flexibility.
It is worth reading Item 18 in Effective Java to understand why to prefer interfaces over abstract classes.
MVC de-couples the models from views by adding controller layer between them which allows to modify view and model without affecting each other. We can also have different view implementation calling same model layer through controller. Controller handles any request coming from view and forward it to appropriate model. Selecting model to forward request is completely design decision. Model generally but not necessarily is comprised of service layer or data access layer.
- Survivor November 20, 2012
With one pointer and additional memory to store each node traversed we can find out if linked list has loop. This is O(n2) solution and O(n) space.
- Survivor March 10, 2013