2019年2月11日

Code War每天一练第三天

摘要: Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the longest possible, containing distinct letters, each taken 阅读全文

posted @ 2019-02-11 09:35 六月飘雪 阅读(108) 评论(0) 推荐(0) 编辑

2019年2月10日

Code War每天一练第二天

摘要: Given an array of one's and zero's convert the equivalent binary value to an integer. Eg: [0, 0, 0, 1] is treated as 0001 which is the binary represen 阅读全文

posted @ 2019-02-10 09:07 六月飘雪 阅读(123) 评论(0) 推荐(0) 编辑

2019年1月30日

Code War每天一练第一天

摘要: 分析: 将DNA的‘A'转换成’T‘,’T'转换成’A‘,将‘G’转换成‘C',将’C‘转换成’G‘ strdup()是将dna的副本拷贝到p,然后对p进行操作; 开始的时候用malloc/free,free不能对有值的指针进行两次释放否则会报错。 阅读全文

posted @ 2019-01-30 14:16 六月飘雪 阅读(196) 评论(0) 推荐(0) 编辑

导航