Re: [algogeeks] BFS

2012-08-05 Thread jalaj jaiswal
at http://groups.google.com/group/algogeeks?hl=en. -- Regards, Jalaj Jaiswal Software Engineer, Zynga Inc +91-9019947895 * * FACEBOOK http://www.facebook.com/jalaj.jaiswal89 LINKEDINhttp://www.linkedin.com/profile/view?id=34803280trk=tab_pro -- You received this message because you are subscribed

Re: [algogeeks] 4Sum

2012-06-19 Thread jalaj jaiswal
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. -- Regards, Jalaj Jaiswal Software Engineer

Re: [algogeeks] 4Sum

2012-06-17 Thread jalaj jaiswal
The solution which hemesh gave was solution to 3SUM hard problem the best solution for which can be achieved in n^2 . And the original question is a kind of 4SUM hard problem for which best possible solution i think is again n^3 and Amol what you told is not n^3 , finding all triplets will itself

[algogeeks] amazon

2011-02-22 Thread jalaj jaiswal
be the answer ? -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT 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

Re: [algogeeks] amazon

2011-02-22 Thread jalaj jaiswal
the file where you wrote the code ? And above all which programming language are we talking ? You hit send button too early I guess :) On 22-Feb-2011 7:39 PM, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: Is there any way by which a data element in a file is accessible by another file

[algogeeks] intel puzzle

2011-02-22 Thread jalaj jaiswal
Think of the 8 vertices of a given cube. You are allowed to join three vertices to form a triangle. How many such unique acute triangles can you make ?? -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT ALLAHABAD -- You received this message

[algogeeks] two-D array

2011-02-22 Thread jalaj jaiswal
Given a 2-D array of size N x N, where N is odd, print its elements in zigzag fashion- If INPUT- a b c d e f g h i j k l m n o p q r s t u v w x y OUTPUT- a f b c g k p l h d e i m q u v r n j o s w x t y -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems

Re: [algogeeks] Re: intel puzzle

2011-02-22 Thread jalaj jaiswal
answer is 8 ,,, duno how On Wed, Feb 23, 2011 at 12:31 AM, Sundi sundi...@gmail.com wrote: Is it not 8C3 = 56 On Feb 22, 9:55 pm, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: Think of the 8 vertices of a given cube. You are allowed to join three vertices to form a triangle. How many

[algogeeks] matrix(amazon)

2011-02-18 Thread jalaj jaiswal
Q-1)does any 1 know how to find a largest rectangular sub matrix in a binary matrix ( matrix contains only 0 1) Q-2) largest square submatrix in a matrix which contains both +ve and -ve elements... what if we have to find largest square sub-matrix of size k -- With Regards, *Jalaj Jaiswal

Re: [algogeeks] Array Question

2011-02-17 Thread jalaj jaiswal
://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT 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

Re: [algogeeks] Byte or Bite...Its byte Array

2011-02-15 Thread jalaj jaiswal
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. -- With Regards, *Jalaj Jaiswal

Re: [algogeeks] Re: question at K10

2011-02-15 Thread jalaj jaiswal
at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] Re: interview quest..

2011-02-15 Thread jalaj jaiswal
at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] Binary Tree Amazon

2011-02-14 Thread jalaj jaiswal
@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. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT ALLAHABAD -- You

Re: [algogeeks] Binary Tree Amazon

2011-02-14 Thread jalaj jaiswal
. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT 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 unsubscribe from this group

Re: [algogeeks] Special Binary Tree Again

2011-02-14 Thread jalaj jaiswal
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems B.Tech IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Special Binary Tree Again

2011-02-14 Thread jalaj jaiswal
: explain algo instead of writing the code. thanx On Mon, Feb 14, 2011 at 9:28 PM, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: @tushar that would modify the tree structure here is a different approach int count=0; //global void modified_inorder(node *root){ if(root!=NULL

Re: [algogeeks] searching

2011-02-14 Thread jalaj jaiswal
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. -- With Regards, *Jalaj Jaiswal

[algogeeks] numbers

2011-02-10 Thread jalaj jaiswal
) -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT 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

Re: [algogeeks] Re: array problem

2011-02-10 Thread jalaj jaiswal
, 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. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco

Re: [algogeeks] amazon

2011-02-09 Thread jalaj jaiswal
. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT 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 unsubscribe

Re: [algogeeks] amazon

2011-02-09 Thread jalaj jaiswal
, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: yeah .. the input will bw given that only for which solution is possible On Wed, Feb 9, 2011 at 1:18 PM, Jitesh Kumar jitesh2...@gmail.comwrote: Can you give me solution for N=1 and N=2? I don't think that it is possible for every N. -- You

Re: [algogeeks] amazon

2011-02-09 Thread jalaj jaiswal
options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm

[algogeeks] array problem

2011-02-09 Thread jalaj jaiswal
sort the input array. only following operations on array is allowed: 1)get(index) -gets the element at that index 2)reverse(int start,int end) - example reverse(1,3) for the array [1,2,3,4,5] will return [1,4,3,2,5] better then nlogn -- With Regards, *Jalaj Jaiswal* (+919019947895) Software

Re: [algogeeks] Re: array(amazon microsoft)

2011-02-08 Thread jalaj jaiswal
. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT 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 unsubscribe from

[algogeeks] amazon

2011-02-08 Thread jalaj jaiswal
3 4 7 1 6 1 4 -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT 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

[algogeeks] array(amazon microsoft)

2011-02-07 Thread jalaj jaiswal
You are given a array with rows sorted and column sorted. You have to print entire array in sorted order. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed

Re: [algogeeks] array(amazon microsoft)

2011-02-07 Thread jalaj jaiswal
]. OR Please provide a e.g. array which need to be printed if I am wrong. Thanks Regards, Rajiv Podar On Mon, Feb 7, 2011 at 2:13 PM, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: You are given a array with rows sorted and column sorted. You have to print entire array in sorted order

Re: [algogeeks] array(amazon microsoft)

2011-02-07 Thread jalaj jaiswal
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed to the Google

Re: [algogeeks] array(amazon microsoft)

2011-02-07 Thread jalaj jaiswal
, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: isn't mnlog(mn)(simple quick sorting the entire array) better then mnlog(m+n) On Mon, Feb 7, 2011 at 2:46 PM, sunny agrawal sunny816.i...@gmail.comwrote: one of the possible methods is to use concept same as EXTRACT-MIN of heaps do

Re: [algogeeks] Tree problem(Amazon)

2011-02-07 Thread jalaj jaiswal
? On 2/7/11, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: you are given a bst where each node has a int value , parent pointer , and left and right pointers , write a function to find a path with a given sum value. Path can go from left subtree tree , include root and go to right tree

Re: [algogeeks] Re: o/p

2011-02-07 Thread jalaj jaiswal
. You must be using a little-endian hardware, but the results would be different on a big-endian system. Dave On Feb 6, 11:03 am, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: the logic is :- int is stored in 32 bits in our systems 300 is 0001 00101100 as ptr

Re: [algogeeks] Re: o/p

2011-02-07 Thread jalaj jaiswal
on ubuntu ) On Mon, Feb 7, 2011 at 10:10 PM, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: @ dave .. you r correct :) On Mon, Feb 7, 2011 at 9:41 PM, Dave dave_and_da...@juno.com wrote: @Jalaj: The results depend on the endianness of the addressing scheme on your hardware. (See http

Re: [algogeeks] Amazon Interview question

2011-02-07 Thread jalaj jaiswal
, Feb 7, 2011 at 10:59 PM, Manmeet Singh mans.aus...@gmail.comwrote: thr is some error in algo On Mon, Feb 7, 2011 at 10:48 PM, abc abc may.i.answ...@gmail.com wrote: I would like to have pseudo for this . On Mon, Feb 7, 2011 at 11:12 AM, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote

Re: [algogeeks] Re: array(amazon microsoft)

2011-02-07 Thread jalaj jaiswal
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Software developer, Cisco Systems Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed to the Google

[algogeeks] amazon question

2011-02-06 Thread jalaj jaiswal
Write a function to check whether the Binary Tree is mirror structure. True (A (B (C,D), E( F,G))) or (A (B (C)), D(E))) False (A (B)) or (A (B,C(D,E))) -- tree is represented in string form as given above With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT ALLAHABAD

Re: [algogeeks] Re: Amazon interview quesiton

2011-02-06 Thread jalaj jaiswal
, 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. -- With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate

Re: [algogeeks] o/p

2011-02-06 Thread jalaj jaiswal
. -- With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT 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 unsubscribe from this group, send email

Re: [algogeeks] o/p

2011-02-06 Thread jalaj jaiswal
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you

Re: [algogeeks] Re: Amazon interview quesiton

2011-02-06 Thread jalaj jaiswal
? On Feb 6, 2011 7:31 AM, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: My solution in more detail (in words ):- start from the end if you get an L make a node with data L and push its pointer in stack, if you get a M pop two elements from stack make them left and right children of M

[algogeeks] array

2011-02-06 Thread jalaj jaiswal
). If no such element exists for Input[i] then output[i]=0. Eg. Input: 1 5 7 6 3 16 29 2 7 Output: 0 3 6 3 2 2 2 0 0 -- With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

[algogeeks] Re: array

2011-02-06 Thread jalaj jaiswal
; } if (IN[i] stack.top()) { OUT[i] = stack.top(); stack.push(IN[i]; continue; } } On Sun, Feb 6, 2011 at 10:59 PM, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: Input: A unsorted array of size n. Output: An array of size n. Relationship: elements of input array and output

[algogeeks] Tree problem(Amazon)

2011-02-06 Thread jalaj jaiswal
/ \/ \ 0 2 6 11 so to find 16 we say it is 1 to 5 to 10 10 to 6 try make use of parent pointer and find a solution :-o -- With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks] Amazon Interview question

2011-02-06 Thread jalaj jaiswal
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. -- With Regards, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you

Re: [algogeeks] Re: C++ Riddle

2011-02-06 Thread jalaj jaiswal
, *Jalaj Jaiswal* (+919019947895) Final Year Undergraduate, IIIT 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 unsubscribe from this group, send email to algogeeks

Re: [algogeeks] Modified Binary Search

2010-08-08 Thread jalaj jaiswal
. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr

Re: [algogeeks] Re: Modified Binary Search

2010-08-08 Thread jalaj jaiswal
, *Jalaj Jaiswal* (+919026283397) Final Year Undergraduate, IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks

Re: [algogeeks] Re: amezan interview.........

2010-08-08 Thread jalaj jaiswal
://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from

Re: [algogeeks] bitwise operator confusion

2010-08-08 Thread jalaj jaiswal
, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, *Jalaj Jaiswal

Re: [algogeeks] Re: interview-question

2010-08-04 Thread jalaj jaiswal
...@gmail.comwrote: level of the tree is given or not ? and where do we have to output V , just at the node we get it or at the root ? On Aug 3, 1:56 pm, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: given a complete binary tree (either a node is a leaf node or has two children) every leaf

Re: [algogeeks] 1's counting

2010-08-04 Thread jalaj jaiswal
. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You

Re: [algogeeks] 1's counting

2010-08-04 Thread jalaj jaiswal
+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed

[algogeeks] interview-question

2010-08-03 Thread jalaj jaiswal
given a complete binary tree (either a node is a leaf node or has two children) every leaf node has value 0 or 1. every internal node has value as the AND gate or OR gate. you are given with the tree and a value V. you have to output the minimum number of flips (AND to OR or OR to AND) if the

Re: [algogeeks]

2010-08-01 Thread jalaj jaiswal
, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge

[algogeeks] algorithm

2010-07-31 Thread jalaj jaiswal
given a rand5 function which generates numbers from 1 to 5 with equal probability.. give an algorithm which uses rand5 function and generates numbers from 1 to 7 with equal probability -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you

Re: [algogeeks] Amazon question

2010-07-31 Thread jalaj jaiswal
. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr

Re: [algogeeks] Re: number of BST's

2010-07-31 Thread jalaj jaiswal
email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal

Re: [algogeeks] minimum window containing charecters

2010-07-31 Thread jalaj jaiswal
options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge

Re: [algogeeks] Amazon Placement Question

2010-07-29 Thread jalaj jaiswal
://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group

Re: [algogeeks] Re: Merging of Binary trees

2010-07-26 Thread jalaj jaiswal
at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com

Re: [algogeeks] Re: Merging of Binary trees

2010-07-26 Thread jalaj jaiswal
=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email

Re: [algogeeks] Re: BST

2010-07-25 Thread jalaj jaiswal
...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] memory allocation

2010-07-25 Thread jalaj jaiswal
to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you

Re: [algogeeks] pointer and array

2010-07-24 Thread jalaj jaiswal
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] You have 2 arrays of integer. You have to write a function, which take an integer as input and returns bool. Example array 1 has {1,5,10} array 2 has {2,5,9}. Func(3) should return t

2010-07-24 Thread jalaj jaiswal
hmm. thnxx for the case On Sat, Jul 24, 2010 at 3:17 PM, Algoose chase harishp...@gmail.com wrote: @jalaj TRY A:16, 12, 10, 6 ,2 B:11, 10,7, 2, 1 num: 26 On Sat, Jul 24, 2010 at 5:13 AM, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: Take two pointers both at the start of each

[algogeeks] algorithm

2010-07-24 Thread jalaj jaiswal
is -2 -4 So Stream = 0 1 2 3 -2 -2 -4 Sorted Stream would be -4 -2 0 1 2 3 4 and FIND MEDIAN returns 1 -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group

Re: [algogeeks] Re: graph

2010-07-18 Thread jalaj jaiswal
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] Array Problem

2010-07-16 Thread jalaj jaiswal
to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you

Re: [algogeeks] Re: sort in O(n) array which increases and then decreased and then increases...5,10,15,14,9,4,1,3,6,7,11,9,8,2

2010-07-15 Thread jalaj jaiswal
. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr

Re: [algogeeks] b tree:

2010-07-15 Thread jalaj jaiswal
...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Re: Difference b/w two elements in a array

2010-07-15 Thread jalaj jaiswal
, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because

Re: [algogeeks] Stock prices.

2010-07-15 Thread jalaj jaiswal
to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj

Re: [algogeeks] Re: sort in O(n)

2010-07-12 Thread jalaj jaiswal
://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from

Re: [algogeeks] graph:

2010-07-11 Thread jalaj jaiswal
. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks

Re: [algogeeks] sort in O(n)

2010-07-11 Thread jalaj jaiswal
. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr

Re: [algogeeks] Difference b/w two elements in a array

2010-07-11 Thread jalaj jaiswal
/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email

Re: [algogeeks] Sort

2010-07-10 Thread jalaj jaiswal
://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from

Re: [algogeeks] data structure for large no stroage

2010-07-10 Thread jalaj jaiswal
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks] Graphs.

2010-07-09 Thread jalaj jaiswal
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] amazon:-

2010-07-09 Thread jalaj jaiswal
%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] Re: adobe problem---array

2010-07-08 Thread jalaj jaiswal
at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com

Re: [algogeeks] microsoft interview(numbers)

2010-07-08 Thread jalaj jaiswal
options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge

Re: [algogeeks] HIEGHT

2010-07-08 Thread jalaj jaiswal
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] adobe problem---array

2010-07-07 Thread jalaj jaiswal
result = 0101, how to proceed further..?? Best Regards Ashish Goel Think positive and find fuel in failure +919985813081 +919966006652 On Mon, Jul 5, 2010 at 7:18 PM, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: Given an array of integers where some numbers repeat 1 time, some

[algogeeks] adobe problem---array

2010-07-05 Thread jalaj jaiswal
Given an array of integers where some numbers repeat 1 time, some numbers repeat 2 times and only one number repeats 3 times, how do you find the number that repeat 3 times. can xor do something here ?? -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received

Re: [algogeeks] Re: amazon

2010-07-05 Thread jalaj jaiswal
. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received

Re: [algogeeks] sum of subsequence

2010-07-05 Thread jalaj jaiswal
+919966006652 On Sun, Jul 4, 2010 at 11:46 PM, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: find the subsequence in an array which sum to k -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google

Re: [algogeeks] Longest palindrome in a given str (less than O(n^2) )

2010-07-05 Thread jalaj jaiswal
...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group

Re: [algogeeks] 2_D matrix

2010-07-05 Thread jalaj jaiswal
On Sun, Jul 4, 2010 at 3:13 PM, jalaj jaiswal jalaj.jaiswa...@gmail.comwrote: @amir ..could you please provide a rough pseudocode for it... :-? On Sun, Jul 4, 2010 at 3:12 AM, Amir hossein Shahriari amir.hossein.shahri...@gmail.com wrote: @jalaj: oops! i'm sorry but by diameter i meant

Re: [algogeeks] merge sorted lists

2010-07-05 Thread jalaj jaiswal
email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you

[algogeeks] numbers

2010-07-04 Thread jalaj jaiswal
: ,0111,0011,1110,,10111 then your longest sequence has 5 ones but the longest number has only 4 ones.(so finding highest num wnt wrk) -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] 2_D matrix

2010-07-04 Thread jalaj jaiswal
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google

Re: [algogeeks] Re: merge sorted lists

2010-07-04 Thread jalaj jaiswal
...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] graphs again

2010-07-04 Thread jalaj jaiswal
for both the purposes. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group

[algogeeks] 0 and 1 again :)

2010-07-04 Thread jalaj jaiswal
that satisfies the problem is 110100 My approach: in 1 go count the number of zero's and 1's .. find which is smaller then in the next scan take two count1 and count0 and start fetching o's and 1's upto you get them to the smaller count(calculated earlier) better answers ?? -- With Regards, Jalaj Jaiswal

Re: [algogeeks] Yahoo

2010-07-04 Thread jalaj jaiswal
+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google

[algogeeks] shift operators

2010-07-04 Thread jalaj jaiswal
how do we perform left shift and right shift on negative numbers.. for eg -13 -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] sum of subsequence

2010-07-04 Thread jalaj jaiswal
find the subsequence in an array which sum to k -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com

Re: [algogeeks] Re: array

2010-07-03 Thread jalaj jaiswal
and incrementing count will waste a lot of memory On Fri, Jul 2, 2010 at 11:13 PM, Dave dave_and_da...@juno.com wrote: @Jalaj. I don't understand how your comment contributes to the discussion. Please explain. Dave On Jul 2, 10:56 am, jalaj jaiswal jalaj.jaiswa...@gmail.com wrote: for count

Re: [algogeeks] microsoft interview(numbers)

2010-07-03 Thread jalaj jaiswal
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- With Regards, Jalaj Jaiswal +919026283397 B.TECH IT IIIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups

  1   2   >