苦思冥想

cudgel one's brains, have a bee in one's head

kǔ sī míng xiǎng ㄎㄨˇ ㄙ ㄇㄧㄥˊ ㄒㄧㄤˇ