摘要: Given two strings a and b of equal length, what's the longest string (s) that can be constructed such that it is a child of both? A string x is said t 阅读全文
posted @ 2018-03-03 14:02 TRACYlegolas 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Some viruses replicate by replacing a piece of DNA in a living cell with a piece of DNA that the virus carries with it. This makes the cell start to p 阅读全文
posted @ 2018-03-01 20:34 TRACYlegolas 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 题目: After years of success with a single-button mouse, a well known computer company has decided to offer a similarly simplified interface for the key 阅读全文
posted @ 2018-02-26 11:42 TRACYlegolas 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 题目: Change one letter of the name. Add a letter to the end of the name. Input Output Output the number of changes they need to make. Limits The length 阅读全文
posted @ 2018-02-25 23:50 TRACYlegolas 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目: The gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players have a rank 阅读全文
posted @ 2018-02-25 19:38 TRACYlegolas 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 这道题的话,我拿到题是有点懵圈的,如果要我自己判断的话,我也要自己在纸上建立坐标轴然后一一将点标出,后用肉眼判断。这个用代码实现嘛…… 后来就只能参考大神们的算法啦。 判断方法: 向量a=(x1,y1),b=(x2,y2); 向量的叉积a×b=x1*y2-x2*y1; 当a×b>0时,b在a的逆时针 阅读全文
posted @ 2018-02-25 16:49 TRACYlegolas 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目: The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of t 阅读全文
posted @ 2018-02-21 00:12 TRACYlegolas 阅读(114) 评论(0) 推荐(0) 编辑