Taro Logo

Software Engineer Interview Experience - United States

August 1, 2016
Negative ExperienceNo Offer

Process

I got a mail from their recruiting team saying "....As the first stage of the application process, you have to complete a tech evaluation, comprising of coding questions...."

The evaluation (on edrepublic.com) had 2 coding questions. I think there was no time limit (well, at least I didn't see any clock ticking, maybe they had a way to internally record the time spent, I don't know).

Questions

Problem Statement:

Consider a social website SocialX, where friends connect to each other, just as they do on Facebook.

Friendship on SocialX is symmetric (if X is a friend of Z, then Z is also a friend of X) however not transient (if X and Z are friends and Z and Y are friends, then X and Y are not necessarily friends).

The term "k-joined" is defined as follows. If two people are friends, they are called 1-joined. For k >= 1, two people X and Z are called (k+1)-joined if X and Z are k-joined, or if there exists a person Y such that X and Y are k-joined and Y and Z are friends.

"Approachable Score" is defined as follows. If two people X and Z are not friends, then their Approachable Score is the fewest number of people (other than themselves) who must be removed from the network in order for X and Z to not be 3-joined. The higher the Approachable Score, the more likely it is that X and Z know each other.

Given a set of friends containing exactly K elements, where K is the number of people in the network. People are numbered from 0 to K-1. The j-th character of the i-th element of friends is '1' if i and j are friends, and '0' otherwise. Return the Approachable Score for personX and personZ.


Constraints

Set of friends will contain exactly K (1 < K < 41) elements, where each element will contain exactly K characters. Each character will either be '0' or '1'.

friends[i][j] will always be equal to friends[j][i] and friends[i][i] will always be equal to 0.

friend[personX][personZ] will be equal to 0 and personX will never be equal to personZ.


Input Format

Line 1: comma separated K elements representing friends.

Line 2: Integer representing personX.

Line 3: Integer representing personZ.


Output Format

Integer representing Approachable Score.


Sample Input

0100,1010,0101,0010

0

3

Sample Output

1

Explanation

Either remove person 1 or person 2 to get an Approachable Score of 1 for person 0 and 3.

Problem Statement

You have a grid of lights. Each light is initially either off or on. Every column in the grid has a switch and when the switch is flipped, all the lights in that column reverse states.

Given an array Q of Strings, where the j-th character of the i-th element is 'Y' if the light in row i, column j is initially on, and 'N' otherwise, find the largest number of rows that can be lit after performing exactly M flips.

A row in the grid is considered lit if all the lamps in that row are on and M flips do not necessarily have to be on M distinct switches.


Constraints

Array Q will contain between 1 to 50 elements, inclusive.

Number of elements in Q will define rows and number of characters in each element will define columns of the grid.

Each element of Q will have the same number of characters, ranging from 1 to 50, inclusive.

M will range from 0 to 1000, inclusive.


Input Format

Line 1: Comma separated Strings representing Q.

Line 2: Integer M.


Output Format

Largest number of rows.


Sample Input

NY,YN,YN

1

Sample Output

2

Explanation

This is a 3 rows by 2 columns grid. If we flip the switch on the second column, the bottom two rows will all light up, giving the largest possible number of lit rows with only 1 flip.

Was this helpful?

Interview Statistics

The following metrics were computed from 21 interview experiences for the Zulily Software Engineer role in United States.

Success Rate

14%
Pass Rate

Zulily's interview process for their Software Engineer roles in the United States is extremely selective, failing the vast majority of engineers.

Experience Rating

Positive43%
Neutral19%
Negative38%

Candidates reported having mixed feelings for Zulily's Software Engineer interview process in United States.

Zulily Work Experiences