logo头像

不忘初心,奋力前行

copy list with random pointer

题目描述A linked list is given such that each node contains an additional random pointer which could point to any node in...

single word ii

single-number-iiGiven an array of integers, every element appears three times except for one. Find that single one. N...

gas station

gas stationThere are N gas stations along a circular route, where the amount of gas at station i isgas[i]. You have ...

wordbreak

word breakGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated seq...