Taro Logo

Junior C++ Engineer Interview Experience - United States

July 1, 2024
Negative ExperienceNo Offer

Process

A recruiter reached out to me at the beginning and we had a screening phone call for 30 min. I was required to take the CCAT and personality test to advance, however, they had me retake it again for some reason. There were lots of hiccups in trying to schedule an interview, and the team actually ghosted me and did not show up to my scheduled time.

Finally, I was able to receive an interview after a whole literal month. It wasn't a very positive experience and it seems they need to work on their communication and management skills. I spent too much time focusing on trying to ace this interview that I omitted preparing for other ones which was naive of me. Interviewer was nice, however, but I was not able to solve their last question. This was for an entry level C++ position. May have dodged a bullet here...

Questions

isPalindrome:

/// /// The goal of this function is to determine if a string is /// a palindrome. e.g. radar if spelled backwards is radar /// /// String to test /// true if palindrome, false if not // abba abcd

Count letters in a sentence omitting non alphabet characters:

/// /// E.g given the

// input string "Hello there!", print the output has to be 'h': 2 /// 'e': 3 'l': 2 'o': 1 't': 1 'r': 1 /// /// input The string containing the letters to count /// // Omit any character that is not in the English alphabet

Normalize a file path/directory:

/// /// /// Normalizes the path, meaning that you reduce any unnecessary directory. /// For example, given the value notneeded1/notneeded2/../../hello you would /// return hello. /// /// /// input string /// Normalized string /*

  • Sample Directory structure
    • home
  • -- documents
  • -- desktop
  • -- myMedia
  • ----- photos
  • ----- videos
  • ----- music
  • -- downloads
  • /home/myMedia/photos/../../documents -> /home/documents
  • /home/myMedia/photos/../documents/.. -> /home/myMedia
  • /home/myMedia/../documents -> /home/documents
  • ../home -> ../home
  • home/../../final -> ../final
  • /home/myMdeia/documents -> /home/myMdeia/documents
  • Case 1:
  • C:\ [current working directory]
  • cd hello [command operating on cwd]
  • C:\hello [final path]
  • Case 2:
  • C:\ [current working directory]
  • cd notneeded1/notneeded2/../../hello [command operating on cwd]
  • C:\hello [final path] */

Identify memory leak:

// this function has a memory leak. Can you find it? int i = 5; // <-- char *pszString = (char *)malloc(32); memset(pszString, 0, sizeof(32)); strcpy(pszString, "hi");

if (i > 5) { sprintf(pszString, "%i is greater than 5", i); printf("%s\n", pszString); free(pszString); } else if (i < 5) { sprintf(pszString, "%i is less than 5", i); printf("%s\n", pszString); free(pszString); } }

Shortest path in graph:

/// /// graph is a function that accepts the node name, and int*. It returns the /// neighbors of the node and the length of the neighbors in the int* /// /// Name of start node /// Name of goal node /// /// The shortest path with format start->...->goal char *shortestPath(Inner *(*graph)(const char *, int *), const char *start, const char *goal) { // int neighborsLength;

// Inner *neighbors = graph(start, &neighborsLength); // std::cout << "name: " << neighbors[0].name << neighbors[0].cost << " // length: " << neighborsLength << std::endl; std::cout << "name: " << // neighbors[1].name << neighbors[1].cost << " length: " << neighborsLength // << std::endl;

// neighbors = graph(neighbors[0].name.c_str(), &neighborsLength); // std::cout << "name: " << neighbors[0].name << neighbors[0].cost << " // length: " << neighborsLength << std::endl; std::cout << "name: " << // neighbors[1].name << neighbors[1].cost << " length: " << neighborsLength // << std::endl;

Was this helpful?

Interview Statistics

The following metrics were computed from 1 interview experience for the Accelya Junior C++ Engineer role in United States.

Success Rate

0%
Pass Rate

Accelya's interview process for their Junior C++ Engineer roles in the United States is extremely selective, failing the vast majority of engineers.

Experience Rating

Positive0%
Neutral0%
Negative100%

Candidates reported having very negative feelings for Accelya's Junior C++ Engineer interview process in United States.

Accelya Work Experiences