Given a sorted array, find how many times a specified element appears.
Software Developers Interview Questions
96,161 software developers interview questions shared by candidates
given a sequence of strings, like A, B, C, D, A, in which A = "abcde", B = "hello world", C = "NBA", D = "CNN", A = "abcde" to remove duplicates of strings. The output is like A, B, C, D.
You're given two arrays of the same size filled with positive integers, and an integer 0 <= N <= 255. You need to determine whether N can be written as the sum of some number from the first array and some number from the second array.
Three Programs 1. Strings 2. Array subarray concepts 3. Operators
There is a panel containing 3 light switches in front of you. Each switch controls a light in a room somewhere. Doesn't really matter where. You can play with the switches as much as you like, but you're only allowed to enter the room once. How do you tell which switch controls which light? Again, you can only enter the room once, so you cannot play with the switches after you enter the room, but you can play with them as much as you want before you enter the room. One entry is all it takes to determine which switch controls which light.
write a function that returns the first unique element in an array
How do you reverse a number without storing it in an array Ex: 412 should be printed as 214
Write a java program that can convert a string of numbers (e.g. "5387") into an integer (5387).
How to find out whether a number is odd or even.
1,2,3,5,7.... what will be the next number in series
Viewing 111 - 120 interview questions