Re: [閒聊] 每日leetcode

作者: Neuenmuller (蘇菲・諾伊恩謬拉)   2024-07-12 06:24:35
1190. Reverse Substrings Between Each Pair of Parentheses
今天聽到客戶公司裁了快兩千人覺得應該要回來寫Leetcode了
以防萬一
原本作法跟上面幾個都八成像所以就不講了,
就一個vector的string,每次遇到')'就把最尾端的string pop出來之後
反轉塞回去vector最尾
但是後來發現有更快一點的作法
而且還是我去年寫的,我好像越變越爛欸
不然就是我從哪邊抄來的,只是我忘記了
作者: sustainer123 (caster)   2024-07-12 06:42:00
美國工作484還很難找R 我聽兩個朋友找不到實習
作者: Neuenmuller (蘇菲・諾伊恩謬拉)   2024-07-12 07:46:00
跟之前比好像沒有好多少

Links booklink

Contact Us: admin [ a t ] ucptt.com