码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".思路简单(同Add Two Numbers),可从代码得知,需要注意字符在字符串中的插入;co...
分类:其他好文   时间:2014-10-28 23:59:02    阅读次数:343
Bitset
Problem DescriptionGive you a number on base ten,you should output it on base two.(0 2 3 int main(){ 4 int number; 5 char result[20]; 6 ...
分类:其他好文   时间:2014-10-28 23:49:48    阅读次数:235
[leetcode]Count and Say
问题描述: 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 is read off as "two 1s" or 21. 21 is read off...
分类:其他好文   时间:2014-10-28 21:49:42    阅读次数:302
HDU 2476 String Painter
传送门String painterTime Limit: 5000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionThere are two strings A and B with ...
分类:其他好文   时间:2014-10-28 21:16:36    阅读次数:215
[leetcode]Add Binary
问题描述: Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 代码: public class AddBinary { //java public String addBinary(St...
分类:其他好文   时间:2014-10-28 20:06:26    阅读次数:183
LeetCode--N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. ...
分类:其他好文   时间:2014-10-28 20:03:53    阅读次数:245
[leetcode]Merge Two Sorted Lists
问题描述: 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. 代码: import java.util.List; public class Merge...
分类:其他好文   时间:2014-10-28 20:03:24    阅读次数:203
Leet Code Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 实现二进制数相加,算法很简单就是两个String每位去相加,然后判断是否要进位。 一开始想到了一个不同的算法,即将两个String转为int型然后相加...
分类:其他好文   时间:2014-10-28 13:59:50    阅读次数:237
leetcode 第42题 Multiply Strings
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:其他好文   时间:2014-10-28 00:23:08    阅读次数:321
Solutions to fix IDM has been registered with a fake serial number
Solutions to fix IDM has been registered with a fake serial number:There are two methods to fix IDM has been registered with a fake serial number erro...
分类:其他好文   时间:2014-10-27 22:57:17    阅读次数:846
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!