Re: [algogeeks] Need help

2018-04-22 Thread Saurabh Paliwal
Hi, An approach could be to guess the answer `A` and check if in `A` time, all the tasks can be completed. For checking, just iterate through the k people, the number of tasks completed would be `A`/k[i] (integer division) for everyone. If sigma(`A`/k[i]) >= N, `A` works. Now do a binary search to

[algogeeks] Need help

2018-04-22 Thread pawan yadav
Hi All, Has anybody solved the following problem? https://www.careercup.com/question?id=5196860946907136 -Pawan -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an

[algogeeks] Yo! Help me make a Music Video

2014-12-28 Thread Shrey Choudhary
Waddup guys, Hope everything is fine at your end. So this is a personal mail, I'm sending out. I've recently started my IndieGogo Crowdfunding Campaign for a hip hop music video. I'm now taking my passion for rapping to another level. It's just that I'm little short of funds. I need around 1000 to

RE: [algogeeks] Yo! Help me make a Music Video

2014-12-28 Thread saurabh singh
; Manish Dhall manishdhal...@gmail.com; manishkam...@rediffmail.com manishkam...@rediffmail.com Subject: [algogeeks] Yo! Help me make a Music Video Waddup guys, Hope everything is fine at your end. So this is a personal mail, I'm sending out. I've recently started my IndieGogo Crowdfunding Campaign

[algogeeks] Need help on SPOJ(HASHIT)

2013-05-27 Thread Amit
Hello, I have been trying to solve this http://www.spoj.com/problems/HASHIT/problem on SPOJ. I am getting Wrong Answer on submission, but my solution work fine on the sample. Please tell me where I am wrong. Here http://ideone.com/lMSw94 is my code. Thanks in advance. Amit Tiwari BIT Mesra --

[algogeeks] Re: Help me find my Recursive algo complexity

2012-10-10 Thread KK
Hi Vicky.. Its O(n^K) as u are iterating over all the elements of array for each of the k element subset!! On Monday, 8 October 2012 23:53:15 UTC+5:30, ((** VICKY **)) wrote: Hi, I wrote code for generating all possible sets of length k in a array of length n. I did using recursion, but i'm

Re: [algogeeks] need help??

2012-09-23 Thread b.raj kannan
any body know about juniper networks internship written test pattern.. please help me. -- 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

[algogeeks] need help??

2012-09-22 Thread Ratan
guys plzz help me wid the java book that i shld start ??? -- -- Ratan | Final Year | Information Technology | NIT ALLAHABAD -- 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] 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] need help??

2012-09-22 Thread Rohit Singhal
the very best book...no doubt..Khalid Mughal. On Sat, Sep 22, 2012 at 2:10 PM, Ravi Ranjan ravi.cool2...@gmail.comwrote: khalid mugal - A Programmers guide to Java certification -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

[algogeeks] Need Help with PHP/HTML

2012-07-16 Thread Nandita Raman
Hello, I am working on PHP/HTML/ XML-RPC. I have a website, where one link shows the list of files as checkboxes and a submit button below that. I am stuck at point where when submit button is clicked, it has to go to another .php page and execute whatever is there in that .php file. Form

Re: [algogeeks] Need Help with PHP/HTML

2012-07-16 Thread Vandana Bachani
Hi, You need to correct ur form tag. Try: form name=somename id=someid method=post action=theotherfile.php Thanks, Vandana On Mon, Jul 16, 2012 at 12:42 PM, Nandita Raman nandita.rama...@gmail.comwrote: Hello, I am working on PHP/HTML/ XML-RPC. I have a website, where one link shows the

Re: [algogeeks] Need Help with PHP/HTML

2012-07-16 Thread Piyush
connect ur form with the file you want to get redirected to by: form method=POST action=NAME_OF_FILE.php input type=submit/ /form -- 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: Help woth LISP

2012-07-09 Thread Geoffrey Summerhayes
Looks pretty standard. It starts by placing one queen on each square of the bottom row, then working up through the rows trying to put a queen in each column. If it can place a queen it gets added as a possible solution. The always test in the inner loop checks the 'rook' horizontal and then the

Re: [algogeeks] Please help in understanding this question. I have no answers just this question.

2012-07-01 Thread Ashish Goel
count island problem On Jul 1, 2012, at 11:06 AM, Vikas wrote: Given matrix(screen black n white)..where 1 represents black dot and 0=white. there can b many images/objects in it..return list of coordinates for each obkect..(Hint do BFS) -- You received this message because you are

[algogeeks] Please help in understanding this question. I have no answers just this question.

2012-06-30 Thread Vikas
Given matrix(screen black n white)..where 1 represents black dot and 0=white. there can b many images/objects in it..return list of coordinates for each obkect..(Hint do BFS) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this

[algogeeks] Need help

2012-04-13 Thread Rishabh Jain
http://www.codechef.com/problems/VOTERS Here is my solution Dont know y i m getting Runtime error..plz check.. #includecstdio #includealgorithm using namespace std; int main() { int a,b,c,x[50001],i; int s[11],count; s[11]=0; count=0;

Re: [algogeeks] Need help

2012-04-13 Thread Kuldeep Gupta
#includecstdio using namespace std; int a,b,c,x[51],i; int s[101],count; int main() { scanf(%d%d%d,a,b,c); for(i=0;ia;i++) { scanf(%d,x[i]); s[x[i]]++; } for(i=0;ib;i++) { scanf(%d,x[i]); s[x[i]]++; }

Re: [algogeeks] Need help regarding threads

2012-04-01 Thread Sagar Pareek
It was telling that error after doing some modifications... Yeah i think bharat u r saying correct... I will try it... Thanks for reply... On Sat, Mar 31, 2012 at 11:45 AM, bharat b bagana.bharatku...@gmail.comwrote: u should get an error: argument of type ‘void* (TraCISagar::)(void*)’ does

Re: [algogeeks] Need help regarding threads

2012-03-31 Thread bharat b
u should get an error: argument of type ‘void* (TraCISagar::)(void*)’ does not match ‘void* (*)(void*)’ ... The function which is threaded should be either static or global in pthread implementation ... On Tue, Mar 27, 2012 at 7:20 PM, Sagar Pareek sagarpar...@gmail.com wrote: Thanks for reply

Re: [algogeeks] Need help regarding threads

2012-03-27 Thread Sagar Pareek
Thanks for reply but tell me two thing , is it true or not? is NULL is not equal to (void*)0 ?? AND int a=20; int b=(int)a ; // Whats wrong in here?? Similarly for void * TraCISagar::sender(void* a); then while calling in pthread as pthread_create(thread1,NULL,(void*)sender,NULL) instead of

[algogeeks] Need help regarding threads

2012-03-26 Thread Sagar Pareek
Hello all, I need help regarding thread implementation in C++ Here is my sample code... *class TraCISagar : public BasicModule1 { public: . . void activity(); void* sender(void*); . . }; void* TraCISagar::sender(void* a) { . . . } void TraCISagar::activity()

Re: [algogeeks] Need help regarding threads

2012-03-26 Thread SAMM
I think is error is in the 4th argument u r passing in this line * pthread_create(thread1,NULL,(void*)sender,(void*)0);* The 4th argument is expecting the address of the arguments , but the address he is getting is 0 , which is not granted by OS . Tht address is used by OS I guess . Instead*

Re: [algogeeks] Need help regarding threads

2012-03-26 Thread Senthil Nathan
The problem is with the third argument in *pthread_create(thread1,NULL,(void*)sender,(void*)0);* * * It should just be sender or sender. *pthread_create(thread1,NULL,sender,(void*)0);* Thanks, Senthil. On Mon, Mar 26, 2012 at 5:25 PM, Sagar Pareek sagarpar...@gmail.com wrote: Hello all, I

Re: [algogeeks] Need help regarding threads

2012-03-26 Thread SAMM
Yaa Senthil is right , I overlooked it . In 3rd argument also it is expecting an address while u r passing the pointer . -- 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] GSOC help android app inventor

2012-03-23 Thread Sourabh Chandak
Hi Raghav, I dont have much idea about the organisation. I gave a look at the idea page while searching for an organisation to work for, and this is what I could figure out. The work you need to do for app inventor for GSoC is not android application development. App inventor is for ones who

Re: [algogeeks] GSOC help android app inventor

2012-03-23 Thread Raghav Garg
Thanks.. I am trying to work with that code but there is no contact information for that organisation( like irc channel, mailing list or facebook page) so how could i contact them? On 3/23/12, Sourabh Chandak sourabh3...@gmail.com wrote: Hi Raghav, I dont have much idea about the organisation.

Re: [algogeeks] GSOC help android app inventor

2012-03-23 Thread Sourabh Chandak
Google Group: app-inventor-open-source-...@googlegroups.com On Fri, Mar 23, 2012 at 9:11 PM, Raghav Garg rock.ragha...@gmail.comwrote: Thanks.. I am trying to work with that code but there is no contact information for that organisation( like irc channel, mailing list or facebook page) so

[algogeeks] GSOC help android app inventor

2012-03-22 Thread Raghav Garg
*Hello, I am very much interested in android development and also i have made few apps with eclipse and also with app inventor. I need to know what else i can do to contribute in app inventor to get selected in GSOC besides from just filling the application. *Thanking you *With regards- Raghav

Re: [algogeeks] java help

2012-02-03 Thread abhishek
http://viralpatel.net/blogs/2009/01/how-to-take-screen-shots-in-java-taking-screenshots-java.html On Fri, Feb 3, 2012 at 8:35 AM, Arun Vishwanathan aaron.nar...@gmail.comwrote: Hi, does anybody know how to take a screenshot of screen with java ? I also need help regarding storing the

[algogeeks] java help

2012-02-02 Thread Arun Vishwanathan
Hi, does anybody know how to take a screenshot of screen with java ? I also need help regarding storing the screenshot image into a doc file or so. Any suggestions? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] Re: Help sourcebit !!!

2011-10-06 Thread aditya kumar
guys its my sincere request to all .. before posting any question plz plz do search for archives first . if you would had done that you could have got better knowledge . On Wed, Oct 5, 2011 at 9:14 PM, raman shukla shukla.rama...@gmail.comwrote: Hey mate dont worry there is nothing like

[algogeeks] Re: Help sourcebit !!!

2011-10-05 Thread raman shukla
Hey mate dont worry there is nothing like pattern, You should be able to think little logical and write normal JAVA programs like implementation of different sorting algorithm in java and finding regular expression in text file. This is only required, no need to panic. All the best. On Oct 5,

Re: [algogeeks] Sapient Help!!

2011-10-05 Thread Prags
@Akanksha- thank u On Mon, Oct 3, 2011 at 7:10 PM, Akanksha . akanksha...@gmail.com wrote: In the technical interview round dey asked me questions on bst searching, hashing, triggers n other ques in dbms, writing a query, 2 puzzles n some ques on OS which i dnt remember.. n in the HR

[algogeeks] DP Help...

2011-10-05 Thread Vikram Singh
any one give a good link to study Dynamic Programming concepts?? --Regards Vikram -- 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 help

2011-10-03 Thread rahul sharma
% p prints the corresponding argument that is pointer.can nyone given an xample plz? -- 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] Sapient Help!!

2011-10-03 Thread rajul jain
Hi akanksha Thanks for your information .Today i have cleared my written, can you please share some information about both interview process specifically that attribute round what sort of question they asked in that interview. Rajul On Fri, Sep 30, 2011 at 5:35 PM, Akanksha .

Re: [algogeeks] Sapient Help!!

2011-10-03 Thread Akanksha .
In the technical interview round dey asked me questions on bst searching, hashing, triggers n other ques in dbms, writing a query, 2 puzzles n some ques on OS which i dnt remember.. n in the HR interview round, dey asked me specifically abt my projects n others things dat were der in my resume..

Re: [algogeeks] c help

2011-10-03 Thread Hatta
#include stdio.h int main(void) { int x = 10; int *p = malloc(16); printf(%p %p\n, x, p); return 0; } first will print an address in the stack second an address in heap no big deal, uh? :) On Mon, Oct 3, 2011 at 7:28 AM, rahul sharma rahul23111...@gmail.com wrote: % p prints the

[algogeeks] quinstreet help......

2011-09-30 Thread sush57
can anyone post recruitment process of QuinStreet...that company is coming on 19th oct...plz help friends..what type of questions can be expectedplz help...thanks in advance -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to

Re: [algogeeks] STRING help

2011-09-30 Thread rahul vatsa
c style string is just the char array which is null terminated. On Fri, Sep 30, 2011 at 1:27 AM, rahul sharma rahul23111...@gmail.comwrote: what is c style string??n wats diff b/w c and c++ strings representtaion.. -- You received this message because you are subscribed to the

Re: [algogeeks] Sapient Help!!

2011-09-30 Thread Prags
@Akaknsha- hv sapient visited ur college ?? if yes , then what is its procedure ? On Wed, Sep 28, 2011 at 9:32 PM, Akanksha . akanksha...@gmail.com wrote: wrk culture is gud mostly.. if u want to do gud technical wrk den avoid dis company otherwise if u r interested in management or nething

Re: [algogeeks] Sapient Help!!

2011-09-30 Thread Akanksha .
I m a 2011 passout n sapient had visited my clg in jan 2011.. first of all, u ll go thru a written test consising of apti ( quant, logical reasoning n english ) and one paper of c,ds n c++ combined... den u r shortlisted for technical interview in which dey ask u some puzzles n ques related to

[algogeeks] stack help

2011-09-30 Thread rahul sharma
hw will u design a stack which will have push pop and min fxn...all should operate in o(1) tymreplyn asap -- 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] stack help

2011-09-30 Thread sukran dhawan
already discussed.search in archives On Fri, Sep 30, 2011 at 6:29 PM, rahul sharma rahul23111...@gmail.comwrote: hw will u design a stack which will have push pop and min fxn...all should operate in o(1) tymreplyn asap -- You received this message because you are subscribed to the

Re: [algogeeks] stack help

2011-09-30 Thread rahul sharma
plz post link as m not able to find it On Fri, Sep 30, 2011 at 7:17 PM, sukran dhawan sukrandha...@gmail.comwrote: already discussed.search in archives On Fri, Sep 30, 2011 at 6:29 PM, rahul sharma rahul23111...@gmail.comwrote: hw will u design a stack which will have push pop and min

Re: [algogeeks] stack help

2011-09-30 Thread Shravan Kumar
http://groups.google.com/group/algogeeks/browse_thread/thread/1dd628ee5e7939da/decedd114a26e564?hl=enlnk=gstq=stack+problem# On Fri, Sep 30, 2011 at 7:41 PM, rahul sharma rahul23111...@gmail.comwrote: plz post link as m not able to find it On Fri, Sep 30, 2011 at 7:17 PM, sukran dhawan

[algogeeks] STRING help

2011-09-29 Thread rahul sharma
what is c style string??n wats diff b/w c and c++ strings representtaion.. -- 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 help

2011-09-28 Thread abhishek iyer
http://www.fileserve.com/file/eBgSThF/How%20To%20Prepare%20For%20Qt%20Apt%20For%20Cat%202E%20By%20Sharma.pdf On Tue, Sep 27, 2011 at 4:23 AM, SHUBHAM BANSAL shubham.bans...@gmail.comwrote: If anyone have E-book of Quantative Aptitude For CAT by Arun Sharma.?? Then kindly send to my email.or

[algogeeks] Sapient Help!!

2011-09-28 Thread rohit
Is anybody know about sapient working culture? -- 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] Sapient Help!!

2011-09-28 Thread Akanksha .
wrk culture is gud mostly.. if u want to do gud technical wrk den avoid dis company otherwise if u r interested in management or nething like dat den u can go for it.. On Wed, Sep 28, 2011 at 8:15 PM, rohit rajuljain...@gmail.com wrote: Is anybody know about sapient working culture? -- You

[algogeeks] symantec help...

2011-09-27 Thread sush57
can anyone tell about placement process of symantec,pune...they are comin for our campus on 30th of this month...pls help...if symantec has already visited ur campus pls do put few types of questions that were asked...it would be really helpful... regards, s.sushaanth BE-computer science Madras

Re: [algogeeks] plz help

2011-09-22 Thread rohit jangid
got 45 on linux than tried with fflush(stdout) and got 9 which is correct . so I guess that both child and parent process getting the same buffer and thus resulting in more number of hello correct answer is 9 as already mentioned On Sep 21, 2011 7:57 PM, sush57 sushaant...@gmail.com wrote:

[algogeeks] plz help

2011-09-21 Thread sush57
main() { int tmp; for(i=0;i9;i++) { tmp=fork(); if(tmp0) break; printf(Hello); } } what's the output and how does this work can u give few other questions using fork... -- You received

Re: [algogeeks] plz help

2011-09-21 Thread Saravana kumar
Hello will be printed 45 times... On Wed, Sep 21, 2011 at 7:57 PM, sush57 sushaant...@gmail.com wrote: main() { int tmp; for(i=0;i9;i++) { tmp=fork(); if(tmp0) break; printf(Hello); } }

Re: [algogeeks] plz help

2011-09-21 Thread Anil Arya
http://ideone.com/nkTVN On Wed, Sep 21, 2011 at 11:43 PM, Saravana kumar saravana@gmail.comwrote: Hello will be printed 45 times... On Wed, Sep 21, 2011 at 7:57 PM, sush57 sushaant...@gmail.com wrote: main() { int tmp; for(i=0;i9;i++) {

Re: [algogeeks] plz help

2011-09-21 Thread ravi maggon
Output Hello printed 10 times. Since form command spawns the process, so for every call their are two process created and since if process gets successfully created fork returns some positive no. which is the process id, so it will break the loop and finally only the 10 child processes will be

Re: [algogeeks] plz help

2011-09-21 Thread Rashmi Jain
@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...@gmail.com wrote: Output Hello printed 10 times. Since form command spawns the process, so for every call their are two process created and since if process

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

Re: [algogeeks] plz help

2011-09-21 Thread Rashmi Jain
@ravi: thanks..!! On Thu, Sep 22, 2011 at 12:54 AM, ravi maggon maggonr...@gmail.com wrote: 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

Re: [algogeeks] plz help

2011-09-21 Thread teja bala
@ ravi but compile it on http://ideone.com/nkTVN it showing 45 hello plz do look at it... On Thu, Sep 22, 2011 at 12:59 AM, Rashmi Jain rashmi.jain...@gmail.comwrote: @ravi: thanks..!! On Thu, Sep 22, 2011 at 12:54 AM, ravi maggon maggonr...@gmail.comwrote: ohh sorry, I thought it was

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 it on

Re: [algogeeks] plz help

2011-09-21 Thread Rashmi Jain
but in this output 10 times hello is printed..how..?? 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] PLEASE HELP ME - Party Lamps

2011-09-16 Thread Blackwizard
I've read this following solution from USACO for IOI98 - Party Lamps problem..but I don't know why 2^4 and I don't know why the complete search works for this problem...!!! I didn't get exactly what it say... Can anybody help me to understand it? Thanks... IOI 98 - Party Lamps:

[algogeeks] plz help...

2011-09-14 Thread Tushar Kanta Rath
hello, i want a good reference in web designing.can anyone plzz help me with some good links, for reference.. plzz its urgent Thanks in Advance -- Tushar Kanta Rath, Master In Computer Application MNNIT, Allahabad -- You received this message because you

[algogeeks] Re: help

2011-09-13 Thread DIVIJ WADHAWAN
Try material of MBA coaching institutes wiz Career Launcher,Time etc On Sep 12, 6:11 pm, wellwisher p9047551...@gmail.com wrote: please suggest me some good aptitude books -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this

Re: [algogeeks] Re: help

2011-09-13 Thread mithun bs
Quantitative Aptitude by R.S.Agarwal. On Tue, Sep 13, 2011 at 2:12 PM, DIVIJ WADHAWAN divij...@gmail.com wrote: Try material of MBA coaching institutes wiz Career Launcher,Time etc On Sep 12, 6:11 pm, wellwisher p9047551...@gmail.com wrote: please suggest me some good aptitude books

Re: [algogeeks] need help

2011-09-12 Thread payal gupta
+1 techcoder,plzzz mail me 2..thanks in advance Regards, Payal Gupta On Mon, Sep 12, 2011 at 11:01 AM, sukran dhawan sukrandha...@gmail.comwrote: +1 to tech coder On Mon, Sep 12, 2011 at 10:50 AM, tech coder techcoderonw...@gmail.comwrote: if somebody has the preparation material and

[algogeeks] need help

2011-09-11 Thread tech coder
if somebody has the preparation material and videos provided by Careercup.com. Then please send me. thanks. -- 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] need help

2011-09-11 Thread sukran dhawan
+1 to tech coder On Mon, Sep 12, 2011 at 10:50 AM, tech coder techcoderonw...@gmail.comwrote: if somebody has the preparation material and videos provided by Careercup.com. Then please send me. thanks. -- tech codYou received this message because you are subscribed to the Google Groups

[algogeeks] plz help for C output

2011-09-10 Thread abhishek
(a) #define f(g,g2) g##g2 int main() { int var12=100; printf(%d,f(var,12)); getch(); } what will be the output?? (b) main() { int i=400,j-300; printf(%d...%d); } (c) void main() { char far *farther,* farthest ; printf(%d..%d,sizeof(father),sizeof(farthest)); } -- You received

Re: [algogeeks] plz help for C output

2011-09-10 Thread abhinav gupta
a) 100 On Sat, Sep 10, 2011 at 12:40 AM, abhishek abhishek.ma...@gmail.com wrote: (a) #define f(g,g2) g##g2 int main() { int var12=100; printf(%d,f(var,12)); getch(); } what will be the output?? (b) main() { int i=400,j-300; printf(%d...%d); } (c) void main() {

Re: [algogeeks] plz help for C output

2011-09-10 Thread parag khanna
1. 100 2. 400...300 3. 4 .. 2 -- Parag Khanna B.tech Final Year NIT,Kurukshetra -- 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] plz help for C output

2011-09-10 Thread bharatkumar bagana
2nd answer is compiler dependent ..i think so .. in gcc it gives garbage values . On Sat, Sep 10, 2011 at 3:51 AM, parag khanna khanna.para...@gmail.comwrote: 1. 100 2. 400...300 3. 4 .. 2 -- Parag Khanna B.tech Final Year NIT,Kurukshetra -- You received this message

Re: [algogeeks] plz help for C output

2011-09-10 Thread Sajal Choudhary
in #definef(g,g2) g##g2 the ## operator concatenate the 2 arguments in the macro expansion. thus it becomes var12 -- Sajal Choudhary Undergraduate Student, Division of Computer Engineering, Netaji Subhas Institute of Technology, New Delhi. -- You received this message because you are

[algogeeks] plz help

2011-09-07 Thread sush57
If 5/2 artists make 5/2 paintings using 5/2 canvases in 5/2 days then how many artists r required to make 25 paintings using 25 canvases in 25 days? some sayin 25,some sayin 1...can anyone pls explain the answer for this puzzle... -- You received this message because you are subscribed

Re: [algogeeks] plz help

2011-09-07 Thread rahul vatsa
i think it should be 1. 5/2 paintings r made by 5/2 ppl in 5/2 days using 5/2 canvas = 1 painting is made by 1 person in 1 day using 1 canvas i.e. 1 guy cn make a painting in 1 day using a canvas. Now, the other case, to make 25 paintings using 25 canvases in 25 days. As there r 25 days total

[algogeeks] ubuntu help

2011-09-04 Thread UTKARSH SRIVASTAV
hi anyone knows how to play vlc in root .i know root is not allowed by default but i want to know some mean -- *UTKARSH SRIVASTAV CSE-3 B-Tech 3rd Year @MNNIT ALLAHABAD* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group.

Re: [algogeeks] ubuntu help

2011-09-04 Thread Saket Choudhary
Just type vlc in terminal. Else if you want to run it as root : sudo vlc Sent from my iPhone On Sep 4, 2011, at 1:31 PM, UTKARSH SRIVASTAV usrivastav...@gmail.com wrote: hi anyone knows how to play vlc in root .i know root is not allowed by default but i want to know

[algogeeks] PLz help urgent

2011-08-23 Thread mani walia
Guys american express coming to our college for training. Plz anyone who has faced the written test and procedure.. please share their views.. it wud be helpful for us.. thnks. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to

Re: [algogeeks] sql help

2011-08-21 Thread jega...@gmail.com
Pls have a look at this site... sqlauthority.com On 21-Aug-2011 11:44 AM, sachin sabbarwal algowithsac...@gmail.com wrote: plz suggest some link where i can get questions on sql queries to practice. thanks in advance!! -- You received this message because you are subscribed to the Google

Re: [algogeeks] amazon help

2011-08-12 Thread Akash Mukherjee
thanx...downloaded :) On Fri, Aug 12, 2011 at 10:56 AM, coolfrog$ dixit.coolfrog.div...@gmail.com wrote: @all can some plz suggest the source for where i can fine the dates and news regarding amazon off-campus Placements. On Fri, Aug 12, 2011 at 6:36 AM, Akash Mukherjee

[algogeeks] amazon help

2011-08-11 Thread Akash Mukherjee
Hi, Can anyone suggest from where I should practice for the online coding round for amazon off-campus placements. I am looking for similar problems not for the environment. Thanx, Akash -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To

Re: [algogeeks] amazon help

2011-08-11 Thread Akash Mukherjee
thanx :) On Fri, Aug 12, 2011 at 7:51 AM, Prakash D cegprak...@gmail.com wrote: www.projecteuler.net On Fri, Aug 12, 2011 at 6:52 AM, Dipankar Patro dip10c...@gmail.comwrote: Topcoder will be a good option. Amazon mainly makes you write functions in which the parameters and structure of

Re: [algogeeks] amazon help

2011-08-11 Thread siddharam suresh
down load the book called **Cracking the Coding Interview, Fourth Edition: 150 Programming Interview Questions and Solutions*.* * * it contains max salutions Thank you, Siddharam On Fri, Aug 12, 2011 at 10:22 AM, Akash Mukherjee akash...@gmail.comwrote: thanx :) On Fri, Aug 12, 2011 at 7:51

Re: [algogeeks] amazon help

2011-08-11 Thread siddharam suresh
Thank you, Siddharam On Fri, Aug 12, 2011 at 10:34 AM, siddharam suresh siddharam@gmail.comwrote: down load the book called **Cracking the Coding Interview, Fourth Edition: 150 Programming Interview Questions and Solutions*.* * * it contains max solutions Thank you, Siddharam On

Re: [algogeeks] amazon help

2011-08-11 Thread coolfrog$
@all can some plz suggest the source for where i can fine the dates and news regarding amazon off-campus Placements. On Fri, Aug 12, 2011 at 6:36 AM, Akash Mukherjee akash...@gmail.com wrote: Hi, Can anyone suggest from where I should practice for the online coding round for amazon

Re: [algogeeks] pls help

2011-08-10 Thread programming love
@sagar and @brijesh: awesome explanation!!! too good! 1 doubt! the question says it has only 28 leaves. According to uour explanations, it has 81 leaves. how is it possible?? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this

Re: [algogeeks] pls help

2011-08-10 Thread Brijesh Upadhyay
It could have a maximum of 81 leaves with the same '40' no of internal nodes so for any value between 28 to 81, it would have only 40 internal nodes -- 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] pls help

2011-08-10 Thread sagar pareek
Excatly why dont u just make a rough diagram in paper for binary and ternary trees and just see that each level has max of 2/3^i where 2/3 is for binary/ternary tree and i is level where root level is 0... then make a complete ternary tree and see why leaves with 28 in numbers have

Re: [algogeeks] pls help

2011-08-10 Thread vamshi vijay
@Sagar See at level 4, 81 leaf nodes are possible, since in question it has been given 28 leaf nodes, if i use just 10 nodes from level 3 (27 nodes), i can get 28 leaves, but if u observe the remaining 17 nodes in the 3rd level are also becoming leaf nodes, but in question given as 28 leaf

Re: [algogeeks] pls help

2011-08-10 Thread Pratz mary
ya ur right!!! On 10 August 2011 18:44, vamshi vijay vamshi1...@gmail.com wrote: @Sagar See at level 4, 81 leaf nodes are possible, since in question it has been given 28 leaf nodes, if i use just 10 nodes from level 3 (27 nodes), i can get 28 leaves, but if u observe the remaining 17

Re: [algogeeks] pls help

2011-08-10 Thread sagar pareek
gr8 work vamshi but total nodes will be 1+3+9+27+*2*(not 1)=42 On Wed, Aug 10, 2011 at 6:59 PM, Pratz mary pratima.m...@gmail.com wrote: ya ur right!!! On 10 August 2011 18:44, vamshi vijay vamshi1...@gmail.com wrote: @Sagar See at level 4, 81 leaf nodes are possible, since in

Re: [algogeeks] pls help

2011-08-10 Thread programming love
@sagar: Thanks again :) But my doubt is it'll have more than 28 leaf nodes when the ques clearly sayd it shud have 28 leaf nodes. @vamshi: I kind of agree with what you say. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this

Re: [algogeeks] Preprocessor Help !!

2011-08-10 Thread Abhishek Gupta
Answer 2) To prevent use of NULL with any other variable instead of 0(zero), it is set at void pointer. for ex, you cannot use in C like this, a=b+NULL; but, i think, in C++ you can do. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view

Re: [algogeeks] pls help

2011-08-10 Thread Gaurav Menghani
I am just increasing the size of the current string by one. So that a new character can be appended. On Sat, Aug 6, 2011 at 11:01 AM, Tushar Bindal tushicom...@gmail.com wrote: @gaurav didn't get this: Just to increase the size of the string by one. Then you can put any character at the the

[algogeeks] output help

2011-08-09 Thread Rohit Srivastava
#includestdio.h #includeconio.h int main() { struct value { int bit1:1; int bit3:4; int bit4:4; }bit={1,2,2}; printf(%d %d %d\n,bit.bit1,bit.bit3,bit.bit4); getche(); return 0; } the above code gives output : -1 2 2 any idea why??? -- You

Re: [algogeeks] output help

2011-08-09 Thread aditi garg
I think it is because bit1 is only 1 bit fwide and whn u initialize it to 1,since MSB is 1 it treats it as a negative integer...Plz correct me if i am wrong... On Tue, Aug 9, 2011 at 12:24 PM, Rohit Srivastava access2ro...@gmail.comwrote: #includestdio.h #includeconio.h int main() {

Re: [algogeeks] output help

2011-08-09 Thread sanjay ahuja
Int bit3:4 will be read as lower order 4 bits of bit3 and this will be treated as int (signed). Thus lower order bit of bit3 which is 2, are 0010 which is 2 try with 1) int bit3:2, output will be -2 2) unsigned int bit3:2, output will be 2. I hope it is cleared now On 8/9/11, Rohit Srivastava

Re: [algogeeks] output help

2011-08-09 Thread Rohit Srivastava
hey guys thanks got it!! On Tue, Aug 9, 2011 at 12:49 PM, sanjay ahuja sanjayahuja.i...@gmail.comwrote: Int bit3:4 will be read as lower order 4 bits of bit3 and this will be treated as int (signed). Thus lower order bit of bit3 which is 2, are 0010 which is 2 try with 1) int bit3:2,

  1   2   3   4   >