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;
Software Developer C Interview Questions
1,023 software developer c interview questions shared by candidates
Simple coding test
The interview process was hassle-free, but the interviewer was hasty in forming judgments and didn't provide an opportunity for the interviewee to ask questions. Additionally, the interviewer seemed rushed to conclude the call, possibly because it was more of a "get to know you" session rather than a formal interview.
[3rd interivew] Can you imagine working in a social environment where nobody tells you how to do something and only you know what should be done and you commit to doing something that can be done?
In technical interview round, I found it difficult. Basic sql questions and Linux questions. I was asked to find second highest salary from a table. Common utilities in Linux. Project related questions. Advanced c++ topics such as smart pointers, STL, etc
In project X, what was your work process?
Q: Questions about C++. Q: Questions about compilers.
Segment fault in c/c++ in real example Questions about memory (stack, heap..) Concurrency questions (thread vs process kinda questions) Cache coherence ( more questions about Dragon, Firefly)
Bitwise operations
What errors can you identify in this code?
Viewing 681 - 690 interview questions