上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 50 下一页
摘要: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to 阅读全文
posted @ 2018-09-21 09:45 轻风舞动 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 与189. Rotate Array 类似,但链表不能通过index来访问,要一 阅读全文
posted @ 2018-09-21 09:37 轻风舞动 阅读(391) 评论(0) 推荐(0) 编辑
摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return the 阅读全文
posted @ 2018-09-21 09:15 轻风舞动 阅读(490) 评论(0) 推荐(0) 编辑
摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all 阅读全文
posted @ 2018-09-21 09:09 轻风舞动 阅读(748) 评论(0) 推荐(1) 编辑
摘要: Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true" 阅读全文
posted @ 2018-09-21 08:59 轻风舞动 阅读(578) 评论(0) 推荐(0) 编辑
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 解法:Backtracking Java: Java: Java: 阅读全文
posted @ 2018-09-21 08:18 轻风舞动 阅读(485) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2018-09-21 05:09 轻风舞动 阅读(616) 评论(0) 推荐(0) 编辑
摘要: Add a third dimension of time to a hashmap , so ur hashmap will look something like this - HashMap<K, t, V> where t is a float value. Implement the ge 阅读全文
posted @ 2018-09-21 01:59 轻风舞动 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements 阅读全文
posted @ 2018-09-20 14:52 轻风舞动 阅读(890) 评论(0) 推荐(1) 编辑
摘要: Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: Your al 阅读全文
posted @ 2018-09-20 14:46 轻风舞动 阅读(514) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 50 下一页