Write a function that takes in an array and repeats an integer that appears the most.
Software Development Interview Questions
36,967 software development interview questions shared by candidates
Given a string of Rs and Gs, design an algorithm to produce a string with Rs in the front and Gs after that. The number of flips from Rs to Gs or otherwise should be minimum. The number of Rs and Gs in the end need not be same as that in the beginning, however the length of the entire string should be the same.
General Questions about leadership principle, 3 coding questions and 1 system design question
First question was to find all numbers that occurred an odd-number of times in an array and second question was implement a stack that could return the largest number in the stack at anytime.
Check if tic-tac-toe has a winner
Write a program to print a right angle triangle star pattern. * * * * * *
Write a program to determine if a character array is an anagram of another character array.
I was shown three programs. Each solving the same problem and was asked to analyze them and suggest which one is the best and why.
1. Tell me about your experience when you make decision without the approval of your mentor. 2. Park lot design.
Given an array of integers, all but one of which appears an even number of times, find the one integer which appears an odd number of times. Upon completion, asked to improve the algorithm in terms of both time and space, eventually asked to do it in O(n) time and constant space.
Viewing 141 - 150 interview questions