[algogeeks] Regarding approach to solve

2014-09-28 Thread Ravi Ranjan
Yesterday I appeared for ACM USA Regionals, there I got the problem https://icpc-qual-14.kattis.com/problems/flipfive Can anyone help how to solve this kind of problem. Any links for similar problems ? -- You received this message because you are subscribed to the Google Groups Algorithm

[algogeeks] Adobe question

2013-06-20 Thread Ravi Ranjan
There is a Blank Paper Sheet, Given a list of characters and their sizes, for ex. A, P, O, N, Q with different font sizes and designs. Now we need to cut characters from given sheet of paper of all sizes atleast once. And also try to maxmize number of characters cut. Along with this, when you

Re: [algogeeks] Amazon interview Questions

2013-06-05 Thread Ravi Ranjan
Can u clear Round3 --- Qstn-3. the language is not cleared On Wed, Jun 5, 2013 at 1:52 PM, sourabh jain wsour...@gmail.com wrote: Round 1: 1.Design a Data Structure supporting 3 queries a)push b)pop c) find minimum Ans : Do it using Two Stacks . in first stack use it as normal stack.

Re: [algogeeks] Minimum number of coins to SUM to S

2013-05-29 Thread Ravi Ranjan
@DAve any proper reason or link to proof that at least twice can be solved using greedy but others are not?? On Tue, May 28, 2013 at 12:41 PM, Shashwat Kumar shashwatkmr@gmail.comwrote: This seems to be Coin Change problem. Just google that. On Tue, May 28, 2013 at 12:42 AM, Adolfo

[algogeeks] sortin 2D array

2013-01-08 Thread Ravi Ranjan
You have a two dimensional array of size m*n. The elements in the rows are sorted and every row has unique elements means( in a row no two elements are same) but the elements can repeat across the rows. For example: you have following 2-D array: 2 5 7 9 14 16 3 6 8 10 15 21 4 7 9 15 22 35 7 8 9 22

[algogeeks] ACM World Finals

2012-11-29 Thread Ravi Ranjan
qstn src--- http://cm.baylor.edu/ICPCWiki/attach/Problem%20Resources/2008WorldFinalsProblemSet.pdf the first problem Problem A Air Conditioning Machinery I did it through backtracking but is there in other n good approach to solve it. can DP be used?? Any Specific algorithm exists for

Re: [algogeeks] Re: Range Checking Efficiently C++

2012-10-28 Thread Ravi Ranjan
biku u also dere in this group... coool bro :) -- 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] microsoft_c++_qstn

2012-09-25 Thread Ravi Ranjan
#includeiostream.h int rec(int i) { static int d=1; if(i=5) return i; d=d+i; i=i+i; rec(d); } int main() { coutrec(1); return 0; } various compilers give diffrent result... why so??? n how d value is calculated by differnt compilers.. whhat is d correct output n which compiler to trust?? -- You

Re: [algogeeks] microsoft_c++_qstn

2012-09-25 Thread Ravi Ranjan
@atul so 8 will be the answer or is it not fixed??? -- 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

Re: [algogeeks] need help??

2012-09-22 Thread Ravi Ranjan
khalid mugal - A Programmers guide to Java certification -- 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

Re: [algogeeks] help to give DP solution

2012-09-15 Thread Ravi Ranjan
@atul agreed with u dat it can be solved through hungarian method.. but what about the condition a[i][i] entry is invalid if all elements lie on diagonal n d sum is also maximum den a[i][i] condition will be violated but Hungarian method still works -- You received this message because you are

Re: [algogeeks] REARRANGE

2012-09-10 Thread Ravi Ranjan
use quad tree -- 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+unsubscr...@googlegroups.com. For more options, visit this

Re: [algogeeks] max sum b/w 2 leaf nodes in a binary tree

2012-08-27 Thread Ravi Maggon
. -- *Regards *Ravi Maggon Member Technical - IT/Front Office D.E. Shaw Co. -- 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

Re: [algogeeks] Suggest algo...

2012-08-27 Thread Ravi Maggon
to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Regards *Ravi Maggon

Re: [algogeeks] Duplicate file in all computers in a network

2012-08-27 Thread Ravi Maggon
, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Regards *Ravi Maggon Member Technical - IT/Front Office D.E. Shaw Co. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] amazon Interview

2012-08-26 Thread Ravi Ranjan
You are given many slabs each with a length and a breadth. A slab i can be put on slab j if both dimensions of i are less than that of j. In this similar manner, you can keep on putting slabs on each other. Find the maximum stack possible which you can create out of the given slabs and for

Re: [algogeeks] Indus Valley Partners Paper Pattern

2012-08-25 Thread Ravi Maggon
*Ravi Maggon Member Technical - IT/Front Office D.E. Shaw Co. -- 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+unsubscr

Re: [algogeeks] Re: [Off topic]Privacy Policies in gmail

2012-08-22 Thread Ravi Ranjan
@all they might use all the info n someone else can publish his book on algorithm problems -- 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

Re: [algogeeks] MS Question: Segregrate positive and negative nos in array without changing order

2012-06-29 Thread Ravi Ranjan
one can modify dutch national flag algo for two colors(2 types positive n negative) -- 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] Basics of Cloud Computing

2012-06-09 Thread Ravi
for the beginners. It covers the various aspects of cloud computing and virtualization and services provided by all the major cloud providers in all the service models like IaaS, PaaS SaaS. You can find the the book here: http://www.amazon.com/dp/B0083TC47C Be Well, Ravi Shankar -- You received this message

[algogeeks] Facebook qsrtn

2012-05-01 Thread Ravi Ranjan
We have been given a deck of cards and each combination has a rating eg 3 As is higher than 2 As 1K etc. Write an algorithm such that the probability of picking 3 or 5 or 7 cards from the deck results in high rating plzzz tell how to approach these kind of problems??? -- You received this

Re: [algogeeks] Re: Algorithm page

2012-04-13 Thread Ravi Ranjan
@wladimir can u upsate the site in English??? -- 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

Re: [algogeeks] Slang Decoder chatBot... give a try...

2012-03-25 Thread Ravi Mohan
Nice work yaari have added it . Can you explain how do u make bolt. On Sun, Mar 25, 2012 at 11:29 AM, amrit harry dabbcomput...@gmail.comwrote: 'slangdeco...@gmail.com' -- - Thanks and Regards Ravi Mohan Technical Field Officer(Information

Re: [algogeeks] Google written test

2012-03-17 Thread Ravi Ranjan
@ if for a given number more than 1 answer exist then whats the answer??? -- 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

Re: [algogeeks] Re: thanx to all

2012-03-01 Thread Ravi Ranjan
@atul two nodes were given in the qstn... i did 1) calculate the level of one node through level order traversal similarly for other 2) then find the Least Common Anscestor 3) then dist(LCS - node1) + dist(LCS - node2) but i think this was not optimized bcse he was not very much satisfied

Re: [algogeeks] Re: thanx to all

2012-03-01 Thread Ravi Ranjan
@atul thanx dude.. yeah it is the soln... i think in interview i quite tired thats why unable to think in this simle way... again thanx a lot atul and all other GEEKS :) :) -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks] thanx to all

2012-02-29 Thread Ravi Ranjan
@all 3 round liye 1.5 hours each only data structure n algorithm n 2 qstns from OS but ultimately the code for synchronization(a mix situation of linked-list n semaphore) they asked linked list tree programs their variations(all to implement in C) i stuck at this place when they tell me to

[algogeeks] thanx to all

2012-02-28 Thread Ravi Ranjan
hey Geeks thanx a lot .. for the valuable information in the discussions i got selected in Yatra.com (R n D profile) thanx a lot for the algorithms explained by to guys THANX A LOT :D:D:D:D -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] Re: google question

2012-02-26 Thread Ravi Ranjan
@all same doubt qstn appears to be of binary tree DS but the diagram given in between qstn is not like Binary tree so sharing is there so how sharing is done plz explain?? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this

[algogeeks] google question

2012-02-25 Thread Ravi Ranjan
|_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| Each cup has capacity C and once a cup gets full, it drops half extra amount to left child and half extra amount to right child for Eg : let' first cups get 2C amount of liquid then extra amount C(2C-C) will be divided equally to left

[algogeeks] output C

2012-02-25 Thread Ravi Ranjan
#include stdio.h #include stdlib.h #define SIZEOF(arr) (sizeof(arr)/sizeof(arr[0])) #define PrintInt(expr) printf(%s:%d\n,#expr,(expr)) int main(int argc, char *argv[]) { /* The powers of 10 */ int pot[] = { 0001, 0010, 0100, 1000 };

Re: [algogeeks] C concept on memory layout

2012-02-07 Thread Ravi Ranjan
@all thanx for the explanation.. -- 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] hint

2012-02-06 Thread Ravi Ranjan
guys.. can u please refer me the best book for graph theory for algorithm purpose thanx ravi -- 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] C concept on memory layout

2012-02-06 Thread Ravi Ranjan
ravi -- 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+unsubscr...@googlegroups.com. For more options, visit this group

[algogeeks] nvidia qstn

2012-02-03 Thread Ravi Ranjan
Implement a MS key suggest like tool where on typing the first letters will give a list of words starting with the typed text. The corpus will be provided as a text file. Max number of characters in a word is 10. - Say you type 'i', it should provide 'include | if ' as the words in the dropdown

Re: [algogeeks] Re: Reverse Engg.

2012-02-01 Thread Ravi Ranjan
@atul true... :P:P:P:P and definately linux will develop within a year after release of windows95...:P On Jan 30, 11:20 am, Karthikeyan V.B kartmu...@gmail.com wrote: hi, can anyone tell me how i can convert exe back to c source? -- You received this message because you

Re: [algogeeks] Reverse Engg.

2012-01-30 Thread Ravi Ranjan
its not possible to convert exe back to C. u can get the assembly code of that only. for that u can use the tool IDA or olly debugger -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] spell check

2012-01-28 Thread Ravi Ranjan
i wanna write the spell check function like when we put some word with spelling mistake then it tell the most suitable word matching to it( green error line of spelling in MS-Word) i used levenshtein distance algorithm to find the subset from the dictionary but it is a linear search... and

Re: [algogeeks] Re: algo qstn

2012-01-18 Thread Ravi Ranjan
i m searching for the approach to solve. can u please tell the approach instead of answer -- 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,

Re: [algogeeks] Re: rectangle of max sum MS Q

2012-01-16 Thread Ravi Ranjan
@all it was said subset rectangle with max sum. since every square is also a rectangle for m*n take the square matrix of n*n (nm) only m -n +1 options will have to comareuse backtracking to compare the next column's sum to present it will take O(n) time using backtracking.. please

[algogeeks] algo qstn

2012-01-16 Thread Ravi Ranjan
An ant moves on a regular grid of squares that are coloured either black or white. The ant is always oriented in one of the cardinal directions (left, right, up or down) and moves from square to adjacent square according to the following rules: - if it is on a black square, it flips the color of

[algogeeks]

2012-01-11 Thread Ravi Ranjan
*Problem 1: Number of Tilings, (K Narayan Kumar, CMI)* You have to tile a room that is two units wide and *N* units long. You have with you two types of tiles: a rectangle that is one unit wide and two units long, and an L-shaped tile covering three square units. Here are pictures of the two

Re: [algogeeks] Re: convert into palindrome

2012-01-02 Thread Karthikeyan Ravi
Hey, There is a basic Dp solution. have two indexes. one at 0 and another at n-1(n is the length of the string) let it be i and j if(string[i]==string[j]) then do solve(i+1,j-1) else min(solve(i+1,j),solve(i,j-1); -- Regards, R.KARTHIKEYAN BE CSE 3rd year, Anna university,Chennai-600025.

Re: [algogeeks] Re: convert into palindrome

2012-01-02 Thread Karthikeyan Ravi
@Luccifer: Yes. It is the same!! Regards, R.KARTHIKEYAN BE CSE 3rd year, Anna university,Chennai-600025. -- 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

Re: [algogeeks] Re: Divide the Square into 2 parts

2011-12-31 Thread Ravi Ranjan
@ dave what about the problem if it dsnt satisfy the 2 conditions(odd/even) -- 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

Re: [algogeeks] ACM-ICPC Kanpur 2011 LCM Extreme

2011-12-18 Thread Ravi Ranjan
use eucleid algorithm to calculate HCF n den use function a * b = HCF*LCM 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

Re: [algogeeks] Interesting Liked List problem..Suggest Algo

2011-12-15 Thread Ravi Ranjan
traversing the entire linklist one can determine the merge point -- Ravi Ranjan Sinha final yr computer science NIT Jalandhar 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

Re: [algogeeks] Interesting Liked List problem..Suggest Algo

2011-12-15 Thread Ravi Ranjan
i got my mistake.. den how to fulfill all the conditions?? -- 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

Re: [algogeeks] virtual destructor problem

2011-12-07 Thread Ravi Ranjan
here conversion from derived to base class takes place so finally only base class get called output will be baseClass Des called -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] virtual destructor problem

2011-12-07 Thread Ravi Ranjan
ya i tried it on dev c++ dats why i m telling.. -- 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

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread Ravi Shankar
Lets' say, 0i=3(n) 0j=5(m) for(k=2 to n+m) { find_set_of(i,j) s.t. i+j =k print all the matrix elements for (i,j); } Regards, Ravi Shankar, R D, Cloud Life Cycle Management HCL Comnet, Noida, Ph:995369 On Mon, Oct 3, 2011 at 8:32 PM, Hatta tmd...@gmail.com wrote: Zig Zag gets

Re: [algogeeks] Re: MICROSOFT WRITTEN

2011-10-02 Thread ravi maggon
=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] Re: adobe question help

2011-10-02 Thread ravi ojha
in the first loop the value of k shuld vary from 0 to j-i. On Oct 1, 7:26 am, rahul sharma rahul23111...@gmail.com wrote: You are given two 32-bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e.g., M becomes a substring of N

[algogeeks] indus valley partner doubt

2011-09-28 Thread ravi maggon
Hey can anyone tell me about the procedure and questions of Indus Valley Partners?? -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed

Re: [algogeeks] C OUTPUT

2011-09-21 Thread ravi maggon
to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure

Re: [algogeeks] INFORMATICAA...........PLZ HELP !!

2011-09-21 Thread ravi maggon
/algogeeks?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] plz help

2011-09-21 Thread ravi maggon
. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] plz help

2011-09-21 Thread ravi maggon
ohh sorry, I thought it was i=9. Yes only 9 times Hello will be printed. On Thu, Sep 22, 2011 at 12:52 AM, Rashmi Jain rashmi.jain...@gmail.comwrote: @ravi can u plz explain how 10 processes are created..? shouldn't it be 9..?? On Thu, Sep 22, 2011 at 12:23 AM, ravi maggon maggonr

Re: [algogeeks] plz help

2011-09-21 Thread ravi maggon
This is the output I am getting - result: Success time: 0smemory: 1720 kB returned value: 0 input: no output: HelloHelloHelloHelloHelloHelloHelloHelloHelloHello On Thu, Sep 22, 2011 at 1:40 AM, teja bala pawanjalsa.t...@gmail.comwrote: @ ravi but compile

Re: [algogeeks] Re: plz help

2011-09-21 Thread ravi maggon
..?? On Thu, Sep 22, 2011 at 1:52 AM, ravi maggon maggonr...@gmail.com wrote: This is the output I am getting - result: Success time: 0smemory: 1720 kB returned value: 0 input: no output

[algogeeks] juniper networks

2011-09-14 Thread ravi maggon
Did juniper visit any campus for training or job recruitment? -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups

[algogeeks] find the error

2011-09-14 Thread ravi maggon
Something like this was asked in written test of Tally. We had to find the cause why this program crased during run time. File *f; int count=0; if(f=fopen(file.txt,r)) { while(f.get()!=EOF) { count++; } } -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University

Re: [algogeeks] find the error

2011-09-14 Thread ravi maggon
sorry fclose was also written in the last line. I missed it while asking. On Wed, Sep 14, 2011 at 6:10 PM, abhinav gupta guptaabhinav...@gmail.comwrote: file not closed. On Wed, Sep 14, 2011 at 5:56 PM, ravi maggon maggonr...@gmail.com wrote: Something like this was asked in written test

Re: [algogeeks] Re: informatica pattern and question of interview

2011-09-14 Thread ravi maggon
://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Re: informatica interview question

2011-09-13 Thread ravi maggon
...@gmail.comwrote: ravi can u please tell usa bout the written test what type of question asked etc? -- 'Life can be filled with disappointment but being happy is a choice' Manoj Bagari National Institute Technology Kernataka -- You received this message because you are subscribed

Re: [algogeeks] Re: alternative of stack

2011-09-11 Thread ravi maggon
?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] what is the output????

2011-09-11 Thread ravi maggon
://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com *Failure is the opportunity to begin again more intelligently* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] pgm2

2011-09-11 Thread ravi maggon
to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University

Re: [algogeeks] pgm2

2011-09-11 Thread ravi maggon
if you have to find only the repeated element, you can use the below mentioned code. for (int i = 1; i N; i++) { array[i] = array[i] ^ array[i-1] ^ i; } printf(Answer : %d\n, array[N-1]); Thinking for the missing no. On Sun, Sep 11, 2011 at 4:06 PM, ravi maggon maggonr...@gmail.com wrote

Re: [algogeeks] You have given a number N. You need to find out total number of set bits from 0 to N.

2011-09-11 Thread ravi maggon
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com Failure is the opportunity to begin again more

Re: [algogeeks] You have given a number N. You need to find out total number of set bits from 0 to N.

2011-09-11 Thread ravi maggon
int bitcount (unsigned int n) { int count = 0 ; while (n) { count++ ; n = n (n - 1) ; } return count ; } On Sun, Sep 11, 2011 at 5:08 PM, ravi maggon maggonr...@gmail.com wrote: I found this algo on http://stackoverflow.com/questions/109023/best-algorithm-to-count

[algogeeks] logical and physical address

2011-09-10 Thread ravi maggon
we have page table having 64 entries of 10 bits each. and page size is of 512 bytes. tell the no of bits required for physical and logical address. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google Groups

[algogeeks] alternative of stack

2011-09-10 Thread ravi maggon
if you don't know the size of stack and it grows during run time then which data structure will you prefer for stack and why? 1. BST 2. Linked list 3. Arrays 4. Hash Tables Asked in written test of informatica -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received

[algogeeks] informatica interview question

2011-09-09 Thread ravi maggon
1. can recursive func be converted to iterative func always Yes/No is vice versa True/False if False give the example. 2. can recursion be done without stack when converted to iterative sort of thing or we need to implement our own stack? -- Regards Ravi Maggon Final Year, B.E. CSE Thapar

[algogeeks] virtual table count

2011-09-09 Thread ravi maggon
let their be two classes A and B having a virtual function. class C derives both class A and B. How many virtual table does class C have? -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google Groups Algorithm

[algogeeks] worst case complexity

2011-09-09 Thread ravi maggon
What is the complexity of this code for(i=0;in;i++) { for(j=0;ji*i;j++) { for(k=0;kj;k++) } } 1. O(n^3) 2. O(n^4) 3. O(n^5) 4. O(n^6) -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google Groups

[algogeeks] tree traversal

2011-09-09 Thread ravi maggon
give some traversal other then pre,in and post order to print all elements of tree? Asked in informatica interview. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] semaphores

2011-09-09 Thread ravi maggon
tell the out of the below code related to mutex and semaphore process1 wait(mutex); print 0 print 1 signal(mutex); process2 wait(mutex) print 1 print 0 signal(mutex) -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed

Re: [algogeeks] tree traversal

2011-09-09 Thread ravi maggon
can u elaborate its algo On Sat, Sep 10, 2011 at 10:58 AM, Shravan Kumar shrava...@gmail.com wrote: zigzag, level by level ? On Sat, Sep 10, 2011 at 10:48 AM, ravi maggon maggonr...@gmail.comwrote: give some traversal other then pre,in and post order to print all elements of tree? Asked

Re: [algogeeks] worst case complexity

2011-09-09 Thread ravi maggon
from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google

Re: [algogeeks] Re: informatica pattern and question of interview

2011-09-09 Thread ravi maggon
group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon Final Year, B.E. CSE

Re: [algogeeks] Barclays Placement Procedure

2011-09-07 Thread ravi maggon
@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you

Re: [algogeeks] very urgent .. help

2011-09-04 Thread ravi maggon
group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon Final Year, B.E. CSE

[algogeeks] which is better Subquery or Join

2011-09-01 Thread ravi maggon
which is better Subquery or Join in sql and why? -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- 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

Re: [algogeeks] which is better Subquery or Join

2011-09-01 Thread ravi maggon
for what reason? On Thu, Sep 1, 2011 at 5:44 PM, sukran dhawan sukrandha...@gmail.comwrote: subquery On Thu, Sep 1, 2011 at 5:25 PM, ravi maggon maggonr...@gmail.com wrote: which is better Subquery or Join in sql and why? -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University

[algogeeks] american express query??

2011-08-31 Thread ravi maggon
can any one tell me about the pattern of american express and the topics it focus upon in written test and interview. reply asap. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] Re: Static variable

2011-08-31 Thread ravi maggon
. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- 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+unsubscr

[algogeeks] memory allocation

2011-08-31 Thread ravi maggon
What memory is allocated to a function, to a variable, to a object created at run time using new or malloc and to a function containing a object with run time memory allocation. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you

Re: [algogeeks] Re: Static variable

2011-08-31 Thread ravi maggon
but why the output coming in both of these codes is different? On Wed, Aug 31, 2011 at 8:10 PM, rahul sharma rahul23111...@gmail.comwrote: these two are same On Aug 31, 7:36 pm, ravi maggon maggonr...@gmail.com wrote: I check out the code: #includestdio.h main() { static int i

[algogeeks] fork()

2011-08-31 Thread ravi maggon
Can anyone tell me about this code #include stdio.h #include unistd.h int main() { fork(); fork() fork() || fork(); fork(); printf(forked\n); return 0; } The no. of processes spawned and its logic. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You

Re: [algogeeks] Re: Winshuttle Interview Questions

2011-08-30 Thread ravi maggon
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Regards Ravi Maggon -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] Re: Winshuttle Interview Questions

2011-08-30 Thread ravi maggon
One more ques asked was: output of printf(%x,-l4); where l can be any positive number. On Tue, Aug 30, 2011 at 1:11 PM, ravi maggon maggonr...@gmail.com wrote: @birju: I am elaborating 2nd ques below: let us suppose their is 2-d array say A[100][2]; here 100 signifies that their are 100

[algogeeks] The Smart Cube Query

2011-08-30 Thread ravi maggon
Can anyone give me reviews about The Smart Cube company and its placement procedure. What kind of work it has and is it better then Core IT companies for CSE student reply asap. -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you

[algogeeks] Class Doubt

2011-08-28 Thread ravi maggon
; class emp { public: char *n; int age; }; int main () { emp e={xyz,21}; emp e2; e2=e; printf(%d,e2.age); system(pause); } -- Regards Ravi Maggon -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

[algogeeks] c doubt

2011-08-28 Thread ravi maggon
class{ int bit1:1; } please explain the meaning of line 2. -- Regards Ravi Maggon -- 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

Re: [algogeeks] Re: Class Doubt

2011-08-28 Thread ravi maggon
. On Aug 28, 3:29 pm, ravi maggon maggonr...@gmail.com wrote: Hi Can you explain the below mentioned code. As far as I know we need to overload = operator in order to equate object of a class and below code should give error. But it is running perfectly on gcc compiler. Please correct me

[algogeeks] SQL Question

2011-08-28 Thread ravi maggon
SELECT DISTINCT(NAME) FROM TABLE1; write a query to produce same result as that of above one but without using DISTINCT. Is this thing possible? -- Regards Ravi Maggon -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group

Re: [algogeeks] Ittiam systems

2011-08-24 Thread ravi kumar
First step would be a written test.In the test you will have to answer two papers, one is a simple aptitude paper(no english) and the other one is one of your like from CS,EE and DSP. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to

Re: [algogeeks] Re: Adobe Interview Puzzles Urgent !!

2011-08-20 Thread Ravi Shankar
oops sorry...it will be (root3-1)R/(root3+1) ...the above answer will be for 2d.. Ravi Shankar, R D,HCL Comnet, Noida, Ph:995369 On Sat, Aug 20, 2011 at 4:04 PM, Ravi Shankar ravi.iiit...@gmail.comwrote: I guess the correct answer is (root2-1)R/(root2+1) ? Ravi Shankar, R D, HCL

Re: [algogeeks] Re: Algorithms For Interviews

2011-08-16 Thread ravi kumar
heyy nitin.. it says da file izz locked .. can u mail me da buk.. thanx in advance -- 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

  1   2   >