摘要:
[config]git config --global url."https://".insteadOf git:// git config --global core.editor vimgit config --global core.filemode false [create remote]... 阅读全文
摘要:
描述: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity shoul... 阅读全文
摘要:
问题描述:在一组字符串中,找到所有具有某个字符串前缀字符串,比如application、apple、eyes、cats等。如果要匹配的字符串是app,则符合匹配条件的有application、apple。思路:首先采用快排将所有字符串进行字典序排序,这样具有同种前缀的所有字符串都会排在一块,如果给定... 阅读全文
摘要:
Description:Count the number of prime numbers less than a non-negative number,n 1 int countPrimes(int n) { 2 int i,j; 3 bool *primer = malloc(... 阅读全文
摘要:
Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ... 阅读全文
摘要:
/*** Definition for singly-linked list.* struct ListNode {* int val;* struct ListNode *next;* };*/struct ListNode* reverseList(struct ListNode* head) ... 阅读全文
摘要:
工作中需要对网络传输的二进制配置文件进行md5运算生成校验码,以避免在网络传输中,文件的内容发生损坏和篡改。过程中大致是这样的:1.服务端c++,请求端java;2.请求端POST请求服务器上的某个文件,要求传输到请求端;3.向服务端请求文件时,服务端需要对要传输的文件内容作md5加密,生成32字符... 阅读全文
摘要:
最近在公司需要开发服务器到console平台的http接口,测试暂且用curl对开发好的http接口进行测试,测试的要求主要有几点:1.发送POST请求,并携带部分请求字段: curl -d "account_id=1623235&nick_name=ddc" http://172.17.15.51... 阅读全文