Fork me on GitHub
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页
摘要: 题目:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26... 阅读全文
posted @ 2015-08-19 11:00 __Neo 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目:Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: ... 阅读全文
posted @ 2015-08-19 10:00 __Neo 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired byt... 阅读全文
posted @ 2015-08-18 16:35 __Neo 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wikipedi... 阅读全文
posted @ 2015-08-18 16:06 __Neo 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 题目:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit... 阅读全文
posted @ 2015-08-18 11:32 __Neo 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-08-18 11:10 __Neo 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical... 阅读全文
posted @ 2015-08-18 10:39 __Neo 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题目:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 ... 阅读全文
posted @ 2015-08-17 17:11 __Neo 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complex... 阅读全文
posted @ 2015-08-17 14:22 __Neo 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest... 阅读全文
posted @ 2015-08-17 13:40 __Neo 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页