Online Coding Round

It was quite simple. I got three coding questions. hosted by cocubes.com

1) An array contains both positive and negative numbers in random order. Rearrange the array elements so that all negative numbers appear       before all positive numbers. https://www.w3wiki.org/move-negative-numbers-beginning-positive-end-constant-extra-space/

2) Given a Binary Tree where each node has positive and negative values. Convert this to a tree where each node contains the sum of the left and right sub trees in the original tree. The values of leaf nodes are changed to 0.https://www.w3wiki.org/convert-a-given-tree-to-sum-tree/

3) Given a binary tree. Find its maximum depth – minimum depth.

15 members selected from this round.

Samsung Internship Interview Experience (On-Campus for SRI, Bengaluru)

Similar Reads

First Round: Online Coding Round

It was quite simple. I got three coding questions. hosted by cocubes.com...

Interview Round: Technical  Round – 1

He asked about the projects I mentioned in resume....

Technical Round – 2

It lasted like 50 mins. The interviewer is super-friendly. She asked me to tell about myself first. She asked questions regarding all the skills I mentioned in the resume like DSA, machine learning( basics), OOPS, DBMS and some math. Just simple revision of OOPS concepts and DBMS helps you to clear this round. She asked me to write few mysql queries. Regarding Data structures, She asked about the standard graph algorithms with their time complexities and a question about string-search( KMP)...