Implement clearbit(int n, int p) function, p is the position of the bit to be cleared. Example : n is 13, p is 0. Binary representation of n : 1101. You need to clear the pth postion, means 0th position bit needs to be cleared.
Software Interview Questions
748,248 software interview questions shared by candidates
you have array with n elements. How would you do circular shift of k positions? Time and space complexity?
Write a function to obtain a string with the binary representation of an integer
Gegeven reeks van niet-negatieve hele getallen, terugkerend eerste unieke nummer in deze reeks (dat gebeurt slechts één keer). Voorbeeld: [1,1,2,3,56,4,7,4,3,2,56,1000] // Verwacht resultaat: 7
Call a function F in a loop. F returns a string of 140 chars. Write to the output 1 when F returns a string with the same letters (basically a permutation) of a string previously returned. (the question was not this well formed)
If you had to change permissions to read/write all recursively in the unix terminal, how would you do it?
Waar mogen we je 's nachts voor wakker maken?
Given an array of length N containing numbers bounded between 1 and N with exactly one duplicate, determine what the duplicate number is in O(n) time without using more than constant memory (no making new arrays of N length).
Are two words palindrome of each other?
1. Calculate the factorial of an array of integers. 2. How to improve the factorial algorithm?
Viewing 611 - 620 interview questions