Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gimme some problems ...

Status
Not open for further replies.

neo13

Programmer
Oct 1, 2001
5
0
0
IN
hi,
i am looking for a site where i can find good programming problems to help me prepare for job interviews.Any help???
-- if u know of some site offering programming contests kindly let me know.thanking in advance:)
-- neo
 
Want a problem, I got one small for you (it's not exactly C but rather a pseudo-code using some pointers which I still have a bit of a hard time with it). I have to find the value returned by Subject().

Define Compute_DA(x) {
temp = (x + 1) / 4
if (temp >= 1) then
return x * Compute_DA(temp+1)
else
return x
}

Define Subject() {
LookingFor = "Job"
Job = 'Good'
LaserRegistration = "Ultimate"
Programming = Get Pointer("Job")
Answer = Programming->
Test = 'Job="' + LaserRegistration + 'Answer"'
Evaluate(Test)
Solution = Job + "=" + Compute_DA(7)
return Solution
}


My answer is: Good=42 but I'm not 100% positive about it. Anyone want to confirm it (or tell me what might be the other answer if not)?

Thanx all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top