This plant occurs in arctic and cool temperate areas from Alaska east to Newfoundland and southern Greenland , and south at high altitudes to northern California , Colorado , and the Black Hills of South Dakota in the west , and locally south to northern New York in the east .