Value of g at height h from the earth's surface is given by
gh = GM/(R + h)2
Where, G= gravitational constant
R = radius of the earth
h = height h from the surface of earth.
or gh = GM/R2(1 + h/R)2 = g/(1 + h/R)2
where, g = acceleration due to gravity on the earth's surface.
so height say 'h' at which gh = 1% of g = g/100 is given by
g/100 = g/(1 + h/R)2
or 100 = (1 + h/R)2
now substitute R to find the value of 'h'
Similarly, to work out for second problem take gh = g - (g/1000) and proceed.