"Clarify
"What do you mean by favorite product? Are you thinking specifically hardware, software, or a feature within those, or something non-electronic? Dealer's Choice.
"Are you asking why I love this product, or to explain why this product is a market leader independent of how i feel about it? Talk about why YOU love this product.
Rephrase Question
With all that in mind, i want to rephrase the question. "What is your favorite software product and what features in this product"
Tim W. - "Clarify
"What do you mean by favorite product? Are you thinking specifically hardware, software, or a feature within those, or something non-electronic? Dealer's Choice.
"Are you asking why I love this product, or to explain why this product is a market leader independent of how i feel about it? Talk about why YOU love this product.
Rephrase Question
With all that in mind, i want to rephrase the question. "What is your favorite software product and what features in this product"See full answer
"Let me tell you about a time where a website I managed suddenly showed slow performance and the mistake on our side was it was unnoticed until a user reported the issue to management. As a PM for that project, I took full responsibility of the situation and worked with the engineering team to quickly resolve it. This mistake taught me the importance of focusing and monitoring non functional requirements as well in addition to new feature development /adoption where I was mostly spending my time"
Sreenisha S. - "Let me tell you about a time where a website I managed suddenly showed slow performance and the mistake on our side was it was unnoticed until a user reported the issue to management. As a PM for that project, I took full responsibility of the situation and worked with the engineering team to quickly resolve it. This mistake taught me the importance of focusing and monitoring non functional requirements as well in addition to new feature development /adoption where I was mostly spending my time"See full answer
"For any project based questions, it is important to structure your response clearly, showcasing your thought process, technical skills, problem-solving abilities, and how your work added value. Besides the STAR method, you can also use this kind of framework:
1. Start by selecting a relevant project (related to the role)
Give the project background and what specific problem it solved.
2. Align the project's objective and your role
Be specific about your role: were you the le"
Malay K. - "For any project based questions, it is important to structure your response clearly, showcasing your thought process, technical skills, problem-solving abilities, and how your work added value. Besides the STAR method, you can also use this kind of framework:
1. Start by selecting a relevant project (related to the role)
Give the project background and what specific problem it solved.
2. Align the project's objective and your role
Be specific about your role: were you the le"See full answer
"public static boolean isPalindrome(String str){
boolean flag = true;
int len = str.length()-1;
int j = len;
for(int i=0;i<=len/2;i++){
if(str.charAt(i)!=str.charAt(j--)){
flag = false;
break;
}
}
return flag;
}"
Sravanthi M. - "public static boolean isPalindrome(String str){
boolean flag = true;
int len = str.length()-1;
int j = len;
for(int i=0;i<=len/2;i++){
if(str.charAt(i)!=str.charAt(j--)){
flag = false;
break;
}
}
return flag;
}"See full answer
"
Compare alternate houses i.e for each house starting from the third, calculate the maximum money that can be stolen up to that house by choosing between:
Skipping the current house and taking the maximum money stolen up to the previous house.
Robbing the current house and adding its value to the maximum money stolen up to the house two steps back.
package main
import (
"fmt"
)
// rob function calculates the maximum money a robber can steal
func maxRob(nums []int) int {
ln"
VContaineers - "
Compare alternate houses i.e for each house starting from the third, calculate the maximum money that can be stolen up to that house by choosing between:
Skipping the current house and taking the maximum money stolen up to the previous house.
Robbing the current house and adding its value to the maximum money stolen up to the house two steps back.
package main
import (
"fmt"
)
// rob function calculates the maximum money a robber can steal
func maxRob(nums []int) int {
ln"See full answer
Data Engineer
Data Structures & Algorithms
+4 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"In the API design, the interviewer is switching between RPC style (operation based endpoints) and REST style (resource oriented). Sticking to one convention and explaining why it is preferred over the other e.g. REST if the twitter domain maps nicely to resources e.g. /tweet or /follower or /user would help to create a more consistent and unified API. It would make it easier for clients to integrate with the API as well."
dreamingincode - "In the API design, the interviewer is switching between RPC style (operation based endpoints) and REST style (resource oriented). Sticking to one convention and explaining why it is preferred over the other e.g. REST if the twitter domain maps nicely to resources e.g. /tweet or /follower or /user would help to create a more consistent and unified API. It would make it easier for clients to integrate with the API as well."See full answer
"Since there is a need for the data to be accurate and consistent without any latency to allocate a spot, can't the data be synchronously synced to replicas after every write as the number of writes are not many per min, instead of read lock phenomena
Let me know if i am on a wrong thought here."
Chitapuram N. - "Since there is a need for the data to be accurate and consistent without any latency to allocate a spot, can't the data be synchronously synced to replicas after every write as the number of writes are not many per min, instead of read lock phenomena
Let me know if i am on a wrong thought here."See full answer
"Situation:
While working at CVS Health, our inventory management system for OTCHS products was facing challenges. We had increasing stock outs, and our existing data was insufficient to fully understand and address the issue since it has been only a year this product line was initiated.
Action:
Although we do have a forecasting model to predict demand and other algorithms to trigger out of stock flags to warehouses to fill them, lack of data points on seasonality, supplier delays, compliance"
Vihari K. - "Situation:
While working at CVS Health, our inventory management system for OTCHS products was facing challenges. We had increasing stock outs, and our existing data was insufficient to fully understand and address the issue since it has been only a year this product line was initiated.
Action:
Although we do have a forecasting model to predict demand and other algorithms to trigger out of stock flags to warehouses to fill them, lack of data points on seasonality, supplier delays, compliance"See full answer
"We can use dictionary to store cache items so that our read / write operations will be O(1).
Each time we read or update an existing record, we have to ensure the item is moved to the back of the cache. This will allow us to evict the first item in the cache whenever the cache is full and we need to add new records also making our eviction O(1)
Instead of normal dictionary, we will use ordered dictionary to store cache items. This will allow us to efficiently move items to back of the cache a"
Alfred O. - "We can use dictionary to store cache items so that our read / write operations will be O(1).
Each time we read or update an existing record, we have to ensure the item is moved to the back of the cache. This will allow us to evict the first item in the cache whenever the cache is full and we need to add new records also making our eviction O(1)
Instead of normal dictionary, we will use ordered dictionary to store cache items. This will allow us to efficiently move items to back of the cache a"See full answer
"Use a representative of each, e.g. sort the string and add it to the value of a hashmap> where we put all the words that belong to the same anagram together."
Gaston B. - "Use a representative of each, e.g. sort the string and add it to the value of a hashmap> where we put all the words that belong to the same anagram together."See full answer
"Would consider the following factors:
Customer demographic and preferences
Location of the warehouse and what's the local product trends
Seasonality and time of the year for trendy products
Balance of volume and margin products
Supply chain consideration
Competition analysis
Inventory turn over rate
eCommerce aspects of the inventory
Plus the following types:
Essential and groceries
Electronic and entertainment
Apparel and footwear
Home and lifestyle
Seasonal and promo"
onering2ruleall - "Would consider the following factors:
Customer demographic and preferences
Location of the warehouse and what's the local product trends
Seasonality and time of the year for trendy products
Balance of volume and margin products
Supply chain consideration
Competition analysis
Inventory turn over rate
eCommerce aspects of the inventory
Plus the following types:
Essential and groceries
Electronic and entertainment
Apparel and footwear
Home and lifestyle
Seasonal and promo"See full answer
"we can use two pointer + set like maintain i,j and also insert jth character to set like while set size is equal to our window j-i+1 then maximize our answer and increase jth pointer till last index"
Kishor J. - "we can use two pointer + set like maintain i,j and also insert jth character to set like while set size is equal to our window j-i+1 then maximize our answer and increase jth pointer till last index"See full answer
"Abstract class
A class that can have Abstract methods - without implementations and Concerete Methods i.e with implementation.
Can have private, protected and public access modifiers.
Supports Single inheritance i.e a class can extend only 1 abstract class
Can have constructors
Mainly used when sharing common behaviors
Interface Class
A collection of abstract methods ( can have static and default methods also - onwards of java 8)
Public, static, final are the access"
Sue G. - "Abstract class
A class that can have Abstract methods - without implementations and Concerete Methods i.e with implementation.
Can have private, protected and public access modifiers.
Supports Single inheritance i.e a class can extend only 1 abstract class
Can have constructors
Mainly used when sharing common behaviors
Interface Class
A collection of abstract methods ( can have static and default methods also - onwards of java 8)
Public, static, final are the access"See full answer
"This is a classic strategic dilemma, but the answer for Walmart, given its core business model and strengths, is quite clear: Invest in boosting dish soap production.
Here's why:
Proven Success: Dish soap is Walmart's top product with strong, established sales. Scaling leverages existing, efficient supply chains and customer demand.
Core Competency: Walmart excels at high-volume, low-margin household goods. This aligns perfectly with their business model and customer base.
**L"
Vishnu G. - "This is a classic strategic dilemma, but the answer for Walmart, given its core business model and strengths, is quite clear: Invest in boosting dish soap production.
Here's why:
Proven Success: Dish soap is Walmart's top product with strong, established sales. Scaling leverages existing, efficient supply chains and customer demand.
Core Competency: Walmart excels at high-volume, low-margin household goods. This aligns perfectly with their business model and customer base.
**L"See full answer
"I set the context by stating that this specific program is not complex for technical reasons, but for the nature of how it was set up.
Spoke about a scenario where one of the programs was at risk due security and legal compliance's. And how did I carry that program forward."
Anonymous Mockingbird - "I set the context by stating that this specific program is not complex for technical reasons, but for the nature of how it was set up.
Spoke about a scenario where one of the programs was at risk due security and legal compliance's. And how did I carry that program forward."See full answer
"As a software engineer, there are a number of ways I could potentially contribute to improving Walmart.com. Here are a few ideas:
Performance Optimization: Walmart.com is a complex web application with many moving parts. One potential area for improvement could be to optimize the performance of the site to make it load faster and feel more responsive. This could involve things like optimizing images, improving server response times, or reducing the number of HTTP requests required to load the"
N N. - "As a software engineer, there are a number of ways I could potentially contribute to improving Walmart.com. Here are a few ideas:
Performance Optimization: Walmart.com is a complex web application with many moving parts. One potential area for improvement could be to optimize the performance of the site to make it load faster and feel more responsive. This could involve things like optimizing images, improving server response times, or reducing the number of HTTP requests required to load the"See full answer
"
A couple of years ago, we were working on a project to integrate a new third-party data feed into our existing data processing pipeline. This data feed was critical for enhancing our trading algorithms with more comprehensive market data. Given the tight timeline and high stakes, I decided to push for a rapid implementation.
In my eagerness to meet the deadline, I underestimated the complexity of integrating this new data feed. I did not allocate sufficient time for thorough testing and valida"
Scott S. - "
A couple of years ago, we were working on a project to integrate a new third-party data feed into our existing data processing pipeline. This data feed was critical for enhancing our trading algorithms with more comprehensive market data. Given the tight timeline and high stakes, I decided to push for a rapid implementation.
In my eagerness to meet the deadline, I underestimated the complexity of integrating this new data feed. I did not allocate sufficient time for thorough testing and valida"See full answer