Skip to content
Related Articles
Open in App
Not now

Related Articles

Magnitude Software Interview Experience (On Campus)

Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 28 Sep, 2017
Improve Article
Save Article

For Associate Software Developer role.

ONLINE ROUND (2 Sections)
Section 1
a) Given a number N, find the count of numbers from 1 to N whose binary representation is a palindrome.
b) There are two stacks(S1 and S2) of books. Each book in stack has a weight. You are given the maximum weight(W) of books that can be picked. You have to maximize the number of books that can be picked. Note that each time you can either pick from S1 or S2 only.
S1: 3 6 3 2 5
S2: 15 1 1 1 1 1 1 9
W: 15
Answer: 7
c) I don’t remember the question exactly but it was based on topological sorting of graph. This was hard.

Section 2
a) A website can have many key words. Also there can be many links that a website is linked. Write the design of the tables to store these.
b) SQL query which was based on nesting.

a) String comparison ignoring case. Use concept of bits.
b) Given only a pointer to a node to be deleted in a singly linked list, delete it
c) Delete a tree
d) How exactly does compilation happens for a .cpp or .java file to produce executable file?
I had to write code on paper for the 3 coding questions. Then he asked me to tell about any two of my projects. No questions here.

Discussion on book stack problem of coding round as I could pass only 2 out of 5 test cases there. He wanted me to solve it completely. I told an approach where in all possibilities are checked using concept of tress. I had to first tell the logic and then write code for it.

a) Structure of N-ary tree. I was told to use linked list to store child nodes instead of vector.
b) Traverse N-ary tree and find sum of all nodes.
c) If SQL query is stored as a class, what are the member fields of this class?

Nothing much here.

Interviewers were very knowledgeable and helpful. They kept giving me hints when I could not proceed and I kept building on those to arrive at the solutions. They focused mostly on logic of my solutions and not whether my code was right.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!