chad
BAN USER
- 2of 4 votes
AnswersA string contains a-z, A-Z and spaces. Sort the string so that all lower cases are at the beginning, spaces in the middle and upper cases at the end. Original order among lower and upper cases needs to remain the same. For example: a cBd LkmY becomes ackm BLY. Is there a way in O(n) without extra space?
- chad in United States| Report Duplicate | Flag | PURGE
Amazon Software Developer Algorithm Arrays - 0of 0 votes
AnswersHow do you decide whether we should use Java or C++ for a particular project . what are pros and cons
- chad in United States| Report Duplicate | Flag | PURGE
Bloomberg LP SDE-2 Java - 0of 0 votes
AnswerHow does garbage collector work ? In mark and sweep , how does gc know which objects it needs to mark , how are references stored for objects for gc to understand that its reference is null or it is no more referenced anywhere j
- chad in United States| Report Duplicate | Flag | PURGE
Bloomberg LP SDE-2 Java - 1of 1 vote
Answerswrite your own implementation of hashtable , write interface and implementation for same eg. get,put and delete function .
- chad in United States
follow up question : suppose you have hashtable of size 4 and its full . you then delete 2 elements from it. how will you reuse the space . implement linear probing collision resolution technique in this hash table .| Report Duplicate | Flag | PURGE
Live Nation Software Engineer / Developer Data Structures - -1of 1 vote
AnswerSuppose program's runtime is 12N2 + logn + 4000 . how will you denote this in Big O notation . no matter how big n is , you will always have 4000 added to it .
- chad in United States
explain your big O too.| Report Duplicate | Flag | PURGE
Live Nation Software Engineer / Developer Algorithm - 0of 0 votes
Answersyou have an array of strings . print all anagrams for a string with complexity n2 .
- chad in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
Answerimplement LRU cache in java without using built-in datastructure ie. linkedHashMap
- chad in United States| Report Duplicate | Flag | PURGE
Big Fish Software Engineer / Developer Algorithm - 0of 0 votes
Answershow will you implement dictionary for client . suppose data is stored in database .you don't need to implement dictionary but explain entire interaction and systems involved .
- chad in United States
The interviewer was not interested in knowing how dictionary is internally implemented . he was more interested in understanding bigger picture ie. high level , eg.
i explained you will have ajax call from client page to fetch matching words, explained arguments that i will pass in ajax , explained high level server side api , how this api will interact with db and how it will send information back to client .
i think we should discuss high level perspective eg. designing the system overall architecture rather than dictionary algorithm| Report Duplicate | Flag | PURGE
Big Fish Software Engineer / Developer Java - 0of 0 votes
Answershow do u use persistent storage on browsers . what are various options .
- chad in United States
my ans : html5 : we can use localstorage and persistent storage.
non-html5 browsers : we can use cookies .| Report Duplicate | Flag | PURGE
Medio Systems Software Engineer / Developer Front End Web Development - 0of 0 votes
AnswersSuppose you have 4gb list of integers on disk . you need to find kth largest element . how will you do that . sorting is not an option .
- chad in United States
i had suggested that I would use 2 stacks to maintain k largest elements (eg. k=10 , then stack will store top10 numbers encountered so far ) . interviewer mentioned can we use array instead . please let me know what is the optimal way .| Report Duplicate | Flag | PURGE
Groupon Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven a String, write a routine that converts the string to an long, without using the built in Java functions that would do this. Describe what (if any) limitations the code has. For example:
- chad in United States
long StringToLong(String s)
{
/* code goes here to convert a string to a long */
}
void Test()
{
long i = StringToLong("123");
if (i == 123)
... success ...
else
... failure ...
}| Report Duplicate | Flag | PURGE
Zillow Software Engineer / Developer General Questions and Comments - 0of 0 votes
AnswersImplement insert and delete in a tri-nary tree. Much like a binary-tree but with 3 child nodes for each parent instead of two -- with the left node being values < parent, the right node values > parent, and the middle node values == parent. For example, if I added the following nodes to the tree in this
- chad in United States| Report Duplicate | Flag | PURGE
Zillow Software Engineer / Developer Data Structures - 0of 0 votes
AnswersHow can I read a file in, compile, and execute it at run time?
- chad in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswerHow can I get a list of all symmetric key generators? How can I add one?
- chad in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhat does it mean for two classes to have a different type erasure?
- chad in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is the drawback for string type in Java . suppose you have to deal with millions of strings and u need to save them , how will you save them . imagine there is not enough space to save those strings . This is Big data related question . interviewer was just interested in knowing trick to save strings .
- chad in United States| Report Duplicate | Flag | PURGE
Software Engineer / Developer Java - 0of 0 votes
AnswersPick two data structures to use for implementing a Map.
- chad
* Describe lookup, insert, & delete operations.
* Give time & space complexity for each.
* Give pros & cons for each.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Data Structures Hash Table
Implement insert and delete in a tri-nary tree. Much like a binary-tree but with 3 child nodes for each parent instead of two -- with the left node being values < parent, the right node values > parent, and the middle node values == parent. For example, if I added the following nodes to the tree in this
order: 5, 4, 9, 5, 7, 2, 2 -- the tree would look like this:
5
/ | \
4 5 9
/ /
2 7
|
2
RepJe suis Kirsten. Je travaille dans un magasin en tant que responsables de la chaîne d'approvisionnement pour promouvoir la ...
Repgeraldgloria02, Android test engineer at Achieve Internet
I am a personal trainer. I design programs and provide nutritional advice and coaching. I wanted to share my knowledge ...
Repmakaylamelua, Blockchain Developer at AMD
I am a sound editing and music composer with experience of handling a wide variety of programs.During my free ...
RepCecilRenteria, Managing editor at Alliance Global Servies
A Managing Editor, or Content Manager, I" m creates content strategies and oversees their implementation processes. spent 2/3 years ...
Repsujijaa565, AT&T Customer service email at ABC TECH SUPPORT
My name is suji. I am working as a Suadela Investment in Tulsa USA . I identify and establish a new ...
Repammiwilson5, Personnel at BMO Harris Bank
Hi I am Ammy from Served on a research team for improved customer satisfaction survey process,Moderated focus groups to ...
Rephallieriddic, HR Executive Trainee at Barclays Capital
I am Hallie, Dedicated and experienced administrative secretary who excels at prioritizing , completing multiple tasks simultaneously and following through to ...
RepDiscover the cheapest packers and movers in Gurgaon at best price with smooth and hassle free relocation. We provide truck ...
Reptaylorjose221, Production Engineer at BT
Graphic designer with a strong background in marketing design.Having a day off during the week to do whatever I ...
Repluisbshifflett, Aghori Mahakal Tantrik at ABC TECH SUPPORT
I am working as a partner in the Project Planner.I additionally assists people groups with holding appearance rights or ...
Repleighpjoyce, job tessio at CapitalIQ
Welcome to my world.I am a safety-conscious HVAC Engineer with experience with mechanical engineering Brampton HVAC design for commercial ...
Repmelissamewingm, abc at ABC TECH SUPPORT
I am Melissa from Springdale. I function as an Auditing assistant in Bountiful Harvest Health Food Store. My solid interest ...
Repmargaratlonger, Talent Acquisition at Huawei
Hello, I am Margaret . I have been working with the company of Heilig-Meyers for the last 7 year. I guide ...
Replisachndi, Backend Developer at Adjetter Media Network Pvt Ltd.
I am the manager of health services. I work in managing medical and health services in hospitals, community health institutions ...
RepRichardWParks, Accountant at ADP
Will it maintain order of the string ? I checked online but not sure if that actually maintains order .
- chad August 14, 2015