上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 76 下一页
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: 1. Each of the digits 阅读全文
posted @ 2018-10-16 10:58 bernieloveslife 阅读(180) 评论(0) 推荐(0)
摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca 阅读全文
posted @ 2018-10-16 10:58 bernieloveslife 阅读(115) 评论(0) 推荐(0)
摘要: 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-10-16 10:58 bernieloveslife 阅读(108) 评论(0) 推荐(0)
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: 阅读全文
posted @ 2018-10-15 10:34 bernieloveslife 阅读(90) 评论(0) 推荐(0)
摘要: Given a linked list, remove the n th node from the end of list and return its head. Example: Given linked list: 1 2 3 4 5, and n = 2. After removing t 阅读全文
posted @ 2018-10-15 10:34 bernieloveslife 阅读(79) 评论(0) 推荐(0)
摘要: Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique q 阅读全文
posted @ 2018-10-15 10:34 bernieloveslife 阅读(100) 评论(0) 推荐(0)
摘要: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2018-10-15 10:34 bernieloveslife 阅读(147) 评论(0) 推荐(0)
摘要: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2018-10-15 10:34 bernieloveslife 阅读(177) 评论(0) 推荐(0)
摘要: Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the 阅读全文
posted @ 2018-10-14 10:42 bernieloveslife 阅读(125) 评论(0) 推荐(0)
摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in place, which 阅读全文
posted @ 2018-10-14 10:42 bernieloveslife 阅读(393) 评论(0) 推荐(0)
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 76 下一页