摘要:
Difficulty: Medium Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors 阅读全文
posted @ 2016-06-20 18:26
Live and Learn
阅读(272)评论(0)推荐(0)
摘要:
Total Accepted: 76162 Total Submissions: 352104 Difficulty: Easy Rotate an array of n elements to the right by k steps. For example, with n = 7 and k 阅读全文
posted @ 2016-06-14 16:16
Live and Learn
阅读(114)评论(0)推荐(0)
摘要:
Total Accepted: 20180 Total Submissions: 57018 Difficulty: Easy Write a function that takes a string as input and reverse only the vowels of a string. 阅读全文
posted @ 2016-06-14 11:14
Live and Learn
阅读(94)评论(0)推荐(0)
摘要:
Total Accepted: 34109 Total Submissions: 58119 Difficulty: Easy Write a function that takes a string as input and returns the string reversed. Example 阅读全文
posted @ 2016-06-14 11:13
Live and Learn
阅读(100)评论(0)推荐(0)
摘要:
Total Accepted: 122406 Total Submissions: 356377 Difficulty: Easy Given an array and a value, remove all instances of that value in place and return t 阅读全文
posted @ 2016-06-14 11:12
Live and Learn
阅读(112)评论(0)推荐(0)
摘要:
Total Accepted: 71150 Total Submissions: 308672 Difficulty: Medium Given a list, rotate the list to the right by k places, where k is non negative. Fo 阅读全文
posted @ 2016-06-07 18:11
Live and Learn
阅读(149)评论(0)推荐(0)
摘要:
Total Accepted: 111864 Total Submissions: 374606 Difficulty: Easy Given a linked list, remove the nth node from the end of list and return its head. F 阅读全文
posted @ 2016-06-07 11:39
Live and Learn
阅读(117)评论(0)推荐(0)