↳
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 :( Less
↳
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. Less
↳
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 Less
↳
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. Less
↳
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. Less
↳
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);" Less
↳
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. Less
↳
Sorting + Binary search = O(n log n) + O(log n) Linear search = O(n) ???
↳
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. Less
↳
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. Less
↳
N(N+1)/2 - sum of the input = missing number
↳
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
↳
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. Less
↳
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! Less
↳
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? Less
↳
Inheritance polymorphism encapsulation abstraction
↳
Inheritance=Inheritance allows use to define The class from which the new class in herits properties data memberand member function is called vase classs and the new created class is clled derived class syntax class derived classs accesss. // data member and member function of derived classs: Polymorphism In simple words we can define polmorpsism as the ability of a meesage to be displayed in more than one from polymorphism important and basic concept of oops. polymorphism in manily divided in to types 1= compile time polmorphism compile time 1 function overloading 2 opertor overloading template 2=rum time polymorphism 1 function overloading Encapsulation= it is one of the most important feature of oops that used to rapping the data and function in to a single unit. The data of class is not accessible to outside the class 4 =Abstraction is the one of the most important feature of oops which is showing only the essential information to the out side would and hiding the intend details abstraction Less
↳
I was told that "We do not expect you to build everything from scratch". So I implemented a A* search algorithm to solve the maze based on pseudo I find on wikipedia. So I concede on that it is not original at all. And I did some unit tests for invalid inputs. The whole thing took me 8 hours. In terms of performance, my algorithm solved the most complicated example maze in matter of seconds. I suspect that they have a some sort of programming rule book that they used to judge your code. It's hardly about actually solving the problem at all. And I heard from the recruiter that they are not in any hurry to fill a position. So they get to be picky. It's not worth spending so much of your time to apply. Less
↳
Do they give you maze in an image file? How did you read that image ? did you convert it in binary format somehow ? Less