[algogeeks] Can't Be able to run Program in Visual Studio (2012)

2012-09-14 Thread VIHARRI
//For WindowsDataTypes like DWORD, BYTE etc., #include wdm.h //RtlBitMap #include basetsd.h #include stdio.h #include conio.h Any help would be appreciated. Thanking You, Viharri PLV. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion

[algogeeks] BitWise Operations - For finding next multiple

2012-09-13 Thread VIHARRI
hey for finding next multiple of a number x using bitwise : ( n + x -1 ) ~(x-1) but not working for all numbers Could some one please explain me. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

Re: [algogeeks] BitWise Operations - For finding next multiple

2012-09-13 Thread VIHARRI P L V
Let me give an example. For 17 next multiple of number 5 is 20. For 20 next multiple of number 5 is 25. And give solution for this proeblem also: For 17 next nearest multiple of number 5 is 20. For 20 next nearest multiple of number 5 is 20. *VIHARRI P L

[algogeeks] LINKED LIST QUESTION

2012-06-04 Thread VIHARRI
Hi we need find a node in linked list in O(logn). You can change the list as u like. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/vSoEXlaRTEIJ. To post

[algogeeks] Required O(n) Algorithm

2012-04-18 Thread VIHARRI
Can anybody give an O(n) algorithm for the following problem. Suppose if we have an array, I would like to construct an array with the elements which specify their corresponding position in the sorted array. For example if the array is { 0.87, 0.04, 0.95, 0.12, 0.36 } then the sorted array

Re: Re: [algogeeks] Required O(n) Algorithm

2012-04-18 Thread viharri . plv
Yeah we cant use count sort, as we dont know the range of elements here... -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to

[algogeeks] Thanks To aLgOgEeKs

2011-12-02 Thread VIHARRI
to this group. Thank You. P L V VIHARRI. Most of the Question asked were the same as that of previous years. 1. Adding two linked List of numbers. 2. Finding 2nd maximum of a binary tree. 3. Finding median of two sorted arrays. 4. Printing last K lines of a large file. 5. Given an array of numbers

[algogeeks] How to Solve This

2011-10-10 Thread VIHARRI
For every number that has 3 in its units place has one multiple which has all one's i.e. 111 is such multiple and 13 has a multiple 11. Write a program to find such multiple for any number that has 3 at its units place. -- You received this message because you are subscribed to the Google

[algogeeks] Adobe Written Test - 25 SEPT 2010

2011-09-28 Thread VIHARRI
1. Java uses stack for byte code in JVM - each instruction is of one byte, so how many such instructions are possible in an operating system. 2. Three processes p1, p2, p3, p4 - each have sizes 1GB, 1.2GB, 2GB, 1GB. And each processes is executed as a time sharing fashion. Will they be executed

[algogeeks] Amazon Interview Question

2011-09-23 Thread VIHARRI
You are given a string (consisting of 0's, 1's or 2's) where 0 represents a blue ball, 1 a red ball, and 2 a black ball. Using only swap operations (counting sort not allowed) rearrange the string such that all blue balls are together on one side, followed by all red balls, and then all black

[algogeeks] Re: Directi Questions - needed answers

2011-09-17 Thread VIHARRI
hey i'm also thinking n + logn -2.. but couldnt able to figure out how??? can you please explain the logic -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from

[algogeeks] Directi Questions - needed answers

2011-09-16 Thread VIHARRI
1. Minimum no.of comparisons required to select the 2nd max element in an array of N numbers. 2. What are the number of counting ties for four horses. ( example for two horses A and B there are three cases - A wins, B wins, A B ties ). 3. What are the minimum no.of tournaments needed to get the

[algogeeks] Re: Network Question

2011-09-03 Thread VIHARRI
I think the communication problem is just bcoz of longest prefix match... On Sep 3, 10:09 am, Vengadanathan fantastic.n...@gmail.com wrote: ya both the subnet can exisit in the same network , but problem is lack of communication between the two subnets ,because in routing table of the router

[algogeeks] Re: spoj problem chairs

2011-06-22 Thread VIHARRI
@saurabh : The answer suggested by you is for not all together... -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to