Skip to main content
zdd's user avatar
zdd's user avatar
zdd's user avatar
zdd
  • Member for 12 years, 2 months
  • Last seen more than a week ago
awarded
comment
Array whose values are the product of every other integer
@footy, I apologies, and I didn't realize the fact that some numbers might be zero, thanks!
awarded
comment
Array whose values are the product of every other integer
bad algorithm, the better way is to multiply all number in array, then divide the number in current index to calculate the result. This is a algorithm question, and I don't think the interviewer will really focus on your coding style.
awarded
revised
Loading…
revised
Loading…
suggested
Approve
awarded
revised
D3D9 leaks if any?
Add tag directx
Loading…
suggested
Approve
awarded
comment
comment
Cleaning a text field
you cannot merge it go a single if.
answered
Loading…
comment
Removing duplicates from an unsorted linked list
I think I understand your code now, you are right! but I have another version with a little difference, we can save a pointer, please see my answer.
comment
Removing duplicates from an unsorted linked list
OK, take an unsorted list for example, 1->1->2->1->3->2->2->3, you code want to get a result of 1->2->3, right?
comment
Removing duplicates from an unsorted linked list
It seems your method only remove the adjacent duplicate elements. is that the case?
revised
Reversing a linked list
deleted 15 characters in body
Loading…