# Perguntas de entrevista de Desenvolvedor de c

# 4 mil

Perguntas de entrevista para o cargo de Desenvolvedor De C compartilhadas pelos candidatos## Principais perguntas de entrevista

### How do you find the biggest number ?

4 respostas↳

Sort and use binary search.

↳

If you sorted the list of numbers why would you have to binary search to pick it out? It should either be the first or last one in the list depending on what you past as your comparator. And sorting is slow for this kind of question, since you will be removing and inserting items to figure out which one is the biggest. What they probably wanted to hear is if they didn't want it optimized was a single for-loop with a comparator. This should get done in O(n). If they wanted it optimized, a divide and conquer strategy will find the answer in lesser number of comparisons. If you're looking for a STD solution it's "std::minmax_element(first, last);" Menos

↳

You are so right ! Now I can't remember whether the question was to find a target number, or the biggest. If the latter, then for sure that would be the killer reason I failed the interview! Thanks very much for the solution. Menos

### Very simply question of inserting latest 5000 records in container along with timestamp and retrieve them as needed and discard which are older then 5000.

4 respostas↳

Isn’t it true that you should pass 3/3?

↳

They gave me the same test on HackerRank which I did successfully (it passed all test cases). Yet my candidacy was rejected. I used a map container. I couldn't find any container suitable for the job. There may be a better solution which I am was not able to figure out. After reading this post, I am also feeling that they are biased :( Menos

↳

I'm curious about the "racially charged" - that's pretty bad. Since you mentioned 20 years it could be more a case of age discrimination (rampant in IT unfortunately) than racial bias. Menos

### As the bond they asked me to submit them my original document (10th 12th and birth certificate) Also if i leave in probationary period i will have to submit 20K

4 respostas↳

if they caught me red handed babe then why did they called me for the third round??? he was just trying make him superior that's all Menos

↳

Are you sure that they asked for your birth certificate ? because no company asks for birth certificate.. I have to face an interview in next 2 days.. so please reply. Menos

↳

They asked for 4 documents fourth one I don't remember and even if they didn't ask for birth certificate, it is illegal to ask for any original document and never do submit at any cost. Menos

### Sequence of numbers in random order and 1 of them is missing how to find that out...

4 respostas↳

If the sequence is guaranteed to contain only positive integers, it can be done like so: Read in the sequence, noting the MIN and MAX numbers. The sum IF it started from 1 would be MAX(MAX-1)/2. The sum of the 'missing' numbers (from 1 up to where the sequence actually starts) is (MIN-1)*MIN/2. The missing number is given by taking the difference between the two: X = [MAX*(MAX-1) - (MIN-1)*MIN]/2. Menos

↳

Oops, in addition to what I put above there is a final step to get the actual answer. The missing number is equal to X minus the sum of the numbers given. Menos

↳

N(N+1)/2 - sum of the input = missing number

### Most of the questions were of the "Tell me about a time when you had to..." variety (STAR: Situation, Task, Action, Result). You also are given a folder at the beginning and you have to choose 3 words, out of 9 possible, that best describe you, and you are asked to explain why you chose each one of them. Another question was why am I interested in the insurance industry? (Answer I gave below).

3 respostas↳

I chose the insurance industry because it is one of the most stable industries and offer opportunities for growth. Menos

↳

I had the same situation. (for the Canton location) had my phone interview, the next week went in for my face to face interview. I left there thinking that the interview went extreamly well. It's been over a week and I haven't heard anything from the recruiter. Menos

↳

can u plz tell me what were the words u have to pick out of 9 and what u picked it?? and what did u explain.. im reall worried as i have one coming up next week Menos

### Was given a set of user requirements for an order management system. Had to come up with an entire solution in 45 min.

3 respostas↳

yes

↳

its based on the ms architecture

↳

Entire interview was on the design solution. Solution was based on MVC architecture. Menos

### Q: Write a program for this: I/P: aaaccedddd O/P: 3a2c1e4d

3 respostas↳

string str; getline(cin,str) unordered_map charcountMap; for(int i=0;i

↳

string str; getline(cin,str) unordered_map charcountMap; for(int i=0;i

↳

string str; getline(cin,str) unordered_map charcountMap; for(int i=0;i

### New shares report data on a minute to minute basis with additional information. Please describe how to perform this change without affecting old shares data

3 respostas↳

If you need help passing the CCAT (hardest part of the process in my opinon) I passed it by studying ruthlessly. I found this site that has the same CCAT as crossovers and just took that a bunch of times. crossoverccat[DOT]com I recommend this for anyone that has the proctored CCAT coming up. The salary is $15 / hr which is really good in my country. 40 hours a week min/max. Menos

↳

If you need help passing the CCAT (hardest part of the process in my opinion) I passed it by studying ruthlessly. I found this site that has EXACTLY the SAME CCAT as crossovers and just took that a bunch of times. CROSSOVERCCAT(dot)COM I recommend this for anyone that has the proctored CCAT coming up. It is the SAME test as CROSSOVER for WORK I woulden’t have been able to pass without it! Menos

↳

Hello, i have some questions regarding the writing code assessments for the software engineer position. It will be Data structure and Algorithms. would anyone give me advice about how to study for it? Menos

### what is maintence in air conditioner?

3 respostas↳

to check every part like electrical , mechanical, pumps. motors, indoor , outoor units filters coils , gas in the system absorb unnecessary sounds from the system. etc Menos

↳

yes write the ans

↳

to check the realy and runing to cpacitoer and fillters coils

### Given an array of integers of size N, and an int L, find if L is in N. Then they ask how many "=" are in this solution. Then they ask you to cut it by about half.

3 respostas↳

***First solution will be*** go over the whole array in a loop and put an if statement calling if the arr[i] == L. inside the if we call L is in the array outside the loop, we call L is not in the array this sol has 2 "=" ***second solution will be *** firstly we need to sort the array and then using a loop we again use if statement the statement checks if L is smaller the arr[i] if it is true so we know L is in the array at the end of the loop, we declare L is not in the array Menos

↳

+ + int the second answer I needed to check if the equals or smaller + + then the second solution is evolving 1 "=" Menos

↳

"if it is true so we know L is in the array" - why? if the array is [2,3,5] and L = 1, you will return true because L <= arr[0] Menos