I think this program will work under the condition that the fault one is
heavier in weight, but the case is that it may be "lighter" OR "heavier".
Ok enough of php interview questions.
I need to pass a value to a function in .js file which has been linked in a
php file which in turn has been inclu
r more.
Can we have a program to find the egg, provided we have to weigh only three
times with a weighing machine with two pans,without using weights.
-murugesan
- Original Message -
From: "Matt Matijevich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, Au
murugesan, et al --
...and then murugesan said...
%
% In a group of 12 eggs only one is having weight less or more.
% Can we have a program to find the egg, provided we have to weigh only three
% times with a weighing machine with two pans,without using weights.
*Without* a balance scale? Hmmm.
ROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 2:55 AM
Subject: RE: [PHP] PHP Interview questions
>
> Can you do it programmitically (with pseudo-code)? After all, we need
> to
> keep this on-topic :)
>
>
>
> not pseudo code and it could definatle
Can you do it programmitically (with pseudo-code)? After all, we need
to
keep this on-topic :)
not pseudo code and it could definatley be cleaned up or done better
but her is my quick try at it
echo "We are walking to up to a fork in the road.";
$randval = rand(1, 500);
$randval2 = rand(1, 500
Oh manit is WAY too early for a question like this...
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 7:31 AM
To: Jay Blanchard; Curt Zirzow; PHP General
Subject: RE: [PHP] PHP Interview questions
[snip]
However, Curt does bring up a
[snip]
Which road would the other man point to if I asked him the way to
Utopia?
[/snip]
Can you do it programmitically (with pseudo-code)? After all, we need to
keep this on-topic :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
You come to a fork in the road. One fork takes to to Utopia (where you'd
like to go) and the other takes you to the Black Forest (where you
definitely do not want to go). There are two men standing there. You
know that one always tells the truth, the other always liesbut you
do not know
[snip]
However, Curt does bring up a good pointgiven a real world situation
create the decision logic (in code format) that demonstrates you grep
the path needed to arrive at a conclusion. As many of us model business
processes this is a valid method for determining familiarity with the
problem
[snip]
toggle_light(1);
sleep(120);
toggle_light(1);
toggle_light(2);
move('self', 'room/');
if ($lightbulb['temp'] > $room['temp']) {
echo "switch #1";
} elseif ($lightbulb['ison']) {
echo "switch #2";
} else {
echo "switch #3";
}
hm.. i had to keep it OT somehow :)
[/snip]
:7) Curt.
Ho
"Gabriel Guzman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote:
>
> > PHP is server side, so it obviously cannot control light bulbs. Use
> > javascript.
>
> maybe the lightbulbs are connected to the server :)
as seems to be the
* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]):
> On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote:
> > * Thus wrote Richard Baskett ([EMAIL PROTECTED]):
> > > on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
>
> unfortunately, this won't work... you need to loop through the
> lightb
... (maybe.., I don't know how long it
takes for a light bulb to cool down)
Martin
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2003 5:35 AM
To: Curt Zirzow; PHP General
Subject: Re: [PHP] PHP Interview questions
From: "Curt Zirzo
From: "Curt Zirzow" <[EMAIL PROTECTED]>
> toggle_light(1);
> sleep(120);
> toggle_light(1);
>
> toggle_light(2);
> move('self', 'room/');
>
> if ($lightbulb['temp'] > $room['temp']) {
> echo "switch #1";
> } elseif ($lightbulb['ison']) {
> echo "switch #2";
> } else {
> echo "switch #3";
>
On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote:
> * Thus wrote Richard Baskett ([EMAIL PROTECTED]):
> > on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
> >
> > > This smells like a trick question... Are the switches connected to the
> > > same light bulb? You've only mentioned one
On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote:
> PHP is server side, so it obviously cannot control light bulbs. Use
> javascript.
maybe the lightbulbs are connected to the server :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2003-08-26 at 10:36, Ray Hunter wrote:
> Everyone has given some great information. I have some ideas i would
> like to throw into the mix too.
>
> Here are some topics:
>
> 1. Questions regarding HTTP protocols. (SSL)
One that was we like to use is: Describe an HTTP header.
Most pe
* Thus wrote Richard Baskett ([EMAIL PROTECTED]):
> on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
>
> > This smells like a trick question... Are the switches connected to the
> > same light bulb? You've only mentioned one light bulb? 8)
> >
> > Cheers,
> > Rob.
> >
> >
> > On
CPT John W. Holmes wrote:
From: "Jay Blanchard" <[EMAIL PROTECTED]>
Also ask a couple of other questions that require thought, but have
nothing else to do with code. such as...
In one room you have 3 light switches, each connected to one light bulb
in another room. How many trips must you make
Everyone has given some great information. I have some ideas i would
like to throw into the mix too.
Here are some topics:
1. Questions regarding HTTP protocols. (SSL)
2. Questions regarding the server that you will be deploying on.
If you are deploying to apache or iis they should be familia
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
> This smells like a trick question... Are the switches connected to the
> same light bulb? You've only mentioned one light bulb? 8)
>
> Cheers,
> Rob.
>
>
> On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
>> Also ask a couple of
]
Subject: RE: [PHP] PHP Interview questions
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
> Also ask a couple of other questions that
[snip]
> In one room you have 3 light switches, each connected to one light
bulb
> in another room. How many trips must you make to determine which
switch
> is connected to which light bulb?
PHP is server side, so it obviously cannot control light bulbs. Use
javascript.
[/snip]
That really did ma
[snip]
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
[/snip]
I should have been clearer. There are 3 light bulbs, each connected to
one of 3 switches. Replies are coming in off-list as well. :) I have
more like thes
From: "Jay Blanchard" <[EMAIL PROTECTED]>
> Also ask a couple of other questions that require thought, but have
> nothing else to do with code. such as...
>
> In one room you have 3 light switches, each connected to one light bulb
> in another room. How many trips must you make to determine which
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
> Also ask a couple of other questions that require thought, but have
> nothing else to do with code. su
18:03
Para: Micheal Harris; [EMAIL PROTECTED]
Asunto: Re: [PHP] PHP Interview questions
From: "Micheal Harris" <[EMAIL PROTECTED]>
> I am in the process of hiring someone that needs to have extensive PHP and
> MySQL experience. Does anyone have any suggestions for interview
que
[snip]
I say you should send them to the list and let us grill them!! We'll
sort
out the riff-raff.. :)
[/snip]
Hear! Hear! :)
Also ask a couple of other questions that require thought, but have
nothing else to do with code. such as...
In one room you have 3 light switches, each connected to one
From: "Micheal Harris" <[EMAIL PROTECTED]>
> I am in the process of hiring someone that needs to have extensive PHP and
> MySQL experience. Does anyone have any suggestions for interview
questions?
> I have no PHP or MySQL experience, and come from a non-technical
background.
> I want the question
Even better than questions, make a one or two hour case study. Have them
demonstrate their ability.
1. How would you solve X problem?
2. What do you think about Y?
3. Write some code to solve Z?
A good place for ideas for case studies might be codewalkers, weberdev, or
php-editors.
There's a bi
30 matches
Mail list logo