上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: Description: A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of three points in the plane, return whet 阅读全文
posted @ 2019-08-29 12:51 CodingYM 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Description: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of th 阅读全文
posted @ 2019-08-28 18:16 CodingYM 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Description: Remove all elements from a linked list of integers that have value val. Example: Input: 1->2->6->3->4->5->6, val = 6 Output: 1->2->3->4-> 阅读全文
posted @ 2019-08-28 17:27 CodingYM 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Description: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head =  阅读全文
posted @ 2019-08-27 18:28 CodingYM 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Description: Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed ei 阅读全文
posted @ 2019-08-27 18:02 CodingYM 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Description: Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the 阅读全文
posted @ 2019-08-27 17:04 CodingYM 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Description: For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the ar 阅读全文
posted @ 2019-08-27 16:38 CodingYM 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description: Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If ta 阅读全文
posted @ 2019-08-26 16:23 CodingYM 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a binary number (from most-significant-bi 阅读全文
posted @ 2019-08-26 15:51 CodingYM 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Description: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. 阅读全文
posted @ 2019-08-25 23:00 CodingYM 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页