appearance is looking same, But it is very dangerous to change like that,
As a good programmer, we can't use this tricks.
Why? what is the problem with it?
let assume you have the linked list (let linked list starting address =1165), but somewhere else you use this via pointers ( you hold the value of head of the pointer ==> you have 1165 in your hand ), By this trick your starting address is changed ( value of it ="A" only, but the address now present the value "A" is different. )
As per my knowledge, we can't answer O(1), ( Don't say, in the question it is not mention that , we use the values of this list is somewhere else. )
if still you are thinking it is O(1), it's upto you.