Re: [algogeeks] [Algorithm] Get Target

2013-04-09 Thread prankur gupta
u get the inorder, convert it to post order and evaluate the expression. Thanks. On Thu, Apr 4, 2013 at 2:05 AM, atul anand wrote: > are we allowed to use operation only once or multilpe times? > > > On Fri, Mar 22, 2013 at 6:27 AM, prankur gupta wrote: > >> Hi All, &g

[algogeeks] [Algorithm] Get Target

2013-04-03 Thread prankur gupta
Hi All, Could you help me this question. This was asked at Yelp Interview. Given 6 integers and 1 target value, write a function to get the target value using 6 integers with any on these operations +,*,-,/ Thanks -- PRANKUR GUPTA Masters Student (CSE) State University of New York Stony

Re: [algogeeks] Re: Minimum sum of Array

2013-01-09 Thread prankur gupta
e 0 or greater > > > than 0. > > > > > Here > > > > > > > is couple of test cases > > > > > > > 1. [ 1 , 2 , 3 , 2 , 4 ]. Changing the sign [ -1 , -2 , -3 , > 2 , > > > 4 ] > > > > > so > > > > > >

Re: [algogeeks] Problem

2012-11-02 Thread prankur gupta
@arun : Hi, but how come are you using this particular structure then. And i'm not sure about that approach, i think there can be some boundary cases where it can fail. On Thu, Nov 1, 2012 at 8:27 AM, Arun Kindra wrote: > @prankur > can we do in this manner, first find the middle o

Re: [algogeeks] Problem

2012-10-31 Thread prankur gupta
thm 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. > -- PRANKUR G

[algogeeks] Deterministic Selection Algorithm

2012-06-19 Thread Prankur
Hi all, I've been trying to implement http://www.ics.uci.edu/~eppstein/161/960130.html the explained algorithm. I have implemented it also, but I don't know why it sometimes gives incorrect answer. I also looked to the already implemented version available on net https://www.rsndev.com/blog/22 But

[algogeeks] Re: interview HARD problem

2012-06-05 Thread Prankur
But then all these words ta, om ,., amoma all should be available in the dictionary i.e they should be valid words. On Jun 5, 11:32 am, partha sarathi Mohanty wrote: > no > if ta/om/to/am/ba/batot/amoma are words then it should be the one. no > 5*2 > 3*3 > > > > > > > > On Tue, Jun 5, 20