Samsung Interview Questions
- 0of 0 votes
AnswersWhat is memory alignment in terms of compiler
- arpitsardhana2008 September 14, 2014 in India for networking| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer - 0of 0 votes
Answerwhat are types of memory issues one faces
- arpitsardhana2008 September 14, 2014 in India for networking| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Debugging - 0of 0 votes
AnswersWrite a program to find 2 complement of number
- arpitsardhana2008 September 14, 2014 in India for networking| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C# - 0of 0 votes
AnswerHow can we use union find algorithm for finding the path between two points in a Maze
- bharadwajSrivatsa September 13, 2014 in India| Report Duplicate | Flag | PURGE
Samsung Computer Scientist Algorithm - -3of 3 votes
AnswersI have two number A = 100 and B = 145;
- kienkun1990 August 10, 2014 in VN
I want to find all number that have digit of number is increase
Thanks| Report Duplicate | Flag | PURGE
Samsung Developer Program Engineer Algorithm - 4of 4 votes
AnswersWe have 25 horses and we need to find top 5 fastest horses irrespective of order, in a race only 5 horse can run. how many min races required to know top 5 horses...out of top 5 ordering not matter...u not need to tell which is fastest which is at second position.....
- Kavita June 03, 2014 in India| Report Duplicate | Flag | PURGE
Samsung Intern - 0of 0 votes
AnswersWrite an application in Java to simulate file system. For e.g. implement commands: ls -l (list contents of director sorted by name), cd .. (to go to parent directory), etc. It was a 2 hour remote programming test.
- techpanja February 11, 2014 in United States| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer - 0of 0 votes
AnswersHow you can find whether a link list contains a cycle or not?
- mpss.umbc January 29, 2014 in United States for Android| Report Duplicate | Flag | PURGE
Samsung Software Engineer Intern Data Structures - 0of 0 votes
AnswersShow whether two integer ranges are overlapping or not. If so, return the overlap range
- mpss.umbc January 29, 2014 in United States for Android| Report Duplicate | Flag | PURGE
Samsung Software Engineer Intern Coding - 0of 0 votes
Answersfind a cycle in the given array and return the length of a cycle
- peter January 14, 2014 in United States
for example, a[0] = 2, a[1] = 0, a[2] = 3, a[3] = 1, a[4] = 2, a[5] =4;
a[0]=2 -> a[2]=3 -> a[3]=1 -> a[1] =0 -> a[0]=2 ....
2->3-1>0->2->3->1->0->...
so return value should be 3.| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Algorithm - 0of 0 votes
Answersyou have the string ={ aabb, aafd,acff,aacg,.....} , if i am writing a as first char or first two char or first three char and so on, it should show the all unique combination of words started with the that characters for eg. say if iam writing aa then it show that aabb or aafd
- sandy December 10, 2013 in India
i have tried using hashmap is it increase my complexity or should i have to use list| Report Duplicate | Flag | PURGE
Samsung Network Engineer Algorithm Java - 0of 0 votes
AnswersYou are given 2 convex hulls. Develop an algorithm to find all the common points; that is the points that lie in the intersection of these 2 convex hulls. Write code.
- Rahul Sharma November 21, 2013 in United States| Report Duplicate | Flag | PURGE
Samsung Research Scientist Algorithm - 2of 2 votes
Answershow much memory can calloc and malloc can allocate???
- saran August 17, 2013 in India| Report Duplicate | Flag | PURGE
Samsung C - -3of 3 votes
AnswersHow can I find the shortest distance between the first and the last element in a two dimension Array of 0's and 1's.
- martin1990 July 20, 2013 in India
Given if the element is 1 we can move left or down, if it is 0 we can only proceed downwar| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Java - 2of 2 votes
AnswersGiven an NxM (N rows and M columns) integer matrix with non-negative values (0..MAX_INT inclusive). What is the maximum sum from going top left (0, 0) to bottom right (N-1, M-1) ? The condition is that when you're at point (p, q), you can only move to either right (p, q+1) or down (p+1, q).
- math.matt July 03, 2013 in United States
Expected time complexity O(N*M)
Expected space complexity O(N+M)
From the space complexity it looks like there is a DP solution, but I couldn't figure it out.| Report Duplicate | Flag | PURGE
Samsung Java Developer Matrix - -3of 3 votes
AnswersHow to monitor health of the system?
- testcareercup June 26, 2013 in United States for Mobile| Report Duplicate | Flag | PURGE
Samsung Quality Assurance Engineer Computer Architecture & Low Level - -4of 4 votes
AnswersWhat is a bad app and a good app?
- testcareercup June 26, 2013 in United States for Mobile| Report Duplicate | Flag | PURGE
Samsung Quality Assurance Engineer Behavioral - 1of 5 votes
AnswersThis was the question of two buckets of 3 and 5 litres each. Now measure four litre. I had given 2 solutions but still he wanted 3 solution.
- Nikhil June 11, 2013 in United States for any
1st soln: fill 3 litre and then interchange in various ways to get 4 litre.
2nd soln: fill 5 litre and then interchange in various ways.
do you have any soln other than this.| Report Duplicate | Flag | PURGE
Samsung Developer Program Engineer Financial Software Developer Brain Teasers - 0of 0 votes
Answerswrite a class which exposes only 20 of its Objects containing two methods borrowObject and returnObject .Code must be thread safe.Also write a method to get the number of Live Objects(Objects currently in use by other classes).
- onlinesoumitra April 27, 2013 in United States| Report Duplicate | Flag | PURGE
Samsung Developer Program Engineer Java - 1of 1 vote
AnswersWhat will be the output of the program ?
- pirate April 13, 2013 in India
#include< stdio.h >
void fun(void *p);
int i;
int main()
{
void *vptr;
vptr = &i;
fun(vptr);
return 0;
}
void fun(void *p)
{
int **q;
q = (int**)&p;
printf("%d ", **q);
}| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer - 0of 0 votes
AnswersThere are some exceptions that cannot be caught by try catch. How to catch such exceptions? Can we prevent our program to crash if we are not able to catch such exceptions.
- DashDash March 26, 2013 in India| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++ - 5of 5 votes
AnswerQ .2 candles each burns for 1 hr each ,calculate 45 min time
- dearamitdubey@googlemail.com March 25, 2013 in India
by burning them in one go .
Ans :
burn the first candle from both the side, parallel to first one , burn the other from single side only, once the first is burnt completely 30 mins are over and second is already half burned .
now start burning the second one from the other side .
you have 45 mins calculated.
!!! Bam !! again kid stuff !!| Report Duplicate | Flag | PURGE
Samsung Financial Software Developer - 0of 0 votes
AnswersWrite a function that returns a boolean value, if two strings(passed as input) represent the same algebraic equation, depending upon whether the strings are same or not. I guess, the length of both strings are equal, but not sure, and the operators involved are +, *, /, ^, (, )
- Sai Nikhil November 29, 2012 in United States| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Algorithm - 8of 8 votes
AnswersYou are given N unique numbers a1<a2<a3<...an. Find out the count of all possible binary search tress that can be constructed using these numbers.
- ashok.singh.sairam September 13, 2012 in India
for example with 3 elements 1,2,3 there are 5 possible BST and for 1,2,3,4 there are 14 bst| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Algorithm - 0of 0 votes
Answersfind the length of string without using inbuilt methods in java
- masoom April 29, 2012 in India| Report Duplicate | Flag | PURGE
Samsung Java Developer Java - 0of 0 votes
Answersdefine a struct imitate ip_header as it is in a packet.
- Varun November 21, 2011 in India
actually, he wanted to see how i handle things with aren't a byte long or odd number of bytes long, like flags, ihl, version and all.
what's the best struct to define a ip_header, and tcp header.| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C - 0of 0 votes
Answerswrite a program to convert char *mac_address to int array.
- Varun November 21, 2011 in India
eg mac_address ="ab:cd:ef:12:34:56" to
result= [ab, cd, ef, 12,34,56]
I was able to do it, but wasn't sure, how do we store hex values in int array. i mean a[0]=a, will essentially be a[0]=10, can we store hex directly in array, so that when we do memcmp or something, we can directly compare hex against hex?
Not sure if me making sense here, still let me know, if you have suggestions.| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C - 0of 0 votes
AnswersGiven a Big XML File. You have to design and implement the Data Structure which stored their keys and its value accordingly in C/C++ language.
- hprem991 November 10, 2011 in India for Protocol Devlopment
Write a Program to Store all the given XML content to your designed Data Structure and Retrive it . Basically SAX/DOM parser :)
Contraints :-
1> Data Structure should not be a flat file type.
2> Every Program code must be modular and each module should not exceed 15 lines of code.
3> No Usage of STL library functions.
4> Each Module should not have return type other than success and failure of operation.
5> Use Memory management at the most.
6> Design and problem approach crutial.
7> Minimal Space and Time Complexity for each code.
8> No Static variable usage and all memory allocation should be dynamic.
9> There are occasion like a parent has more than one child you have to take care of such cases.
10> Handle all possible error condition.| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Application / UI Design