![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hackerrank
文章平均质量分 80
xiaozhuaixifu
这个作者很懒,什么都没留下…
展开
-
【Hackerrank】Merge two sorted linked lists
This challenge is part of a tutorial track by MyCodeSchool You’re given the pointer to the head nodes of two sorted linked lists. The data in both lists will be sorted in ascending order. Change th原创 2013-12-13 20:13:03 · 1141 阅读 · 0 评论 -
【HackerRank】Angry Children 2 排序+动态规划
Bill Gates is on one of his philanthropic journeys to a village in Utopia. He has N packets of candies and would like to distribute one packet to each of the K children in the village (each packet m转载 2014-04-07 15:57:04 · 2107 阅读 · 0 评论 -
【HackerRank】Common Child (LCS)最长公共子序列
Given two strings a and b of equal length, what’s the longest string (S) that can be constructed such that S is a child to both a and b. String x is said to be a child of string y if x can be formed原创 2014-04-19 16:22:45 · 3068 阅读 · 0 评论 -
【hackerrank】Insertion Sort Advanced Analysis
Insertion Sort is a simple sorting technique which was covered in previous challenges. Sometimes, arrays may be too large for us to wait around for insertion sort to finish. Is there some other way we原创 2013-12-26 19:38:49 · 2952 阅读 · 1 评论 -
【Hackerrank】Insert a node into a sorted doubly linked list
You’re given the pointer to the head node of a sorted doubly linked list and an integer to insert into the list. The data in the nodes of the list are in ascending order. Create a node and insert it i原创 2013-12-16 16:43:50 · 1708 阅读 · 0 评论 -
【Hackerrank】Get the value of the node at a specific position from the tail
You’re given the pointer to the head node of a linked list and a specific position. Counting backwards from the tail node of the linked list, get the value of the node at the given position. A positio原创 2013-12-16 09:08:04 · 1097 阅读 · 0 评论 -
【Hackerrank】Find the merge point of two joined linked lists
You’re given the pointer to the head nodes of two linked lists that merge together at some node. Find the node at which this merger happens. The two head nodes will be different and neither will be NU原创 2013-12-16 14:35:36 · 1063 阅读 · 0 评论 -
【Hackerrank】Delete duplicate-value nodes from a sorted linked list
You’re given the pointer to the head node of a sorted linked list, where the data in the nodes is in ascending order. Delete as few nodes as possible so that the list does not contain any value more t原创 2013-12-16 09:55:52 · 1557 阅读 · 0 评论 -
【Hackerrank】Reverse a doubly linked list
You’re given the pointer to the head node of a doubly linked list. Reverse the order of the nodes in the list. The head node might be NULL to indicate that the list is empty. Input Format You have t原创 2013-12-16 22:07:22 · 1211 阅读 · 0 评论 -
【HackerRank】Red John is Back (Dynamic programming)简单递推
Red John has committed another murder. But this time, he doesn’t leave a red smiley behind. What he leaves behind is a puzzle for Patrick Jane to solve. He also texts Teresa Lisbon that if Patrick is原创 2014-04-13 17:28:45 · 1493 阅读 · 0 评论