Computer Science

Please contact me for my incorrect algorithms or codes

Sunday, January 24, 2016

Pair socks from pile

›
Question: How to find pair socks from a pile efficiently? Resource:  http://stackoverflow.com/questions/14415881/pair-socks-from-a-pile...

(Algorithm) Find n'th Fibonacci nuber with complexity O(log(n)) and in O(1) space

›
Question: We have given number n. And it is asked that we have to find n'th Fibonacci number. However, we have two conditions. 1) Com...
Tuesday, January 19, 2016

(Algorithm) Turn string into integer

›
Question: Turn given number(integer) as string into integer. Ex. "one million two hundreds thousands fifty seven" => 120005...
Sunday, January 17, 2016

(Algorithm) Find and arrange combination of teams as pairs

›
Question: We have 4 teams and 3 gamedays. Write the algorithm that each team plays another team every gameday, and by the end of 3 game day...

(Algorithm) How to count frequencies of all elements of array

›
Question:  How can we count frequencies of all elements of array? Resource:  http://www.careercup.com/page?pid=algorithm-interview-questi...
Thursday, January 14, 2016

(Algorithm) How many Fibonacci numbers exist less than a given number?

›
Question:  How many Fibonacci numbers exist less than a given number 'n'? Ex. n = 4 {0, 1, 1, 2, 3} 5 numbers Resource: ...
Wednesday, January 13, 2016

(ENG) Algorithm to convert integers each other with minimum number of operations

›
Question:  Convert integer m to integer n with minimum number of operations(m < n). Operations allowed are  (-1)  and  (*2)  Eg. 4 and 6...
›
Home
View web version

About Me

Unknown
View my complete profile
Powered by Blogger.