xyz Interview Questions
- 0of 0 votes
AnswersYou and your friend go to a game arcade where you choose to play the game Lucky Pick. In the game, there is a square grid and on each block, some money is placed on it. When a player chooses a block, the machine randomly chooses a block from the neighboring ones and the chosen block (consider 8 neighborhood). The player is awarded the money that is placed on the block that the machine selects. Your friend needs help choosing the block.
- viveksinghssm496 January 23, 2023 in United States
Your job is to return the block position(s) that will maximize the minimum amount your friend will win for sure. If there are more than one such block positions then the output must return for all these positions.
Input Format
You will be given the Grid Description as -
The first line consists of the size of the square grid (N)
The next N lines each containing N numbers separated by '#', each number representing the amount of money put on that block| Report Duplicate | Flag | PURGE
xyz Software Analyst - 0of 0 votes
AnswersWhat is a dynamically typed language?
- mrabgh2014 June 23, 2022 in United States for giltoys.ir| Report Duplicate | Flag | PURGE
xyz Developer Program Engineer Python - 0of 0 votes
AnswersWhat are the different data types present in javascript?
- mrabgh2014 June 23, 2022 in United States for giltoys.ir| Report Duplicate | Flag | PURGE
xyz Developer Program Engineer JavaScript - 0of 0 votes
AnswerWhat is serialization?
- mrabgh2014 June 23, 2022 in United States for giltoys.ir| Report Duplicate | Flag | PURGE
xyz Developer Program Engineer .Net/C - 0of 0 votes
AnswersCall Girls In~Jasola Vihar~8447779280 Shot 1500 Night 6000
- bijaykausal2121 October 08, 2021 in India for Call Girls In~Jasola Vihar~8447779280 Shot 1500 Night 6000| Report Duplicate | Flag | PURGE
Infinera xyz - 0of 0 votes
AnswersIan David Lazar is a business consultant and advisor for small businesses who assist with all business and financial solutions. I am a fan of business, innovation, and travel. I’m also interested in shopping and entrepreneurship.
- iandavid.lazar April 27, 2021 in Australia for Ian David Lazar - Top Business Advisor| Report Duplicate | Flag | PURGE
Ask.com xyz - 0of 0 votes
AnswersCreate Valid html from below input.
- samfriendcom1234 September 18, 2019 in United States
String str="abcde"
points:- [{0,2,b},
{2,4,u}]
output : <b>ab<u>c</u></b><u>de</u>
Explanation:- character from 0 to 2 index should be bold, 2 to 4 index should be underline. Tricky point is that character at index 2 should be both bold and underline.| Report Duplicate | Flag | PURGE
xyz SDE1 - 0of 0 votes
AnswersSteps to get out of complete binary tree
- bibhuprasadpala107 July 02, 2019 in India
You are given two integers A and B. A describes the number of nodes in complete binary tree.
You are B steps away from your destination in the worst case.
Initially, you can be at:
The root node of the tree and can only move bottom of the tree.
Any leaf node of the tree and can only move up the tree.
Find and return an array of integers C of size 2
where
C[0]: The number of nodes which are at B steps from the root, i.e. the number of nodes such that,
starting at that root, you have to take
B steps downwards to reach the node.
C[1]: The number of nodes such that the maximum distance from the node to any leaf in the subtree of the node is B.| Report Duplicate | Flag | PURGE
xyz SDE1 - 0of 0 votes
AnswerGuys,
- zuhaibaliraja November 23, 2018 in United States
I have an interview in Google exactly after 2 weeks for software engineer position. I recently have done my MS in Information Science and I applied in google. They shortlisted my profile and sent me sample code exam which I have passed. Now it's my technical interview and I am very beginner into programming. Can please anyone help me what type of questions do they ask and how to tackle those questions. I am not good in data structures and algorithm. I self-taught programming online classes. I am so scared to face the interview. Please suggest me something| Report Duplicate | Flag | PURGE
xyz Jr. Software Engineer .Net/C - 0of 0 votes
AnswersFirst common Ancestor of Binary tree . Java Solution needed.
- sarunreddy82 May 11, 2018 in United States
Class Node {
Node Parent;
Node LeftChild;
Node rightChild;
int val;
}
publlic Node firstAncestor(Node leftNode, Node rightNode){
// We don't get the root node here. From left and right child we need to find it's parent and find the lowest common ancestor.
}| Report Duplicate | Flag | PURGE
xyz Trees and Graphs - 0of 0 votes
AnswersProblem:
- sarunreddy82 April 29, 2018 in United States
Insert + or – sign anywhere between the digits 123456789 in such a way that the expression evaluates to 100. The condition is that the order of the digits must not be changed.
e.g.: 1 + 2 + 3 – 4 + 5 + 6 + 78 + 9 = 100
I have below C solution - Can you please help me to convert to Java. I need this solution in Java.
#include<stdio.h>
#include<conio.h>
int findnumber(int i,int j)
{
int k;
int n;
for(k = 0; k < j; k++)
{
n = i % 3;
i = i / 3;
}
return n;
}
void main()
{
int i, j, k, current, result, operation;
clrscr();
for(i = 0; i < 19683; i++)
{
if(i%3 == 0)
continue;
current = 0;
result = 0;
for(j = 1; j < 10; j++)
{
k = findnumber(i,j);
if(k==0)
{
current = current * 10 + j;
}
else
{
result = result + (operation == 1 ? current : -current);
current = j;
operation = k;
}
}
result = result + (operation == 1 ? current : -current);
if(result == 100)
{
for(j = 1; j < 10; j++)
{
k = findnumber(i,j);
if(k==0)
printf("%d",j);
else
printf("%c%d",k==1?'+':'-',j);
}
printf("\n");
}
}
getch();
}| Report Duplicate | Flag | PURGE
xyz Java - 0of 0 votes
AnswersLanguage : java
- sarunreddy82 April 27, 2018 in United States
Find the length of the non repeated numbers in an array.
Input : 1,2,2,3,4,5,6,2,3| Report Duplicate | Flag | PURGE
xyz abc Arrays - 0of 0 votes
AnswersGiven an array of n strings, sentences, where each sentences, consists of most w space-separated words, we want to perform q queries given by an array of q strings named queries where each queries consists of at most k space-separated words. To answer query queriesj, we find all the indices in sentences that contain every word in queries and assemble them into an array of indices listed in ascending order. For example, if all the words in queries are only found in sentences4, sentences9 and sentences2 , then the answer to queriesj is the array[2,4,9].
- sarunreddy82 March 28, 2018 in United States
Input Format:
The first line contains an integer, n, denoting the number of Strings in sentences
Each line i of the n subsequent lines contains at most w space-separated words describing sentences
The next line contains an integer, q, denoting the number of strings in queries
Each line j of the q subsequent lines contains at most k space-separated words describing queries.
1) Sample I/P format:
3
jim likes mary
kate likes tom
tom does not like jim
2
jim tom
likes
O/P:
2
0 1
2) Sample I/P Format:
4
how it was done
are you how
it goes to it
goes done are it
2
done it
it
O/P:
0 3
0 2 2 3
Note: Solution in Java only
static void searchQueries(String[] sentences, String[] queries) {
}| Report Duplicate | Flag | PURGE
xyz Arrays - 0of 0 votes
AnswersLanguage : Java
- sarunreddy82 March 28, 2018 in United States
Given a binary tree, print boundary nodes of the binary tree counter-clockwise starting from the root.
For example, boundary traversal of the following tree is “20 8 4 10 14 25 22”
20
8 22
4 12 25
10 14| Report Duplicate | Flag | PURGE
xyz Algorithm - 0of 0 votes
AnswerDesign a system to support a pool of servers. The pool Api should be able to add a server, get a server (can be random) and delete a server from the pool.
- sarunreddy82 March 18, 2018 in United States
You need to design and implement an interface for such pool.
The pool implementation should operate with a high performance so all operations need to be done in O(1).| Report Duplicate | Flag | PURGE
xyz - 0of 0 votes
AnswersGiven the N*N matrix, find the given number in the matrix. All rows are sorted. And each row first element is less than the previous row last index.
- sarunreddy82 March 05, 2018 in United States
input :
[1,3,5,7,9]
[11,13,15,16,20]
[21,22,23,24,25]
[30,32,35,40,45]
Given Num : 23
What is the best Optimal solution ? I have used BST but the interviewer asked to use any other which could do better in the above scenario.| Report Duplicate | Flag | PURGE
xyz Developer Program Engineer Matrix - 0of 0 votes
AnswerGiven the below input and ouput.
- sarunreddy82 March 05, 2018 in United States
Input :
String[] input = {"hello", "world"};
output: (Higher count should come before and natural order)
hello : l=2, e=1,h=1,o=1
world: d=1,l=1,o=1,r=1,w=1| Report Duplicate | Flag | PURGE
xyz None Arrays - 0of 0 votes
AnswersGiven the below input and output and asked to write in Java.
- sarunreddy82 February 22, 2018 in United States
Example 1)
input : {1,2,3,4, &, 12,13,14,15}
output : {15,14,13,12,1,2,3,4}
Example 2 )
input : {33,34,&,55,63}
output : {63,55,33,34}
Assumption : '&' will always be in the middle.| Report Duplicate | Flag | PURGE
xyz Backend Developer Arrays - -2of 2 votes
AnswersHow to bring back ex lost love back with in 24 hours
- EleciaHadley February 12, 2018 in United States for student| Report Duplicate | Flag | PURGE
Student xyz unix system programmin - 0of 0 votes
AnswersY can't user mode helper function execute ls command .
- bhargavmtie December 28, 2017 in India for Drivers
It is executing my application and even power off command.
Please let me know how user mode helper function works briefly...| Report Duplicate | Flag | PURGE
xyz Linux Kernel - 0of 0 votes
AnswersHow to annihilate twisted FB issues via Facebook Customer Service 1-877-470-3053?
- devinlllee123 December 05, 2017 in United States| Report Duplicate | Flag | PURGE
xyz abc - 0of 0 votes
AnswersHow to Do Business On FB? Grab Facebook Customer Service 1-877-470-3053
- ThomasMargaret654 December 05, 2017 in United States| Report Duplicate | Flag | PURGE
xyz abc - 0of 0 votes
AnswerHow to Edit Temporary Profile Photo? Get Facebook Customer Service 1-877-470-3053
- ThomasMargaret654 December 05, 2017 in United States| Report Duplicate | Flag | PURGE
xyz abc - 0of 0 votes
AnswersHow to use Facebook for promotion via Facebook Customer Service 1-877-470-3053?
- ThomasMargaret654 December 05, 2017 in United States| Report Duplicate | Flag | PURGE
xyz abc - -2of 2 votes
AnswersGmail Technical support number: Maximum personality advocated making smooth communication to save your phone bill. Hence, they are addicted into in built chatting service and incredible Gmail tech support. Even through filling the accurate credential details in the form of the user name and password, establishing the user friendly communication without the error message and prompt is not easy task. If you are getting difficulty to access your account to enjoy all cheered function, then you should have to get assistance of expert through dialing Gmail technical support phone number +44-8000-9039-09. Otherwise, you will have to bear several losses in the Gmail account. Our team is offering support at nominal price value. At the peak of urgency, you should have to dial our toll free number.
- davidsmith85878 February 14, 2017 in uk
for more info visit-http://www.customer-emailsupportnumber.com/gmail-support.html| Report Duplicate | Flag | PURGE
xyz abc Gmail customer care phone number +44-8000-9039-09 - 0of 0 votes
AnswersHow to print from 3rd column to till last columns using awk command in unix, if there are 'n' columns in a file.
- Srinivas August 29, 2016 in United States| Report Duplicate | Flag | PURGE
unknown xyz - 0of 0 votes
AnswersGiven a string consisting only of digits, find the missing number. For instance, given the string 596597598600601602 the missing number is 599. You may assume all the numbers are positive integers and the sequence increases by one at each number except the missing number. The numbers will have no more than six digits and the string will have no more than four hundred characters.
- keerthanabharani95 August 26, 2016 in India
Your task is to write a function to find the missing number in the sequence. If there should no missing number whatsoever, return a value of -1| Report Duplicate | Flag | PURGE
xyz - 0of 0 votes
Answersa = 0, b=0, c=1 are the 1st three terms. All other terms in the Lucas sequence are generated by the sum of their 3 most recent predecessors.
- keerthanabharani95 August 26, 2016 in India
Write a program to generate the first n terms of a Lucas Sequence.| Report Duplicate | Flag | PURGE
xyz - 0of 0 votes
AnswersJSON PARSING ( Print all the data from a Json String).
- keerthanabharani95 August 26, 2016 in India
Input : {'firstname' : 'abc'}
Output : firstname -> abc
Input : {'firstname' : 'abc', 'lastname' : 'Lincoln'}
Output : firstname -> abc lastname -> Lincoln
Input : {'address' : '365 KG', 'lastname' : 'Lincoln'}
Output : address -> 365 KG lastname -> Lincoln
Ideally, you must parse the JSON string into a map data, and then print out the elements of the map. Among other things, it will help print out the data in alphabetical order as well.| Report Duplicate | Flag | PURGE
xyz