Re: [algogeeks] Finite state automata accpt string of length 6

2012-10-26 Thread rahul sharma
can u please elaborate...i am not able to understand the figure..plz explainit would be of great help On Sat, Oct 27, 2012 at 5:57 AM, payal gupta gpt.pa...@gmail.com wrote: should be 6C3 or 20 perhaps. On Sat, Oct 27, 2012 at 3:29 AM, rahul sharma rahul23111...@gmail.comwrote: Finite

Re: [algogeeks] Finite state automata accpt string of length 6

2012-10-26 Thread rahul sharma
should i take it how many ways are there to reach from start to the top right destination...x,y,z,a,b,c, are i/p statexyzabc one stringabc xyz is another...if m ryt then is dere any formulla to calute or we have to do it manuall On Sat, Oct 27, 2012 at 11:02 AM, rahul sharma

Re: [algogeeks] Adobe written test question

2012-10-25 Thread rahul sharma
compiler tried to link with the memory of int arr[10] it could nt find it , as u have declraed it to be integer type pointer , and in file 1 it could find integer pointer . On Wed, Oct 24, 2012 at 11:06 PM, rahul sharma rahul23111...@gmail.comwrote: int arr[10] // in fyl 1 now in fyl 2

Re: [algogeeks] Re: c code help!!!!

2012-10-25 Thread rahul sharma
: This is an algorithm group, please refrain from asking such language specific questions. On 21 October 2012 00:19, rahul sharma rahul23111...@gmail.com wrote: Actually i have taken form http://www.geeksforgeeks.org/archives/730 Please explain me o/p...as hex representated by 4 bitsthen how cum

Re: [algogeeks] Re: c code help!!!!

2012-10-25 Thread rahul sharma
]still how these are able to grouped?? On Fri, Oct 26, 2012 at 1:53 AM, rahul sharma rahul23111...@gmail.comwrote: As per o/p below: 00 00 80 3f 01 00 00 00 44 ff 28 00 01 00 00 00 first byte address is first row. second byte address is second row. third byte address third row and so

Re: [algogeeks] Re: c code help!!!!

2012-10-25 Thread rahul sharma
Please dont reply to thi post..wrng questionsry for that On Fri, Oct 26, 2012 at 2:31 AM, rahul sharma rahul23111...@gmail.comwrote: address of each byte is printed...each byte is 32 bit long...so 32/4=8 hex for each row...but how these are separated with %.2x tin group of 2's%.2x

[algogeeks] .Given the binary form of a number in a string. WAP to find 2's complement in that string itself.[ADOBE]

2012-10-25 Thread rahul sharma
Plz give a program for this...thnx -- 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

[algogeeks] Design a method to find the frequency of occurrences of any given word in a book.

2012-10-24 Thread rahul sharma
-- 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 at

[algogeeks] C o/p adobe

2012-10-24 Thread rahul sharma
Pleaase reply with sol as asp Fille 1: #includestdio.h extern int i; extern int j; void next(void); int main() { ++i; printf(%d,i); next(); getchar(); } int i=3; void next() { ++i; printf(%d,i); printf(%d,j); other(); } File 2: extern int i; void other() { ++i;

[algogeeks] second smallest in array

2012-10-24 Thread rahul sharma
for this shall we process all items and parallely calculate first and second max. or tournament methos i best for thsi.. if tournament method is best can anybody provide me with code with tournament method to find second smallest.. -- You received this message because you are subscribed to

Re: [algogeeks] C o/p adobe

2012-10-24 Thread rahul sharma
PM, rahul sharma rahul23111...@gmail.comwrote: Pleaase reply with sol as asp Fille 1: #includestdio.h extern int i; extern int j; void next(void); int main() { ++i; printf(%d,i); next(); getchar(); } int i=3; void next() { ++i; printf(%d,i); printf(%d,j

Re: [algogeeks] C o/p adobe

2012-10-24 Thread rahul sharma
can nyone provide me dummy code of how exactly to use extern in c.. in dev environment when i declare int i in one fyl and try use use with extern int i in another then it doesnt compile..plz coment On Wed, Oct 24, 2012 at 9:58 PM, rahul sharma rahul23111...@gmail.comwrote: Then why its

[algogeeks] Adobe written test question

2012-10-24 Thread rahul sharma
int arr[10] // in fyl 1 now in fyl 2 extern int *arr void foo() { arr[0]=10; } what kind of problem can be there?in what condition and y? plz comment -- 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: Does recusrion creates array or its by address??

2012-10-24 Thread rahul sharma
I think it is overwritng old values when child end..parent overwrite old value with new..m i ryt? On Thu, Oct 25, 2012 at 3:00 AM, rahul sharma rahul23111...@gmail.comwrote: I wana ask that when we pass array by recursion then as we know formal parameters are passed by value and array by base

[algogeeks] T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a subtree of T1.

2012-10-23 Thread rahul sharma
We could create a string representing the inorder and preorder traversals. If T2’s preorder traversal is a substring of T1’s preorder traversal, and T2’s inorder traversal is a substring of T1’s inorder traversal, then T2 is a substring of T1 any other method?? we can also do by folloowing 1.

[algogeeks] fibonicci recursive help

2012-10-21 Thread rahul sharma
Guys i have read an article somewhere regarding optimization of recursive fibonicci so that we donot need to calculate the sum that we have already calculated... In case if factorial,we donot need to find factorial that we have already calculated... I just forgot where i read from..may br from

Re: [algogeeks] fibonicci recursive help

2012-10-21 Thread rahul sharma
thnx a lot atul...was looking for that only...can u plz tell me under which section u get this post On Sun, Oct 21, 2012 at 4:03 PM, atul anand atul.87fri...@gmail.com wrote: http://www.geeksforgeeks.org/archives/10120 On 10/21/12, rahul sharma rahul23111...@gmail.com wrote: Guys i have

Re: [algogeeks] Longest increasing subsequence

2012-10-21 Thread rahul sharma
yes got it..thnx :d On Sun, Oct 21, 2012 at 4:19 PM, atul anand atul.87fri...@gmail.com wrote: @rahul : nope it wont work ..check for this input :- input = 1, 2,3,6,4 ,101, 6 by removing msis[i] msis[j] + arr[i] condition then you are excluding the max sub-sequence found from j

Re: [algogeeks] fibonicci recursive help

2012-10-21 Thread rahul sharma
Nice Dude ...:D On Sun, Oct 21, 2012 at 11:28 PM, atul anand atul.87fri...@gmail.comwrote: google searched it : geeksforgeeks + Fibonacci number ;) ;) On 10/21/12, rahul sharma rahul23111...@gmail.com wrote: thnx a lot atul...was looking for that only...can u plz tell me under which

[algogeeks] Re: c code help!!!!

2012-10-20 Thread rahul sharma
, 2012 at 12:05 AM, rahul sharma rahul23111...@gmail.comwrote: void show_bytes(byte_pointer start, int len) { int i; for (i = 0; i len; i++) printf( %.2x, start[i]); printf(\n); } byte_pointr is unsigned char *...typedef unsigned char * byte_pointer plz tell

Re: [algogeeks] Microsoft Interview Question

2012-10-16 Thread Rahul Kumar Patle
at 12:31 AM, Rahul Kumar Patle patlerahulku...@gmail.com wrote: Pls help to solve this que.. does any one have DP solution for following que. http://www.geeksforgeeks.org/archives/24488 section 5/question 2 Write a program to find all the possible paths from a starting point to dest point

[algogeeks] Microsoft Interview Question

2012-10-15 Thread Rahul Kumar Patle
0 0 1 1 If there is a block it’s represented by 0. If there is a path it’s represented by 1. -- Thanks and Regards: Rahul Kumar Patle M.Tech, School of Information Technology Indian Institute of Technology, Kharagpur-721302, Indiahttp://www.iitkgp.ac.in/ Mobile No: +91-8798049298, +91

[algogeeks] Re: Microsoft Interview Question

2012-10-15 Thread Rahul Kumar Patle
response awaited!!! anyone?? On Sat, Oct 13, 2012 at 12:31 AM, Rahul Kumar Patle patlerahulku...@gmail.com wrote: Pls help to solve this que.. does any one have DP solution for following que. http://www.geeksforgeeks.org/archives/24488 section 5/question 2 Write a program to find all

Re: [algogeeks] this pointer help c++

2012-10-10 Thread rahul sharma
, is compiler dependent).* *3. Sizeof(reference) is always the sizeof Object itself. (mandated by C++ standard)* *4. Do references require extra storage? Maybe or maybe not. Read your compiler docs.* On 10 October 2012 02:30, rahul sharma rahul23111...@gmail.com wrote: Clear some more questiosn

Re: [algogeeks] Virtual functions in constructor

2012-10-10 Thread rahul sharma
over here: http://www.parashift.com/c%2B%2B-faq-lite/calling-virtuals-from-ctors.html Also i recommend - *Inside the C++ Object Model* By Stanley B. Lippman. Cheers, On 10 October 2012 02:16, rahul sharma rahul23111...@gmail.com wrote: Guys i have read that concept of virtual fxn

Re: [algogeeks] using name space std

2012-10-09 Thread rahul sharma
; /// Linked to standard output extern ostream cerr; /// Linked to standard error (unbuffered) The new implementation is done in C# format. So we use the term using to include the iostream package. On Tue, Oct 9, 2012 at 12:01 AM, rahul sharma rahul23111...@gmail.comwrote: using name space

[algogeeks] this pointer help c++

2012-10-09 Thread rahul sharma
Plz explain below code circle operator=(circle ) { radius=c.radius; x=c.x; y=x.y; return *this; } QUESTION IS : as we know reference is a const pointer...so return type circle mean a pointer pointing to circle class object is created.Now during return we write * this.. As per book this contains

Re: [algogeeks] this pointer help c++

2012-10-09 Thread rahul sharma
@saurabhif i look from the way that i need to return a referencei.e. i mean object...i will ryt *this for this..i knew thisbut i have read that reference is a const pointer so if i look from this prespective then do i need to return pointer(this).. int *

[algogeeks] Virtual functions in constructor

2012-10-09 Thread rahul sharma
Guys i have read that concept of virtual fxn is not applicable in case of constructors..I means using virtual function in constructors always call local function..i wan to read more on this..can nybody explain use of virtual functions in constructor or provide me with a link for this.. thnx --

Re: [algogeeks] this pointer help c++

2012-10-09 Thread rahul sharma
at 12:23 AM, rahul sharma rahul23111...@gmail.comwrote: @saurabhif i look from the way that i need to return a referencei.e. i mean object...i will ryt *this for this..i knew thisbut i have read that reference is a const pointer so if i look from this prespective

Re: [algogeeks] this pointer help c++

2012-10-09 Thread rahul sharma
,,,does it mean some pointer returned or it mean whole object returned?? On Wed, Oct 10, 2012 at 2:23 AM, rahul sharma rahul23111...@gmail.comwrote: Got confusedcant get it..:([?] On Wed, Oct 10, 2012 at 1:00 AM, Prem Krishna Chettri hprem...@gmail.comwrote: Well Lemme try few more hand

Re: [algogeeks] Command Line arguments

2012-10-08 Thread rahul sharma
If its NULL then y does it give segmentation fault as for NULL it should print an empty stringplz xomment On Sun, Oct 7, 2012 at 6:56 PM, DHARMENDRA KUMAR VERMA dharmendrakumarverm...@gmail.com wrote: Bcoz u r trying to access an argument which doesnt even exist... for exmple

Re: [algogeeks] Command Line arguments

2012-10-08 Thread rahul sharma
@dharmendradoes every uninitialized memory has NULL or there can be some garbage value also...plz comment??? On Mon, Oct 8, 2012 at 9:02 PM, rahul sharma rahul23111...@gmail.comwrote: If its NULL then y does it give segmentation fault as for NULL it should print an empty stringplz

Re: [algogeeks] C output

2012-10-08 Thread rahul sharma
?? On Mon, Oct 8, 2012 at 5:07 PM, Sachin sachin.maheshw...@gmail.com wrote: @rahul According to C specification, half filled array will be filled with value 0. In your example you are setting str[0] as 'g' and str[1] as 'k'. So the compiler sets str[29] as 0. So you string str becomes {'g

[algogeeks] using name space std

2012-10-08 Thread rahul sharma
using name space std Please explain about this thnx -- 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] c o/p

2012-10-07 Thread rahul sharma
#includestdio.h int main() { int i; char ch; scanf(%c,ch); printf(%d,ch); // getchar(); getchar(); } when i enter one digit no. it showswhen 2 digit it halts...y so??? we can store 2 digit number like 65 in 8 bit char???plz tell -- You received this message because

[algogeeks] Re: c o/p

2012-10-07 Thread rahul sharma
Sorry wrng question copiedits a silly question to be asked..sorry guys On Sun, Oct 7, 2012 at 6:06 PM, rahul sharma rahul23111...@gmail.comwrote: #includestdio.h int main() { int i; char ch; scanf(%c,ch); printf(%d,ch); // getchar(); getchar(); } when i

[algogeeks] Command Line arguments

2012-10-07 Thread rahul sharma
#includestdio.h int main(int argc,char *argv[]) { printf(%d\n,argv[argc]); getchar(); return 0; } what will it print n y?? thnx rahul -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] C output

2012-10-06 Thread rahul sharma
char str[]=ab; char str1[]={'a','b'}; sizeof(str) ...o/p is 3 sizeof(str1)o/p is 2.. Why so plz explain... -- 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

Re: [algogeeks] C output

2012-10-06 Thread rahul sharma
...@gmail.comwrote: For string, C appends '\0' internally. hence sizeof(str) returned the value 3. str1 is char array with two character. hence sizeof(str1) returned the value 2. -- RK :) On Sat, Oct 6, 2012 at 5:53 PM, rahul sharma rahul23111...@gmail.comwrote: char str[]=ab; char str1[]={'a','b

Re: [algogeeks] C output

2012-10-06 Thread rahul sharma
#includestdio.h int main() { char str[10]={'g','k'}; char str1[10]=gh; int i; for(i=0;str1[i]!=NULL;i++) printf(%c,str[i]); getchar(); } NUll is there in character array also...make clear me... On Sat, Oct 6, 2012 at 9:22 PM, rahul sharma rahul23111...@gmail.comwrote: int

[algogeeks] C doubt

2012-10-06 Thread rahul sharma
char ch ch=i++[s]; printf(%c,ch); this will print i[s],then i is incrementrd after assigning to ch ch=++i[s];// this will inccrement value at i[s] My question is what is role of priority which is making them behaving differentI am not getting y not first i is incremented then i[s]

Re: [algogeeks] Re: Nested Function C

2012-10-04 Thread rahul sharma
:37:04 PM UTC-4, rahul sharma wrote: Guys i have read that we cant define function in another function in c Then why this followung program running fine on gcc #includestdio.h void abc() { printf(bac); void abf() { printf(bas); getchar

[algogeeks] Nested Function C

2012-10-02 Thread rahul sharma
Guys i have read that we cant define function in another function in c Then why this followung program running fine on gcc #includestdio.h void abc() { printf(bac); void abf() { printf(bas); getchar(); } } int main() { abc();

Re: [algogeeks] Facebook question!

2012-10-01 Thread Rahul Singh
check this out.. #includeiostream #includestdlib.h using namespace std; void print_sets(string *s,int pos,int n,char *to_print) { if(pos==n) { return; } for(int i=0;is[pos].length();i++) { to_print[pos] = s[pos][i]; print_sets(s,pos+1,n,to_print);

Re: [algogeeks] Facebook question!

2012-10-01 Thread Rahul Singh
check this out.. #includeiostream #includestdlib.h using namespace std; void print_sets(string *s,int pos,int n,char *to_print) { if(pos==n) { return; } for(int i=0;is[pos].length();i++) { to_print[pos] = s[pos][i]; print_sets(s,pos+1,n,to_print);

[algogeeks] Print Permutaion of a given String

2012-10-01 Thread rahul sharma
-- 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 at

Re: [algogeeks] Factorial vs Power

2012-09-28 Thread Rahul Singh
did u get it submitted? -- -- Thanks Rahul Singh B.tech CSE ,final Year IIT Roorkee -- 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] Factorial vs Power

2012-09-27 Thread Rahul Singh
. 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. -- -- Thanks Rahul Singh B.tech CSE ,final Year IIT Roorkee -- You received this message because you are subscribed

Re: [algogeeks] Adobe Written Test - 25 SEPT 2010

2012-09-23 Thread Rahul Kumar Patle
@dave sir: i understand your point, here my solution is only limited to hold the divisor in range of integer.. On Sat, Sep 22, 2012 at 1:41 AM, Dave dave_and_da...@juno.com wrote: @Rahul: What does this print for n = 193? Dave On Friday, September 21, 2012 12:14:18 AM UTC-5, Rahul Kumar

Re: [algogeeks] longest palindrome in a string size 2*10^4

2012-09-23 Thread Rahul Kumar Dubey
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *RAHUL KUMAR DUBEY* *BTech-3rd year * *Computer Science Engineering * *Motilal Nehru National Institute Of Technology* *Allahabad[211004],UP.* -- You received

Re: [algogeeks] Data Structure

2012-09-21 Thread Rahul Kumar Patle
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. -- Thanks and Regards: Rahul Kumar Patlehttp

Re: [algogeeks] Adobe Written Test - 25 SEPT 2010

2012-09-21 Thread Rahul Kumar Patle
) { divisor = 10 * divisor + 1; temp = 10 * temp + 1; } printf(%d and %d\n , divisor, temp); } printf(%d\n, divisor); } On Fri, Sep 21, 2012 at 10:30 AM, Rahul Kumar Patle patlerahulku...@gmail.com wrote: @navin: you have to find a number containing all 1's which is divisible

[algogeeks] all subarray with sum zero

2012-09-17 Thread rahul sharma
Plz provide me efficeient sol. 4 thisthnx -- 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] celebrity problem

2012-09-16 Thread rahul sharma
http://www.geeksforgeeks.org/archives/19622 Plz tell what is size 4 in this case -- 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] help to give DP solution

2012-09-16 Thread Rahul Kumar Patle
, Sep 15, 2012 at 9:10 PM, Rahul Kumar Patle patlerahulku...@gmail.com wrote: A 2D array of order A[N][N] is given, considering entry A[i][i] as invalid you have to select one element from each row such that 1. Selected elements does not belong to same column. 2. Sum of selected element has

[algogeeks] help to give DP solution

2012-09-15 Thread Rahul Kumar Patle
A 2D array of order A[N][N] is given, considering entry A[i][i] as invalid you have to select one element from each row such that 1. Selected elements does not belong to same column. 2. Sum of selected element has maximal. -- Thanks and Regards: Rahul Kumar Patlehttp://www.linkedin.com/profile

[algogeeks] Median in a stream of integers (running integers)

2012-09-08 Thread rahul sharma
http://www.geeksforgeeks.org/archives/14873 Please explain heap method..hw it works..with given i/pthnx -- 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] Count smaller elements on right side

2012-09-08 Thread rahul sharma
http://www.geeksforgeeks.org/archives/17235 Please explain me by drawing tree...as i am not able to get this right suppose we have 12,2,3,0,11,1 so first start from ryt 1[0] // 1 is root...count is 0 \ 11[1] // left subtree is 0 and 0+1=1 now 0 insert on left 1[0] // 1 is

Re: [algogeeks] probability

2012-09-07 Thread rahul aravind
0.50 On Fri, Sep 7, 2012 at 6:05 PM, noname narayan.shiv...@gmail.com wrote: [image: -]14Answers http://www.careercup.com/question?id=14553727 What is the probability of being the answer correct for this question, when the answer is chosen randomly: a. 0.25 b. 0.60 c. 0.25 d. 0.50

Re: [algogeeks] Microsoft written test question

2012-09-06 Thread Rahul Kumar Patle
Kant * ***Think positive and find fuel in failure* http://thinkndoawesome.blogspot.com/ *System/Software Engineer* *Hewlett-Packard India Software Operations. * On Tue, Sep 4, 2012 at 1:56 PM, Rahul Kumar Patle patlerahulku...@gmail.com wrote: @atul: correctly caught... here you have

Re: [algogeeks] Microsoft written test question

2012-09-04 Thread Rahul Kumar Patle
missed this part of bharat post :- /* If we don't get the violation for the second time .. means both are side-by-side elements .. swap them .. */ i was saying the same.so it will work. On 9/4/12, atul anand atul.87fri...@gmail.com wrote: @rahul : Here are the boundary cases need

Re: [algogeeks] MICROSOFT:Given a BST and a number. Find two node in a BST whose sum is equal to given number in O(n) time and O(1) space.

2012-09-03 Thread Rahul Kumar Patle
. 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. -- Thanks and Regards: Rahul Kumar Patlehttp://www.linkedin.com/profile/view?id=106245716trk=tab_pro M.Tech, School

Re: [algogeeks] Microsoft written test question

2012-09-03 Thread Rahul Kumar Patle
.. if it happens for the second time..then mark current element for swapping. swap both .. If we don't get the violation for the second time .. means both are side-by-side elements .. swap them .. Hope works .. If I miss any case .. correct me thanks, On Sun, Sep 2, 2012 at 7:45 PM, Rahul

[algogeeks] Microsoft written test question

2012-09-02 Thread Rahul Kumar Patle
help to solve the following.. Question: Two of the nodes of a BST are swapped. Correct the BST (taken from GeekforGeeks http://www.geeksforgeeks.org/archives/23272 2nd online test 3rd question) -- Thanks and Regards: Rahul Kumar Patlehttp://www.linkedin.com/profile/view?id=106245716trk=tab_pro

Re: [algogeeks] explain the ouput

2012-09-02 Thread Rahul Kumar Dubey
rajatdubey2...@gmail.comwrote: @Rahul kumar Dubey #includestdio.h double fn(char *a , int b , char c) { return (1.1); } int main() { int it = 2; char ct = 'c'; char a[30]; printf(%d\n,(sizeof(fn))); } why it is always giving output as 1 irrespective of the return type of function

Re: [algogeeks] Microsoft written test question

2012-09-02 Thread Rahul Kumar Patle
; swap((temp1-data), (temp2-data)); swap((temp1-data), (temp3-data)); found = 1; return; } if(!flag) prev = root; correctBST(root-right); } } On Sun, Sep 2, 2012 at 4:02 PM, Rahul Kumar Patle patlerahulku...@gmail.com

[algogeeks] explain the ouput

2012-09-01 Thread Rahul Kumar Patle
explain.. -- Thanks and Regards: Rahul Kumar Patlehttp://www.linkedin.com/profile/view?id=106245716trk=tab_pro M.Tech, School of Information Technology Indian Institute of Technology, Kharagpur-721302, Indiahttp://www.iitkgp.ac.in/ Mobile No: +91-8798049298, +91-9424738542 Alternate Email

Re: [algogeeks] explain the ouput

2012-09-01 Thread Rahul Kumar Dubey
of double on your machine ) On Fri, Aug 31, 2012 at 9:25 PM, Rahul Kumar Patle patlerahulku...@gmail.com wrote: #includestdio.h #includestdbool.h bool fn(char *a , int b , char c) { return true; } int main() { int it = 2; char ct = 'c'; char a[30]; printf(%d\n,(sizeof(fn(a , it , ct

Re: [algogeeks] use of static

2012-09-01 Thread rahul
i m talking in contest of question, not explaining overall picture of static in c,c++,java. On Sep 2, 2012 12:07 AM, Puneet Gautam puneet.nsi...@gmail.com wrote: @rahul: There is something more to static than to retain old value. Are u sure it is not used anywhere else for any other purpose

Re: [algogeeks] use of static

2012-08-30 Thread rahul
old style C, where you can't have auto array. just that. On Thu, Aug 30, 2012 at 12:52 PM, Romil ... vamosro...@gmail.comwrote: It should give an error in the line names[3] = names[4] These are fixed address values..you cannot change them. On Thu, Aug 30, 2012 at 12:44 PM, Puneet

Re: [algogeeks] use of static

2012-08-30 Thread rahul
Gautam puneet.nsi...@gmail.comwrote: Well, its gives error in every array assignment..ISO forbids this type of assignment. @rahul: But whats with the static here. how does it affect any string declared..? I couldnt get your answer ..pls explain On Thu, Aug 30, 2012 at 12:54 PM, rahul rahulr

[algogeeks] Search an element in a sorted and pivoted array

2012-08-28 Thread rahul sharma
plz provide me algo for this,thnx -- 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

Re: [algogeeks] Gate complaxity question

2012-08-26 Thread rahul sharma
me if i'm wrong.. On Sat, Aug 25, 2012 at 7:11 PM, rahul sharma rahul23111...@gmail.comwrote: *Let w(n) and A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size n. which of the following is ALWAYS TRUE?* (A) [image: A(n) = \Omega(W

[algogeeks] Complexity doubt

2012-08-25 Thread rahul sharma
guys can anyone tell me the link from where i can read about the big o ,big w and big q ...i read from corma but i didnt get theses from that...thnx in advance -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] Gate complaxity question

2012-08-25 Thread rahul sharma
*Let w(n) and A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size n. which of the following is ALWAYS TRUE?* (A) [image: A(n) = \Omega(W(n))] (B) [image: A(n) = \Theta(W(n))] (C) [image: A(n) = O(W(n))] (D) [image: A(n) = o(W(n))]

Re: [algogeeks] file handle

2012-08-18 Thread Rahul Kumar Dubey
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 at http://groups.google.com/group/algogeeks?hl=en. -- *RAHUL KUMAR

Re: [algogeeks] Explain

2012-08-09 Thread rahul
initializing a array of pointer with NULL. On Thu, Aug 9, 2012 at 10:00 AM, Sathish babu satbrucei...@gmail.comwrote: tree *a[100]={(tree *)0}; Hey guys can any one explain me the above statement... **~Sathish Babu~** -- You received this message because you are subscribed to the Google

Re: [algogeeks]

2012-08-09 Thread rahul sharma
Mail to me alsothnx On Thu, Aug 9, 2012 at 2:28 PM, Piyush Khandelwal piyushkhandelwal...@gmail.com wrote: Hi ! Google is visiting our campus tomorrow. Anyone having latest written test paper of google, please mail it... Thanx in advance!!! *Piyush Khandelwal** | Placement

Re: [algogeeks] what will be output for this program ?

2012-07-27 Thread rahul aravind
64 32 16 32 16 32 64 32 On Fri, Jul 27, 2012 at 6:48 PM, Hraday Sharma hradaysha...@gmail.comwrote: #includestdio.h int main(){ printf(%d %d\n, 321, 320); printf(%d %d\n, 32-1, 32-0); printf(%d %d\n, 321, 320); printf(%d %d\n, 32-1, 32-0); return 0; -- You

[algogeeks] Re: Directi Interview Ques

2012-07-23 Thread Rahul Kumar
http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi?board=riddles_cs;action=display;num=1280183627 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

[algogeeks] Re:

2012-07-23 Thread Rahul Kumar
N+=3; print N!-(N^2-1); let me know if I am wrong On Wednesday, 11 July 2012 16:42:38 UTC+5:30, wentworth miller wrote: hi .. can anybody tell the Nth term of the following series... 9 96 685 4992. -- You received this message because you are subscribed to the Google Groups

[algogeeks] Re: Finding the repeated element

2012-07-23 Thread Rahul Kumar
what is the time complexity for the code ? #includeiostream using namespace std; main() { int arr[] = { 2,3,4,9,2,7}; int *ptr1 = arr[0]; int *ptr2 = arr[1]; const int SIZE = sizeof arr / sizeof arr[0]; while(1) { if(*ptr1 ==

[algogeeks] Amazon support engineer

2012-07-23 Thread rahul sharma
Guys i am having amazon support engg. test tonyt...90 min 27 questions mcq...plz tell how to prepare and wats dis profyl???reply asap..and sory for posting it in algogeeks as i need quick response.waiting for +ve response soon... thnx -- You received this message because you are subscribed

Re: [algogeeks] Need links for Problem solving interview questions(non DS and algorithmic) probably with how to reach a solution

2012-07-11 Thread Rahul Kumar Patle
=en. -- Thanks and Regards: Rahul Kumar Patle M.Tech, School of Information Technology Indian Institute of Technology, Kharagpur-721302, India Mobile No: +91-8798049298, +91-9424738542 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] C o/p

2012-07-10 Thread rahul sharma
yeahu r ryt On Tue, Jul 10, 2012 at 10:01 AM, Firoz Khursheed firozkhursh...@gmail.comwrote: Well, when i compiled the code the output ie i is alway i=2, http://ideone.com/AFljo http://ideone.com/87waz This expression is ambiguous, and compiler dependent. -- You received this

Re: [algogeeks] C o/p

2012-07-09 Thread rahul sharma
what about post increment?? On Sun, Jul 8, 2012 at 10:37 PM, mitaksh gupta mitak...@gmail.com wrote: the o/p will be 2 not 1 because of the post-increment operator. On Sun, Jul 8, 2012 at 10:23 PM, rahul sharma rahul23111...@gmail.comwrote: int i=5; i=++i/i++; print i; i=1 how

Re: [algogeeks] C o/p

2012-07-09 Thread rahul sharma
PM, rahul sharma rahul23111...@gmail.comwrote: what about post increment?? On Sun, Jul 8, 2012 at 10:37 PM, mitaksh gupta mitak...@gmail.comwrote: the o/p will be 2 not 1 because of the post-increment operator. On Sun, Jul 8, 2012 at 10:23 PM, rahul sharma rahul23111...@gmail.comwrote

[algogeeks] C o/p

2012-07-08 Thread rahul sharma
int i=5; i=++i/i++; print i; i=1 how? -- 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.

Re: [algogeeks] Re: adobe

2012-07-03 Thread rahul ranjan
**)malloc( sizeof(int*) * nrows ); int *ar = (int *)malloc( sizeof(int) * nrows * ncols ); for( int a = 0; a nrows; a ++ ) { arra[a] = ar + ncols * a; } now index of array i and j can be accessed as arra[i][j] On Friday, June 29, 2012 4:46:18 PM UTC+5:30, rahul r

Re: [algogeeks] adobe

2012-06-30 Thread rahul sharma
, 2012 at 4:46 PM, rahul r. srivastava rahul.ranjan...@gmail.com wrote: implement a 2d matrix using only 2 mallocs. -- 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

Re: [algogeeks] adobe

2012-06-30 Thread rahul ranjan
i dont knw read it in some paper.. most prob developer. On Sat, Jun 30, 2012 at 9:56 PM, rahul sharma rahul23111...@gmail.comwrote: these are asked for which profyl??developer or white box?? On Sat, Jun 30, 2012 at 8:03 PM, Amol Sharma amolsharm...@gmail.comwrote: @sarthak

Re: [algogeeks] Question asked in Amazon Online Test

2012-06-29 Thread rahul ranjan
oh bhai mere. kewal preorder use karke kaise tree bana dega??? On Fri, Jun 29, 2012 at 11:23 PM, amrit harry dabbcomput...@gmail.comwrote: @bhaskar ur algo fails on this case (5+3)-(2+(3/6)) -+53+2/36 63/2+35-+ showing that 6/3 but actually it is 3/6 so i think it could be done by

[algogeeks] can anyone tell me

2012-06-28 Thread Rahul verma
can anyone tell me how to prepare OS subject for placement and interview which type of question interviewer will ask? which website will i prefer ? plzzz tell me ... -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to

Re: [algogeeks] Adobe interview question

2012-06-27 Thread rahul sharma
@himanshu...i didnt read full question.got it now... On Mon, Jun 25, 2012 at 9:12 AM, himanshu kansal himanshukansal...@gmail.com wrote: @rahul: the ques itself says that we have to implement abstract class*without * using pure virtual function... On Sun, Jun 24, 2012 at 12:00 AM

Re: [algogeeks] Adobe interview question

2012-06-23 Thread rahul sharma
yeah use pure virtual fxn.. On Fri, Jun 22, 2012 at 3:41 PM, himanshu kansal himanshukansal...@gmail.com wrote: i told the interviewer...bt he said thn the constt would not be accessible to derived class alsohe told me dt u shld make the constt. protecteddats why i ws confused...

Re: [algogeeks] Precedence or Associativity

2012-06-17 Thread rahul venkat
yea it s short circuiting -- 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

Re: [algogeeks] MS Question: Reverse stack using push, pop without any auxiliary data structure

2012-06-14 Thread rahul patil
/group/algogeeks?hl=en. -- Regards, Rahul Patil -- 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] c prog problem

2012-06-13 Thread Rahul verma
int main() { int i; float a=5.2; char *ptr; ptr=(char *)a; for(i=0;i=3;i++) printf(%d ,*ptr++); return 0; } give me explanation of this code. -- You received this message

Re: [algogeeks] Datastructure and algorithms book

2012-06-05 Thread Rahul Kumar Patle
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Thanks and Regards: Rahul Kumar Patle M.Tech, School of Information Technology Indian Institute of Technology, Kharagpur-721302, India Mobile No: +91-8798049298

<    1   2   3   4   5   6   7   8   9   >