自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

teminusign的博客

以程序之名

  • 博客(33)
  • 收藏
  • 关注

原创 278. First Bad Version

278. First Bad VersionLeetcode link for this questionDiscription:You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fail

2016-07-26 19:43:11 289

原创 234. Palindrome Linked List

234. Palindrome Linked ListLeetcode link for this questionDiscription:Given a singly linked list, determine if it is a palindrome.Follow up: Could you do it in O(n) time and O(1) space?Analyze:#Defini

2016-07-26 19:41:58 293

原创 160. Intersection of Two Linked Lists

160. Intersection of Two Linked ListsLeetcode link for this questionDiscription:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following t

2016-07-26 19:40:00 323

原创 67. Add Binary

67. Add BinaryLeetcode link for this questionDiscription:Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”.Code 1:class Solution(object):

2016-07-26 19:38:56 366

原创 38. Count and Say

38. Count and SayLeetcode link for this questionDiscription:The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, … 1 is read off as “one 1” or 11. 11

2016-07-26 19:38:23 282

原创 36. Valid Sudoku

36. Valid SudokuLeetcode link for this questionDiscription:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are fil

2016-07-26 19:37:56 368

原创 28. Implement strStr()

28. Implement strStr()Leetcode link for this questionDiscription:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Analyze:Code

2016-07-26 19:37:18 163

原创 26. Remove Duplicates from Sorted Array

26. Remove Duplicates from Sorted ArrayLeetcode link for this questionDiscription:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.

2016-07-26 19:36:37 202

原创 27. Remove Element

27. Remove ElementLeetcode link for this questionDiscription:Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another ar

2016-07-26 19:36:20 167

原创 24. Swap Nodes in Pairs

24. Swap Nodes in PairsLeetcode link for this questionDiscription: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 as 2-

2016-07-26 19:35:57 190

原创 21. Merge Two Sorted Lists

21. Merge Two Sorted ListsLeetcode link for this questionDiscription: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 t

2016-07-26 19:35:27 171

原创 20. Valid Parentheses

20. Valid ParenthesesLeetcode link for this questionDiscription:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must c

2016-07-26 19:35:12 148

原创 14. Longest Common Prefix

14. Longest Common PrefixLeetcode link for this questionDiscription:Write a function to find the longest common prefix string amongst an array of strings.Analyze:Code 1:class Solution(object): def

2016-07-26 19:34:48 159

原创 13. Roman to Integer

13. Roman to IntegerLeetcode link for this questionDiscription:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Analyze:Code 1:class Solution(ob

2016-07-26 19:34:32 193

原创 7. Reverse Integer

# 7. Reverse Integer[Leetcode link for this question](https://leetcode.com/problems/reverse-integer/)## Discription: Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, r

2016-07-26 19:34:02 163

原创 6. ZigZag Conversion

6. ZigZag ConversionLeetcode link for this questionDiscription:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a

2016-07-26 19:33:46 206

原创 1. Two Sum

1. Two SumLeetcode link for this questionDiscription:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have e

2016-07-26 19:33:22 218

原创 PR曲线和F1、ROC曲线和AUC

最近阅读机器学习,在评估学习器的性能时,书中提到了P、R、F1值度量和ROC曲线和AUC值度量。P、R、F1 预测结果 正例 反例 真实情况 正例 TP(真正例) FN(假反例) 反例 FP(假正例)

2016-07-21 14:56:24 22205 2

原创 13. Roman to Integer

13. Roman to IntegerLeetcode link for this questionDiscription:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Analyze:Code 1:class Solution(ob

2016-07-19 16:00:45 301

原创 190. Reverse Bits

190. Reverse BitsLeetcode link for this questionDiscription:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100

2016-07-19 15:44:17 279

原创 9. Palindrome Number

9. Palindrome NumberLeetcode link for this questionDiscription:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints: Could negative integers be p

2016-07-19 15:43:18 175

原创 Visual Studio Code 使用记录

微软出的一款跨平台全功能editor : Visual Studio Code 官方口号: Free. Open source. Runs everywhere.优点:颜值高,UI配色简单,耐看,黑色背景虽然不炫但很酷免费,跨平台轻量级,启动秒开,大文件秒加载,内存占用较少(大赞)拓展工具多,竟然支持matlab ,惊呆了自带markdown文件预览集成git支持调试自带di

2016-07-18 14:53:02 2543

原创 371. Sum of Two Integers

371. Sum of Two IntegersLeetcode link for this questionDiscription:Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example: Given a = 1 and b = 2, return

2016-07-18 13:11:09 232

原创 349. Intersection of Two Arrays

349. Intersection of Two ArraysLeetcode link for this questionDiscription:Given two arrays, write a function to compute their intersection.Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [

2016-07-18 13:10:19 263

原创 344. Reverse String

344. Reverse StringLeetcode link for this questionDiscription:Write a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”.Analyze:Code 1:cl

2016-07-18 13:10:09 559

原创 292. Nim Game

292. Nim GameLeetcode link for this questionDiscription:You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3

2016-07-18 13:09:52 213

原创 290. Word Pattern

290. Word PatternLeetcode link for this questionDiscription:Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between

2016-07-18 13:09:27 222

原创 283. Move Zeroes

283. Move ZeroesLeetcode link for this questionDiscription:Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For examp

2016-07-18 13:09:14 188

原创 258. Add Digits

258. Add DigitsLeetcode link for this questionDiscription:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is

2016-07-18 13:08:59 262

原创 237. Delete Node in a Linked List

237. Delete Node in a Linked ListLeetcode link for this questionDiscription:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the link

2016-07-18 13:08:37 211

原创 226. Invert Binary Tree

226. Invert Binary TreeLeetcode link for this questionDiscription:Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 /

2016-07-18 13:07:45 181

原创 104. Maximum Depth of Binary Tree

104. Maximum Depth of Binary TreeLeetcode link for this questionDiscription:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root nod

2016-07-18 13:04:45 267

原创 19. Remove Nth Node From End of List

19. Remove Nth Node From End of ListDiscription : Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->

2016-07-18 10:18:42 225

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除