Google Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
1
of 1 vote

social.msdn.microsoft.com/forums/en-US/netfxbcl/thread/46272ef0-59e6-47f2-bcce-166947e2cdb5

- Anonymous July 14, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

public static Byte[] hexToByteBuf(String hex){
		Byte[] buf = new Byte[hex.length()%2 == 0 ? hex.length()/2:(hex.length()/2)+1];
		for(int i = 0; i<hex.length(); i++){
			buf[i/2] = (i%2 == 0) ? 0 : (byte) (buf[i/2]<<4);
			char c = hex.charAt(i);
			if(c<=57)
				buf[i/2] = (byte) (buf[i/2] | c-48);// "0" : 48
			else
				buf[i/2] = (byte) (buf[i/2] | c-55);// "A" : 65
		}
		return buf;
	}

- srcnaks November 28, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

vector<uint8_t> toByteBuffer(string s){
    vector<uint8_t> sol;
    for(int i = 0 ; i < s.size(); i++){
        uint8_t c = toupper(s[i]);
        if(c >= '0' and c <= '9'){
            sol.push_back(c - '0');
        }
        else if(c >= 'A' and c <= 'F'){
            sol.push_back(c - 'A' + 10);
        }
    }
    return sol;
}

- swapnilsj August 07, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

# private byte[] String_To_Bytes(string strInput)
# {
# // i variable used to hold position in string
# int i = 0;
# // x variable used to hold byte array element position
# int x = 0;
# // allocate byte array based on half of string length
# byte[] bytes = new byte[(strInput.Length) / 2];
# // loop through the string - 2 bytes at a time converting
# // it to decimal equivalent and store in byte array
#
while (strInput.Length > i + 1)
# {
# long lngDecimal = Convert.ToInt32(strInput.Substring(i, 2), 16);
# bytes[x] = Convert.ToByte(lngDecimal);
# i = i + 2;
# ++x;
# }
# // return the finished byte array of decimal values
# return bytes;
# }

- Musheka January 14, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 votes

lol..moron..he wanted the ToByte method..even a monkey can write what you did

- Anonymous May 15, 2010 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

LOL

- Anonymous November 25, 2011 | Flag
Comment hidden because of low score. Click to expand.
-2
of 2 vote

What is a good hash table?

- AM January 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

8) What is a good hash table?

- AM January 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 votes

Dear mother fucker AM ....

please write the answers clearly...
If you dont know any thing, please leave it no need of ur comments,

plzz dont write..how u fucked ur mother.

- Mr. cool February 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Did you say you are Mr. Cool?

- Mahesh April 14, 2010 | Flag
Comment hidden because of low score. Click to expand.
-2
of 2 vote

may I ask if it is phone or onsite interview? What position? Were some of questions related to your own background?

Seems to be quite different than other google interviews: not focused on algorithm/coding problems.

- geniusxsy January 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

it was telephonic interview. Yes I have a network background, so few of them were on those topics

- AM January 13, 2010 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More