上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2015年7月7日

lc面试准备:Implement Stack using Queues

摘要: # 1 题目> Implement the following operations of a stack using queues.- push(x) -- Push element x onto stack.- pop() -- Removes the element on top of the... 阅读全文

posted @ 2015-07-07 19:42 BYRHuangQiang 阅读(347) 评论(0) 推荐(0) 编辑

lc面试准备:Implement Queue using Stacks

摘要: # 1 题目> Implement the following operations of a queue using stacks.- push(x) -- Push element x to the back of queue.- pop() -- Removes the element fro... 阅读全文

posted @ 2015-07-07 17:36 BYRHuangQiang 阅读(250) 评论(0) 推荐(0) 编辑

2015年7月6日

lc面试准备:Invert Binary Tree

摘要: # 1 题目Invert a binary tree.``` 4 / \ 2 7 / \ / \1 3 6 9```to``` 4 / \ 7 2 / \ / \9 6 3 1```**接口**: `public TreeN... 阅读全文

posted @ 2015-07-06 23:41 BYRHuangQiang 阅读(326) 评论(0) 推荐(0) 编辑

lc面试准备:Power of Two

摘要: # 1 题目> Given an integer, write a function to determine if it is a power of two.**接口** `boolean isPowerOfTwo(int n) `# 2 思路判断一个整数是否是2的幂次结果数。> 0100 ==>... 阅读全文

posted @ 2015-07-06 22:51 BYRHuangQiang 阅读(260) 评论(0) 推荐(0) 编辑

2015年5月7日

Reverse Linked List 递归非递归实现

摘要: 单链表反转--递归非递归实现`Java`接口: ` ListNode reverseList(ListNode head) `## 非递归的实现有2种,[参考](http://www.cnblogs.com/byrhuangqiang/p/4311336.html) - 头结点插入法 - 就地反转#... 阅读全文

posted @ 2015-05-07 09:59 BYRHuangQiang 阅读(761) 评论(0) 推荐(0) 编辑

2015年4月7日

lc面试准备:Repeated DNA Sequences

摘要: 1 题目All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful... 阅读全文

posted @ 2015-04-07 22:08 BYRHuangQiang 阅读(319) 评论(0) 推荐(0) 编辑

lc面试准备:Number of 1 Bits

摘要: 1 题目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-bi... 阅读全文

posted @ 2015-04-07 20:49 BYRHuangQiang 阅读(272) 评论(0) 推荐(0) 编辑

lc面试准备:Reverse Bits

摘要: 1 题目Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), ret... 阅读全文

posted @ 2015-04-07 20:31 BYRHuangQiang 阅读(327) 评论(0) 推荐(0) 编辑

2015年4月2日

lc面试准备:Regular Expression Matching

摘要: 1 题目Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element... 阅读全文

posted @ 2015-04-02 17:37 BYRHuangQiang 阅读(524) 评论(0) 推荐(0) 编辑

2015年3月6日

lc面试准备:Remove Duplicates from Sorted List II

摘要: 1 题目Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2... 阅读全文

posted @ 2015-03-06 12:56 BYRHuangQiang 阅读(256) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

导航