"let str = 'this is a test of programs';
let obj={};
for (let s of str )
obj[s]?(obj[s]=obj[s]+1):(obj[s]=1)
console.log(JSON.stringify(obj))"
Anonymous Emu - "let str = 'this is a test of programs';
let obj={};
for (let s of str )
obj[s]?(obj[s]=obj[s]+1):(obj[s]=1)
console.log(JSON.stringify(obj))"See full answer
"function constructTree(n, matrix) {
let parent = [];
let child = [];
let root = null;
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
if (matrixi === 1) {
parent.push(i);
child.push(j);
}
}
}
for (let i = 0; i < n; i++) {
if (parent.indexOf(i) === -1) {
root = i;
}
}
let node = new Node(root);
for (let i = 0; i < n; i++) {
if (i !== root) {
constructTreeUtil(node, parent[i], child[i]);
}
}
return node;
}"
Ugo C. - "function constructTree(n, matrix) {
let parent = [];
let child = [];
let root = null;
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
if (matrixi === 1) {
parent.push(i);
child.push(j);
}
}
}
for (let i = 0; i < n; i++) {
if (parent.indexOf(i) === -1) {
root = i;
}
}
let node = new Node(root);
for (let i = 0; i < n; i++) {
if (i !== root) {
constructTreeUtil(node, parent[i], child[i]);
}
}
return node;
}"See full answer
"Race Condition i,e multiple threads modifying simultaneously can lead to data inconsistency
Operations like putIfAbsent() or computeIfAbsent() are not atomoic i.e duplicate entries or missing updates when multiple threads perform operations
Data Corruption : during resizing of a hashmap by a thread, if another thread is accessing the same data , buckets can get corrupted, leading to a loss of data"
Sue G. - "Race Condition i,e multiple threads modifying simultaneously can lead to data inconsistency
Operations like putIfAbsent() or computeIfAbsent() are not atomoic i.e duplicate entries or missing updates when multiple threads perform operations
Data Corruption : during resizing of a hashmap by a thread, if another thread is accessing the same data , buckets can get corrupted, leading to a loss of data"See full answer
"I have worked with tools such as Hadoop, Oracle, DBeaver, and Databricks. I have used these tools at work when dealing with large datasets, data cleaning, data security, and creating models"
Aneesh D. - "I have worked with tools such as Hadoop, Oracle, DBeaver, and Databricks. I have used these tools at work when dealing with large datasets, data cleaning, data security, and creating models"See full answer
"Web server request
HTTPS://WWW.GOOGLE.COM
(HTTPS)Protocol -> HTTPS/HTTP (HTTPS more secured, encrypted data send by browser)
WWW. that is just a term
(GOOGLE.COM)DNS -> Every website that is hosted on the internet resides in some data server having an IP address. Due to the complexity of the IP address, ISP mapped the IP address to some readable or English term that is called DNS. Browser does DNS lookup. The FIrst bRowser sees the DNS mapping in the browser cache, if not found then it looks"
Anonymous Muskox - "Web server request
HTTPS://WWW.GOOGLE.COM
(HTTPS)Protocol -> HTTPS/HTTP (HTTPS more secured, encrypted data send by browser)
WWW. that is just a term
(GOOGLE.COM)DNS -> Every website that is hosted on the internet resides in some data server having an IP address. Due to the complexity of the IP address, ISP mapped the IP address to some readable or English term that is called DNS. Browser does DNS lookup. The FIrst bRowser sees the DNS mapping in the browser cache, if not found then it looks"See full answer
"How would you place Amazon Alex hardware in a car, if car software integration was not an option?
Let me understand the context and the situation
Is Amazon really trying to experiment if they could be a new device category in the cars (or)
Is it that they did not get the right partnerships that led to this decision (assuming this is the case)
What could be the objectives why Amazon will get interested in this?
Apple and Google are getting entrenched in this space and Amazon has almost n"
Vamsi K. - "How would you place Amazon Alex hardware in a car, if car software integration was not an option?
Let me understand the context and the situation
Is Amazon really trying to experiment if they could be a new device category in the cars (or)
Is it that they did not get the right partnerships that led to this decision (assuming this is the case)
What could be the objectives why Amazon will get interested in this?
Apple and Google are getting entrenched in this space and Amazon has almost n"See full answer
"This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"
Exponent - "This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"See full answer
"This question is quite straightforward. The key to this is to be concise and specific.
> An endpoint is essentially the destination of an API call. The endpoint returns specific data depending on which endpoint was called. An example of a POST request is when a user signs up or logs in. Some data is posted and validated on the server (like a login email and password). An example of a GET request is when viewing another user's page. There's likely an endpoint that gets data like the person's name"
Exponent - "This question is quite straightforward. The key to this is to be concise and specific.
> An endpoint is essentially the destination of an API call. The endpoint returns specific data depending on which endpoint was called. An example of a POST request is when a user signs up or logs in. Some data is posted and validated on the server (like a login email and password). An example of a GET request is when viewing another user's page. There's likely an endpoint that gets data like the person's name"See full answer
"package mycoding.tryexponent.com;
import java.util.Scanner;
public class FirstAndLastOccurenceOfaNumber
{
public static void main(String[] arg)
{
System.out.println("Enter 'a' to run the programme:");
System.out.println("Enter 't' to terminate the programme:");
Scanner in=new Scanner(System.in);
String inputtedString=in.nextLine();
while(!"t".equalsIgnoreCase(inputtedString))
{
System.out.println("enter a number to find its 1st nd last occurence");
int number=in.nextInt();
int[] array=new i"
Ankur T. - "package mycoding.tryexponent.com;
import java.util.Scanner;
public class FirstAndLastOccurenceOfaNumber
{
public static void main(String[] arg)
{
System.out.println("Enter 'a' to run the programme:");
System.out.println("Enter 't' to terminate the programme:");
Scanner in=new Scanner(System.in);
String inputtedString=in.nextLine();
while(!"t".equalsIgnoreCase(inputtedString))
{
System.out.println("enter a number to find its 1st nd last occurence");
int number=in.nextInt();
int[] array=new i"See full answer
"Things on which Site performance depends
Page Speed: The time it takes to load the webpage. It comprises the metrics like Server response time [Amount of time when a web client makes a request and a server responds to the request], Transfer time [Time it takes to download a webpage], and render time [Duration of time it takes to render the HTML page in browser].
DNS lookup speed: Every website name is mapped with the corresponding IP Address. So the browser lookup up the IP for t"
Anonymous Muskox - "Things on which Site performance depends
Page Speed: The time it takes to load the webpage. It comprises the metrics like Server response time [Amount of time when a web client makes a request and a server responds to the request], Transfer time [Time it takes to download a webpage], and render time [Duration of time it takes to render the HTML page in browser].
DNS lookup speed: Every website name is mapped with the corresponding IP Address. So the browser lookup up the IP for t"See full answer
"function findMinMax(array){
array.sort((a,b) => a - b);
let min = array[0];
let max = array.slice(-1);
return [min,max];
}
`"
Adam S. - "function findMinMax(array){
array.sort((a,b) => a - b);
let min = array[0];
let max = array.slice(-1);
return [min,max];
}
`"See full answer
"There are few points which we need to understand while advising engineering team.
Risk assessments.
Cost Benefit Analysis
Vendor relationship
Vendor Lock in."
Sudhansu T. - "There are few points which we need to understand while advising engineering team.
Risk assessments.
Cost Benefit Analysis
Vendor relationship
Vendor Lock in."See full answer