HSK10+
dānjīngjiélǜ
to rack one's brains
殚精竭虑 (殫精竭慮)
to exhaust one's thoughts and ingenuity (idiom); to think sth through thoroughly; to rack one's brains; to leave no stone unturned
CC-CEDICT