摘要: char * getHint(char * secret, char * guess){ if (secret == NULL || guess == NULL) { return "0A0B"; } int len, i, bulls=0, cows=0; int nums1[10]={0}, n 阅读全文
posted @ 2020-07-22 13:51 yushimeng 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 目前没通过;https://leetcode-cn.com/problems/3sum/ /** * Return an array of arrays of size *returnSize. * The sizes of the arrays are returned as *returnCol 阅读全文
posted @ 2020-07-18 23:56 yushimeng 阅读(113) 评论(0) 推荐(0) 编辑
摘要: char * longestCommonPrefix(char ** strs, int strsSize){ char ch; int len=0, i, j; if (strsSize < 1) {return "";} len = strlen(strs[0]); for (i=1; i<st 阅读全文
posted @ 2020-07-18 23:10 yushimeng 阅读(108) 评论(0) 推荐(0) 编辑
摘要: int romanToInt(char * s){ int count = 0; while (*s) { switch(*s) { case 'I': if (*(s+1) == 'V' || *(s+1) == 'X') count -= 1; else count += 1; break; c 阅读全文
posted @ 2020-07-18 22:53 yushimeng 阅读(108) 评论(0) 推荐(0) 编辑
摘要: char * intToRoman(int num){ int symInt[13]={1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}; char *symStr[13]={"M", "CM", "D", "CD", "C",&# 阅读全文
posted @ 2020-07-18 22:46 yushimeng 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 给你 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 说明:你不能倾斜容器,且 n 的值至少为 2。 阅读全文
posted @ 2020-07-18 22:24 yushimeng 阅读(96) 评论(0) 推荐(0) 编辑
摘要: ./configure -D NGX_PROCESS_NAME=nginx-new-name 1 #define __PRINT_FORMAT(name) #name": " 2 #define PRINT_FORMAT(name) __PRINT_FORMAT(name) 3 4 p = ngx_ 阅读全文
posted @ 2020-07-10 15:55 yushimeng 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 根据input_ip & net_mask == seted_ip & net_mask 来判断。 详见代码: 1 typedef struct { 2 ngx_uint_t ip[4]; 3 ngx_uint_t mask[4]; 4 } ngx_stream_eth_netSegment_t; 阅读全文
posted @ 2020-07-09 19:59 yushimeng 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-03 11:25 yushimeng 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 版本号: Google Chrome 已是最新版本版本 83.0.4103.106(正式版本) (64 位) 现象: 浏览器与流媒体webrtc建立P2P链接,同事的两台电脑都可以正常建立连接并收到流媒体的流。但是我的电脑上谷歌浏览器就是建立不了连接。然后报错PeerConnection的iceSe 阅读全文
posted @ 2020-06-22 17:32 yushimeng 阅读(904) 评论(0) 推荐(0) 编辑