Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to add another question that I was asked recently at uber #93

Closed
Ambuj-K opened this issue Apr 22, 2020 · 7 comments
Closed

need to add another question that I was asked recently at uber #93

Ambuj-K opened this issue Apr 22, 2020 · 7 comments

Comments

@Ambuj-K
Copy link

Ambuj-K commented Apr 22, 2020

The question I was asked is,

A segment of arbitrary size, how do we tell that it is captured or not.
E - Empty, 1 - Color 1, 2 - Color 2

EE1111EE
EE1221EE
EE1221EE
EE1111EE Captured

EE1111EE
EE1221EE
EE1221EE
E1221EEE
E1111EEE Captured

EE1111EE
EE1221EE
EE2221EE
EE111EEE Not Captured

I would like to add it, and if someone can suggest a solution I'd be grateful

@rishabh115
Copy link
Collaborator

Hi @Ambuj-K, Thanks for your question. The criteria for segment being captured or not is little unclear. It would be very helpful, if you can add the revised question in a new pull request. Meanwhile, here is the contributing guideline. Cheers🤟!

@ravireddy07
Copy link

After looking into samples above, @rishabh115

Color 1 & Color 2 is acting like a positive and negative to balance the pattern. Which ever pattern is balanced is Captured, else Not Captured. Is this true...?

@Ambuj-K Please conform this, I'll provide the algorithm & code for this.

@rishabh115 rishabh115 pinned this issue Sep 25, 2020
@rishabh115 rishabh115 unpinned this issue Oct 7, 2020
@abitaaugustine
Copy link

Hey if you are to open a new issue for hacktoberfest I can add the questions from ThoughtWorks, TCS, WIPRO interviews?

@abitaaugustine
Copy link

Hey if you are to open a new issue for hacktoberfest I can add the questions from ThoughtWorks, TCS, WIPRO interviews?

Or should I just fork edit and then create a pull request

@ravireddy07
Copy link

@rishabh115 Hi, do we need to create only code or only Description of the problem statement or both...?

@rishabh115
Copy link
Collaborator

rishabh115 commented Oct 13, 2020

Guys, Have a look at the contributing guidelines. It has everything you need to know.
@abitaaugustine @ravireddy07

@abitaaugustine
Copy link

I have added the questions I was asked for ThoughtWorks interview @rishabh115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants