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
C Software Developer Interview Questions
396 c software developer interview questions shared by candidates
Q) Given Singly linked list (1->2->3->4->5->6) , convert this list to (1->6->2->5->3->4). 1st's element next is nth element, 2nd's next is n-1th element and so on. --> I gave them one solution that uses stack, but no more extra space is expected, panel was very friendly and helpful they gave me time to time hint and finally I came up with below solution. Solution: 1) Split linked list into 2 halfs 2) Reverse the 2nd half. 3) Now merge 1st and 2nd half again. Q) Internal implementation of Malloc function Q) Move all the 10s at the end of the array, in O(N) Q) Some basic questions on Hashmap, vectors, set,list Q) Some question on OOPS, virtual functions, copy constructor, why & is used in definition of Copy Const etc. PS: I just added this review to admire the panel, they were very kind & friendly, supportive, and give you hints to arrive at the solution.
Nombre de bits d'un integer en C++ ? Qu'est-ce qu'un string ? Différence Java/C++
How to call the destructor of a child class when an object is deleted, but as a parent class object?
The time complexity of different data structures, eg. LinkedList, List, Hash table
OOP concepts and c++ 11 based questions
C++ related questions. Technical questions related to the position. Previous work experience
1. Sort array with ones and zeros. This was the most "complicated" part. 2. Complexity of insert/delete/find in double linked list, binary tree. Complexity of sort of array of numbers, of sorted array of numbers. 3. Questions like what order ctors/dtors work. 4. Some crap with 2 classes having static shared ptr for kernel object, where kernel was class poorly written. Like what's wrong with the code was the question. 5. int x; int &j; j=x; What's wrong? Reference should be assigned to a variable when declared actually. Other questions very primitive.
The answer was related to Graph data structure
Implement the Singleton design pattern.
Viewing 321 - 330 interview questions