Tech Lead Interview Questions
- 0of 0 votes
AnswersYou are given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in the list. One of the integers is missing in the list. Write an efficient code to find the missing integer.
- Nits January 30, 2020 in India| Report Duplicate | Flag | PURGE
Deshaw Inc Tech Lead - 0of 0 votes
AnswersIn an interview this question has been asked :
- S@iR@m December 26, 2018 in India
How to fit four characters into an integer, implementation should be in C programming language.
For example, four characters, viz., 'a', 'b', 'c', and 'd' need to be fit into an integer.
I tried to answer this question using ASCII value of the characters.
Please suggest the correct solution.| Report Duplicate | Flag | PURGE
Not disclosed Tech Lead C - -1of 1 vote
AnswersEmail customer Service Technical Solution for Every Client 1800-342-543
- olivagomezk29 December 08, 2017 in United States for Earthlink Technical Support| Report Duplicate | Flag | PURGE
StartUp Tech Lead - 0of 0 votes
AnswersHow to use Verizon Sim Card, Is it simple or not.
- olivagomezk29 December 07, 2017 in United States for Marlon Jeffrey
if its not easy Please provide Verizon customer support
number.| Report Duplicate | Flag | PURGE
Email Customer Service US Tech Lead - 0of 0 votes
AnswersThere is a tree of nodes . each node is of type either place, area name, city, district , state, country
they are in tree like order like country contains multiple states ,states contain multiple cities ...so on
i want define the node structure and define the strategy to print the address of any node given from parent to all the child address of the node
- girishkumar518 June 21, 2017 in Indiapackage com.girish.sample; import java.util.ArrayList; import java.util.List; public class Node { private String name; private Node parent; private List<Node> childNodes; private String nodeType; public Node(String name,String nodeType){ this.name = name; this.nodeType = nodeType; } /** * @return the name */ public String getName() { return name; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @return the parent */ public Node getParent() { return parent; } /** * @param parent * the parent to set */ public void setParent(Node parent) { this.parent = parent; } /** * @return the childNodes */ public List<Node> getChildNodes() { return childNodes; } /** * @param childNodes * the childNodes to set */ public void setChildNodes(List<Node> childNodes) { this.childNodes = childNodes; } /** * @return the nodeType */ public String getNodeType() { return nodeType; } /** * @param nodeType * the nodeType to set */ public void setNodeType(String nodeType) { this.nodeType = nodeType; } public String getAddress() { return getparentAddress(); } public String getparentAddress() { if (parent == null) return ""; return parent.getparentAddress().concat("," + this.nodeType + ": " + this.name); } public List<String> getchildAddress() { List<String> childAddress = new ArrayList(); for (Node node : childNodes) { childAddress.add(node.getchildAddress()); } return null; } }
| Report Duplicate | Flag | PURGE
Ivycomptech Tech Lead Data Structures - 0of 0 votes
AnswersArray consist of -1 and 1, Find count of all sub-arrays where sum = 0.
- itmvikastiwari February 06, 2017 in India
Ex. [-1,1,-1,1]
Ans : 4
[-1,1] [1,-1],[-1,1],[-1,1,-1,1]
Ex. [-1,-1,1,1]
Ans : 2 [-1,1][-1,-1,1,1]| Report Duplicate | Flag | PURGE
Snapdeal Tech Lead Algorithm - -2of 2 votes
AnswersMSN Customer Service | Support Phone Number
- kiteross170290 October 08, 2016 in United States for Customer Service
Site : http://solvebe.webs.com/msn-customer-service| Report Duplicate | Flag | PURGE
US Tech Lead Experience - 0of 0 votes
AnswersEither C or C++ is faster and which one is efficiently access memory?
- D PRAVEEN KUMAR September 22, 2016 in India| Report Duplicate | Flag | PURGE
Skill Subsist Impulse Ltd Tech Lead C - 0of 0 votes
AnswersCan we execute a C program with out main?
- D PRAVEEN KUMAR September 22, 2016 in India| Report Duplicate | Flag | PURGE
Skill Subsist Impulse Ltd Tech Lead C - 0of 0 votes
AnswerWrite a C program to check biggest among two numbers with out using any relational operators.
- D PRAVEEN KUMAR September 22, 2016 in India| Report Duplicate | Flag | PURGE
Skill Subsist Impulse Ltd Tech Lead C - 0of 0 votes
Answerswe create a pipe
- mohapatrasandeep60 March 21, 2016 in United States
int pfd[2];
if (pipe(pfd) == -1) /* Create the pipe */
errExit("pipe");
what will happen if we write to or read from both pfd[0], pfd[1] simultaneously
how to handle such a situation| Report Duplicate | Flag | PURGE
TATA Consultancy Services Tech Lead - 0of 0 votes
Answers-2
- mohapatrasandeep60 March 21, 2016 in United States
down vote
favorite
In TCP sockets, there is a connection between Ip1,port1 to IP2,port2; how is this connection maintained , how it is different from UDP socket| Report Duplicate | Flag | PURGE
TATA Consultancy Services Tech Lead - 0of 0 votes
AnswersDesign Interprocess Singleton class in C++
- Rajarathinam Antony December 10, 2015 in India
When multiple instance of singleton.exe is running, same memory(singleton instance) should be shared among all the process| Report Duplicate | Flag | PURGE
Texas Instruments Tech Lead Algorithm - -2of 2 votes
AnswersDid anyone given JPMC java coding test in Jersey city or new York?
- nishad.parkhi September 29, 2015 in United States| Report Duplicate | Flag | PURGE
Wipro Technologies Tech Lead - -2of 2 votes
AnswerHow will you do reset password of your gmail account ?
- sophiawright3090 August 14, 2015 in United States| Report Duplicate | Flag | PURGE
monktech.net Tech Lead technical - 0of 0 votes
Answerwrite a function to copy string. You are free to decide function parameters. But once you wrote the function, you need to specifically explain below points
- Sach July 20, 2015 in India
- Function parameters
- What are assumptions (For ex. Destination string should have sufficient memory allocated in advance. means function is not going to allocate memory for destination string)
- Limitation of your function
- Find bugs in your code.| Report Duplicate | Flag | PURGE
Hewlett Packard Tech Lead C - 0of 0 votes
AnswersThere is Ticketing vending machine which accepts Rs.1, Rs.2 and Rs. 5 coins. There is Rs. 5 Ticket. System will reject all invalid coins for ex. Rs 0.50, Rs. 0.25, Rs 10.
- Sach July 20, 2015 in India
System will not return any money or ticket if coin is invalid.| Report Duplicate | Flag | PURGE
Hewlett Packard Tech Lead Software Design - 0of 0 votes
AnswersDesign a your own Youtube. Which has feature like play, pause, resume, stop. Note that,
- Sach July 20, 2015 in India
- multiple users can be access multiple videos.
- Mutiple users can access same video at same time or different time.
- Need to tackle performance bottoleneck.| Report Duplicate | Flag | PURGE
Hewlett Packard Tech Lead Software Design - 0of 0 votes
AnswersWhat is Big-O and Big Theta notations?
- Sach June 10, 2015 in India| Report Duplicate | Flag | PURGE
Credit Suisse Tech Lead Algorithm - 0of 0 votes
AnswersSuppose your application is hanged in production environment at customer place, how would you diagnose the problem ?
- Sach June 10, 2015 in India| Report Duplicate | Flag | PURGE
Credit Suisse Tech Lead Debugging - 0of 0 votes
AnswersWhat design pattern you will use in this scenario :
- S@iR@m June 09, 2015 in India
One class will print odd numbers and other class will print even numbers.| Report Duplicate | Flag | PURGE
IBM Tech Lead C++ - -1of 1 vote
AnswersPrint a singly linked list in ascending and descending order in O(n) time. Both order printing should take O(n) time only.
- S@iR@m June 09, 2015 in India| Report Duplicate | Flag | PURGE
IBM Tech Lead Data Structures - 0of 0 votes
Answerswhat is memory leak and write a shell script to find memory leak ?
- arunpro13 February 12, 2014 in India| Report Duplicate | Flag | PURGE
Alcatel Lucent Tech Lead Unix - 0of 0 votes
AnswersGiven number k, for Single linked list, skip k nodes and then reverse k nodes, till the end.
- OTR November 23, 2013 in India| Report Duplicate | Flag | PURGE
iLabs Tech Lead Algorithm Linked Lists - 0of 0 votes
AnswersGiven an array which has prime numbers, find all duplicates elements of array.
- OTR November 23, 2013 in India| Report Duplicate | Flag | PURGE
iLabs Tech Lead Algorithm Arrays - 0of 0 votes
AnswersGiven a Binary Search Tree, Replace each node with sum of this node and sum of all nodes greater than this node.
- OTR November 23, 2013 in India| Report Duplicate | Flag | PURGE
iLabs Tech Lead Algorithm Data Structures - 0of 0 votes
AnswersHow do you protect your object of your class being deleted by the clients?
- ravi02431 November 13, 2013 in India| Report Duplicate | Flag | PURGE
Tech Lead C++ - 1of 1 vote
AnswersU are given a set of strings, using the characters of the given string, the program needs to find the maximum length string that doesn't has any of the given string as its sub-string. In case, if we can have infinite long string satisfying the property, print -1.
- Varun July 30, 2013 in India
I solved this, but looking forward to some convincing algo.
eg 1:
11, 00
longest: 010101010101010101010101... (-1, as infinite long)
eg2
101, 111, 00, 110
longest:010(i think, maybe wrong)| Report Duplicate | Flag | PURGE
Tech Lead Algorithm - 0of 0 votes
AnswersYou are given a list of integers. You can call only one method on the list:getItemAt(x), which will return the integer at the index x from the list.
- NP_learner July 06, 2013 in India for Unknown
The list starts with value 0 and it goes on to have value 0 continuously until some index. After the index the list continues to have value 1 till the end.
You do not know the size of the list. Its huge. You need to find the index from where the value 1 begins in the list.| Report Duplicate | Flag | PURGE
Labs247 Tech Lead Algorithm - 0of 0 votes
AnswersSay there are 3 array lists l1, l2 & l3 of same length. Thress threads accessing three lists. Say T1 -> l1, T2 ->l2 & T3 ->l3. It should print in the order say first element of 1st then first element of 2nd list and then first element of 3rd list. Then second element of 1st then second element of 2nd list and then second element of 3rd list.
- rizwan.amd March 26, 2013 in India| Report Duplicate | Flag | PURGE
Novell Tech Lead Threads