2015年11月4日

Rotate Array

摘要: package cn.edu.xidian.sselab.array;/*** title: Rotate Array* content:* Rotate an array of n elements to the right by k steps.* For example, with n = 7... 阅读全文

posted @ 2015-11-04 22:20 wzyxidian 阅读(182) 评论(0) 推荐(0) 编辑

Summary Ranges

摘要: package cn.edu.xidian.sselab.array;import java.util.ArrayList;import java.util.List;/*** title: Summary Ranges* content:* Given a sorted integer array... 阅读全文

posted @ 2015-11-04 22:18 wzyxidian 阅读(163) 评论(0) 推荐(0) 编辑

Plus One

摘要: package cn.edu.xidian.sselab.array;/*** title:Plus One* content:* iven a non-negative number represented as an array of digits, plus one to the number... 阅读全文

posted @ 2015-11-04 22:17 wzyxidian 阅读(212) 评论(0) 推荐(0) 编辑

Move Zeroes

摘要: package cn.edu.xidian.sselab.array;/*** titile:Move Zeroes* content:* Given an array nums, write a function to move all 0's to the end of it while mai... 阅读全文

posted @ 2015-11-04 22:16 wzyxidian 阅读(142) 评论(0) 推荐(0) 编辑

Valid Number

摘要: package cn.edu.xidian.sselab;/*** title:Valid Number* content:* Validate if a given string is numeric.* Some examples:* "0" => true* " 0.1 " => true* ... 阅读全文

posted @ 2015-11-04 22:15 wzyxidian 阅读(163) 评论(0) 推荐(0) 编辑

String to Integer (atoi)

摘要: package cn.edu.xidian.sselab;import java.util.HashMap;/*** title:String to Integer (atoi)* content:* Implement atoi to convert a string to an integer.... 阅读全文

posted @ 2015-11-04 22:13 wzyxidian 阅读(254) 评论(0) 推荐(0) 编辑

Same Tree

摘要: package cn.edu.xidian.sselab;/*** title:Same Tree* content:* Given two binary trees, write a function to check if they are equal or not.* Two binary t... 阅读全文

posted @ 2015-11-04 22:12 wzyxidian 阅读(134) 评论(0) 推荐(0) 编辑

Multiply Strings

摘要: package cn.edu.xidian.sselab;/*** title:Multiply Strings* content:* Given two numbers represented as strings, return multiplication of the numbers as ... 阅读全文

posted @ 2015-11-04 22:11 wzyxidian 阅读(205) 评论(0) 推荐(0) 编辑

Ugly Number

摘要: package cn.edu.xidian.sselab;/*** title:Ugly Number* content:* rite a program to check whether a given number is an ugly number.* Ugly numbers are pos... 阅读全文

posted @ 2015-11-04 22:06 wzyxidian 阅读(135) 评论(0) 推荐(0) 编辑

Delete Node in a Linked List

摘要: package cn.edu.xidian.sselab;import java.util.LinkedList;/*** title: Delete Node in a Linked List* content:* Write a function to delete a node (except... 阅读全文

posted @ 2015-11-04 22:04 wzyxidian 阅读(248) 评论(0) 推荐(0) 编辑

Excel sheet Column Title

摘要: package cn.edu.xidian.sselab;/*** title:Excel sheet Column Title* content:* Given a positive integer, return its corresponding column title as appear ... 阅读全文

posted @ 2015-11-04 22:02 wzyxidian 阅读(255) 评论(0) 推荐(0) 编辑

Add Two Numbers

摘要: package cn.edu.xidian.sselab;import java.util.ArrayList;/*** title:Add Two Numbers* content:* You are given two linked lists representing two non-nega... 阅读全文

posted @ 2015-11-04 21:58 wzyxidian 阅读(196) 评论(0) 推荐(0) 编辑

Add Binary

摘要: package cn.edu.xidian.sselab;/*** title:Add Binary* content:* Given two binary strings, return their sum (also a binary string).* For example;* a = "1... 阅读全文

posted @ 2015-11-04 21:55 wzyxidian 阅读(141) 评论(0) 推荐(0) 编辑

导航