Skip to content

Instantly share code, notes, and snippets.

View suyuanhxx's full-sized avatar
🏠
Working from home

Tedrick suyuanhxx

🏠
Working from home
View GitHub Profile
@suyuanhxx
suyuanhxx / linkedlist.go
Last active April 25, 2018 07:01
singly link list
package main
import "fmt"
/**
* Definition for singly-linked list.
*/
type ListNode struct {
Val int
Next *ListNode
public class LockTest {
@Autowired
private LockService lockService;
@Test
public void testGetKey throws Exception {
for (int i = 0; i < 10; i++) {
final int request = i;
new Thread(() -> {
import java.util.UUID;
import java.util.concurrent.TimeUnit;
/**
* Created by huangxx on 2017/6/27.
*/
@Service
@Log4j2
public class LockKeyService {