Bazaarvoice Interview Question for Software Engineer / Developers






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

1) sort(s1) == sort(s2) => this is the non per-formant solution.
2) Interviewer did not like how it is solved in the career cup coding interview guide. i.e find unique characters in each string and then count total number of unique characters in each string to be equal.
3) Solve this using a Hashtable data structure. loop over the first string add characters and their frequency in the hashtable. loop over the second string look up hastable and decrement the frequency of characters found in the second string. you have an anagram if frequency of all the characters in hastable is zero. Pretty lame compared to how its done in career cup guide, no need to force the data structure but it is what it is.... an interview.

- Anonymous August 17, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Why don't you post the proper question? What is n? m? Anagram of what? Ridiculous.

- Anonymous August 17, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Heres the proper question:

Write a method to decide if two strings are anagrams or not?

Here's a definition of anagram from wikipedia:
An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once; e.g., orchestra = carthorse, A decimal point = I'm a dot in place. Someone who creates anagrams is called an anagrammatist.[1] The original word or phrase is known as the subject of the anagram.

if you don't understand 0(n+m) study big O notation before you appear for a tech interview.

hope this is no longer ridiculous.

cheers.

- Anonymous August 17, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Posting an incomplete question and being condescending at the same time. F***ing hilarious.

btw, there is a difference between 0 and O, if you didn't notice, you repeated that mistake.

I do admit that the question is clearer now.

- Anonymous August 17, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

stop being rude and see if you can solve the problem... smart ass....

- Anonymous August 18, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Already solved in this very thread itself, idiot.

- Anonymous August 18, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Hahaha... so this is probably the 100th set of insults I've seen on this site. What do you guys do, vent all your condescending, conceited crap out here so that you don't accidentally do it in your interviews? Bloody hell - forget the technical stuff and work on your personalities.

- Anonymous August 19, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Shut up you friggin moron.

- Anonymous August 19, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Wow. This site is like 4chan.

- Anonymous September 24, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

int[] intArray = new int[128];
        String str1 = "abcdfer";
        String str2 = "abcdfef";

        for (int i = 0; i < str1.length(); i++) {
            System.out.println((int) str1.charAt(i));
            intArray[(int) str1.charAt(i)]++;
            intArray[(int) str2.charAt(i)]--;
        }
        boolean isAnagram = true;
        for (int i = 0; i < 128; i++) {
            if (intArray[i] != 0) {
                isAnagram = false;
            }
        }
        if (isAnagram) {
            System.out.println("Is Anagram");
        } else {
            System.out.println("Not Anagram");
        }

- anagram December 31, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I am an IT Recruiter looking for some Software Engineers in the Austin area contact me directly--client has asked that I recruit specifically for Bazaarvoice candidates suzie.jimenez@thehtgroup.com 512.345.9300

- suziejimenez3 September 25, 2014 | Flag Reply


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