摘要:
// A O(n^2) time and O(1) space program to find the longest palindromic substring#include // A utility function to print a substring str[low..high]voi... 阅读全文
摘要:
close: int close(int fd) 并非马上关闭fd对应的socket连接,而是对其文件描述符的引用计数减1,只有当fd的引用计数为0时,才关闭连接,对应fork复制的socket描述符,无论时父进程还是子进程都需要调用close才能正确关闭连接。shutdown: int shutd... 阅读全文
摘要:
Total Accepted: 16020 Total Submissions: 103330Given a list of non negative integers, arrange them such that they form the largest number.For example,... 阅读全文
摘要:
An agent has a value that can be retrieved directly with deref,However an Actor encapsulates state but provides no direct means to access it.An Actor ... 阅读全文