Scope might be diferent if u define static in function . it will be
intilaized once when u call it first time but scope of that variable will
be limited to that function only but they live throught out the programe
though scope is limited
in case of global it can be used in ny function
On Sat,
i think
we need to form suffix array of the given string with one extra information
tht is frm which index we are considerin suffix
then sort those uffixe pointres
after tht single scan wud do the job
thanks
rajat ahuja
On Wed, Jun 29, 2011 at 10:23 PM, Swathi chukka.swa...@gmail.com wrote
You have to paint N boards of length {B1, B2, B3… BN}. There are K painters
available and you are also given how much time a painter takes to paint 1
unit of board. You have to get this job done as soon as possible under the
constraints that any painter will only paint continuous sections of
meter so it is directly equal to length
so we hav to make time and ans is 13
On Mon, Apr 4, 2011 at 3:11 PM, Rakib Ansary Saikot
ansaryfantas...@gmail.com wrote:
I didnt quite get this problem. Sample case?
On 4/4/11, rajat ahuja catch.rajatah...@gmail.com wrote:
You have to paint N
, Apr 4, 2011 at 3:20 PM, rajat ahuja
catch.rajatah...@gmail.comwrote:
like u hav boards of length of length
7 2 6 9 4 and u hav 3 painters who can work ||ly
so now
one way to distribute is
(7 )(2 6 9) (4) so time in ths case is 17
suppose we do (7 2)(6)(9 4) time in ths case is 13
or i can
Given 3 strings of only lowercase letter you have to count the number of
ways you can construct the third string by combining two subsequences from
the first two strings.
After deleting 0 or more characters from a string we can get its
subsequence. For example “a”, “b”, “c”, “ab”, “ac”, “bc”
12
and
f(1,2)
On Sat, Feb 5, 2011 at 12:46 AM, priya mehta priya.mehta...@gmail.comwrote:
#include stdio.h
#define f(a,b) a*##*b
#define g(a) *#*a
#define h(a) g(a)
*int* main()
{
printf(%s\n,h(f(1,2)));
printf(%s\n,g(f(1,2)));
*return* 0;
)
so here f macor wil nt get called
as it has convereted into string :)
cheers
On Sat, Feb 5, 2011 at 12:50 AM, priya mehta priya.mehta...@gmail.comwrote:
thats amazing :) :)
but i wanted to know the explanation dear.
On Sat, Feb 5, 2011 at 12:49 AM, rajat ahuja
catch.rajatah
nyone like to post solution of ths problem,
On Wed, Dec 22, 2010 at 10:28 PM, Ankur Khurana ankur.kkhur...@gmail.comwrote:
saurabh , asking for a better sol. is not a crime. rest everybody is
intelligent.
On Wed, Dec 22, 2010 at 10:27 PM, Saurabh Koar saurabhkoar...@gmail.com
saurabh .. i would like to know your solution
can u please tell me ,, i want to know
On Wed, Dec 22, 2010 at 11:50 PM, juver++ avpostni...@gmail.com wrote:
Please don't use abbreviated words in your posts. Speak in pure English.
--
You received this message because you are subscribed to the
yup callin destructor ,, deallocate memory of resources allocated
by object
like heap memory of pointer ,,
On Sun, Aug 15, 2010 at 3:58 PM, amit amitjaspal...@gmail.com wrote:
I have read that Delete is more safer than free as Delete calls the
destructor of the object but i dont get
x1+x2+x3+x4+x5+x6+x7=23,,,
noe no of solution is,,, of equation is,,
n+r-1C(COMBINATION )r-1 (n identical items to be distributed into R grups)
so ,, ans 23+7-1c7-1;(identical)
if unidentical case,
then each each cholate wud hav 7 options,,
so ,, ans -- 7^23 (different)
On Tue, Jun 22, 2010
12 matches
Mail list logo