I have had lots of problems with bears in my career working outdoors. Most of them were in the Alaska bush near salmon streams and in a mining camp where we had to shoot one.
I used to run into bears often in National Parks prior to about 1980 when they (NPS) changed their garbage management system. I had a consulting job in Yosemite for a couple of weeks. Bears walked past the bus stop at night, and showed up in our backcountry camps often. When I stayed at Curry Cabins there was the same bear in the dumpster every morning on my way to breakfast. After awhile he knew my voice and did not even look up.
I have encountered over 100 bears in the wild, but most of them were before about 1990. The problem bears at Lake Tahoe get air lifted to the range of mountains behind my house.