摘要:
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 阅读全文
摘要:
Description: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of th 阅读全文
摘要:
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-> 阅读全文
摘要:
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 = 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文