What is the most efficient way to store 1 million phone numbers memory-wise?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More AI Algorithms Interview Questions

Consider the following algorithm: for ( i = 2 ; i <= n ; i++) { for ( j = 0 ; j <= n) { cout << i << j ; j = j + floor(n/4) ; } } (a) What is the output when n = 4 (b) What is the time complexity T(n). You may assume that n is divisible 4.

0 Answers  


Which algorithm inverts a complete resolution strategy?

0 Answers  


What are the complexities of sorting algorithms and how can this complexity be calculated?

0 Answers   Tech Mahindra,


Given a sorted array of n integers that has been rotated i(unknown) number of times, give a (log n) algorithm that finds an element in the array.

0 Answers   Expedia,


There are numbers from 1 to n, which are inverted such that it results in numbers from n to 1. If only two consecutive numbers are stampled at a time and are inverted, how many moves are required?

1 Answers   IBM, TCS,






What are the disadvantages of depth-first search algorithm?

0 Answers  


When an algorithm is considered completed?

0 Answers  


Tell us how will you know which machine learning algorithm to choose for your classification problem?

0 Answers  


Which search algorithm will use a limited amount of memory in an online search?

0 Answers  


Consider the following algorithm, where the array A is indexed 1 through n: int add_them ( int n , int A[ ] ) { index i , j , k ; j = 0 ; for ( i = 1 ; i <= n ; i++) j = j + A[i] ; k = 1 ; for ( i = 1 ; i <= n ; i++) k = k + k ; return j + k ; } (a) If n = 5 and the array A contains 2, 5, 3, 7, and 8, what is returned? (b) What is the time complexity T(n) of the algorithm?

0 Answers  


Sorting algorithms and time complexity of various algorithms.

0 Answers   InterGraph,


Which algorithm in ‘unification and lifting’ takes two sentences and returns a unifier?

0 Answers  


Categories