摘要:
1 package chapter1; 2 /* 3 * Q:given a string ,compression the string by duplicate char 4 * if compressed string not short than orignal,then return or 阅读全文
摘要:
package chapter1; /* * Q:given a string and it's real length,replace blank of string to %20 * Assume string has sufficient free space at the end * E:i 阅读全文
摘要:
package chapter1; /* * Q:given two string,check one of them can be got by another permutation again * E:"abcdb","dcbab"->true * S1:check the char and 阅读全文
摘要:
1. 基础题 2. 网络编程 3. 人工智能 1. 基础题 # 2020-02-20 #'''#ip地址转整数def v(addr): id=[int(x)for x in addr.split('.')] s=sum(id[i]<<[24,16,8,0][i] for i in range(4) 阅读全文