随笔分类 -  Leetcode c语言

LeetCode c语言-Rotate Image
摘要:Title: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 im... 阅读全文

posted @ 2017-11-01 13:28 sichenzhao 阅读(266) 评论(0) 推荐(0)

Leetcode c语言- Permutations II
摘要:Title:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have th... 阅读全文

posted @ 2017-10-31 14:42 sichenzhao 阅读(559) 评论(0) 推荐(0)

Leetcode c语言-Permutations
摘要:TItle:Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[ ... 阅读全文

posted @ 2017-10-30 14:27 sichenzhao 阅读(312) 评论(0) 推荐(0)

Leetcode c语言-Multiply Strings
摘要:Title:Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note:The length of bot... 阅读全文

posted @ 2017-10-27 16:49 sichenzhao 阅读(150) 评论(0) 推荐(0)

Leetcode Java-Combination Sum
摘要:Title:iven a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the ca... 阅读全文

posted @ 2017-09-29 15:18 sichenzhao 阅读(163) 评论(0) 推荐(0)

LeetCode c语言- Count and Say
摘要:TiTle:The count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113. 214. 1... 阅读全文

posted @ 2017-09-28 20:56 sichenzhao 阅读(289) 评论(0) 推荐(0)

Leetcode c语言-Valid Sudoku
摘要:Title:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty... 阅读全文

posted @ 2017-09-27 23:37 sichenzhao 阅读(141) 评论(0) 推荐(0)

Leetcode c语言-Search Insert Position
摘要:Title:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ... 阅读全文

posted @ 2017-09-26 23:23 sichenzhao 阅读(116) 评论(0) 推荐(0)

LeetCode c语言-Search for a Range
摘要:Title:Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorit... 阅读全文

posted @ 2017-09-26 10:30 sichenzhao 阅读(125) 评论(0) 推荐(0)

Leetcode c语言-Search in Rotated Sorted Array
摘要:Title:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become ... 阅读全文

posted @ 2017-09-25 00:00 sichenzhao 阅读(134) 评论(0) 推荐(0)

Leetcode c语言-Next Permutation
摘要:Title:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arra... 阅读全文

posted @ 2017-09-20 19:24 sichenzhao 阅读(234) 评论(0) 推荐(0)

Leetcode c语言-Divide Two Integers
摘要:Title:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.这道题就是实现除法,而且不能用到乘法... 阅读全文

posted @ 2017-09-19 21:39 sichenzhao 阅读(218) 评论(0) 推荐(0)

windows+sublime text3+MINGW编译运行c
摘要:在linux下,编译运行c或者c++或python等非常简单,因为包含了gcc,g++编译器和python解释器。在windows下,可以利用MINGW安装gcc和g++编译器。MINGW:是Minimalist GNUfor Windows的缩写。MINGW提供了一... 阅读全文

posted @ 2017-09-19 16:23 sichenzhao 阅读(400) 评论(0) 推荐(0)

Leetcode c语言-Implement strStr()
摘要:Title:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.这道题是... 阅读全文

posted @ 2017-09-19 16:03 sichenzhao 阅读(113) 评论(0) 推荐(0)

Leetcode c语言-Remove Element
摘要:Title:Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space fo... 阅读全文

posted @ 2017-09-19 13:37 sichenzhao 阅读(88) 评论(0) 推荐(0)

Leetcode c语言-Remove Duplicates from Sorted Array
摘要:Title:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not al... 阅读全文

posted @ 2017-09-19 11:25 sichenzhao 阅读(213) 评论(0) 推荐(0)

Leetcode c语言-Swap Nodes in Pairs
摘要:Title:Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list ... 阅读全文

posted @ 2017-09-18 23:37 sichenzhao 阅读(151) 评论(0) 推荐(0)

LeetCode c语言-Generate Parentheses和买票找零问题
摘要:Title:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3,... 阅读全文

posted @ 2017-09-18 17:35 sichenzhao 阅读(316) 评论(0) 推荐(0)

Leetcode c语言- Merge Two Sorted Lists
摘要:Title: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 fir... 阅读全文

posted @ 2017-09-18 13:45 sichenzhao 阅读(208) 评论(0) 推荐(0)

Leetcode c语言-Valid Parentheses
摘要:Title:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The bracke... 阅读全文

posted @ 2017-09-17 22:46 sichenzhao 阅读(152) 评论(0) 推荐(0)

导航