
LeetCode
yunguopiaoyu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[LeetCode]500. Keyboard Row
DescriptionGiven a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard like the image below. Example 1:Input: ["Hello", "Alaska", "Dad",原创 2017-09-23 22:27:51 · 220 阅读 · 0 评论 -
[LeetCode]557. Reverse Words in a String III
Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input: "Let's take LeetCode contest" Output原创 2017-09-24 21:11:14 · 257 阅读 · 0 评论 -
[LeetCode]344. Reverse String
Write a function that takes a string as input and returns the string reversed.Example:Given s = “hello”, return “olleh”.代码长这样~class Solution { public String reverseString(String s) { return原创 2017-09-24 21:16:36 · 226 阅读 · 0 评论 -
[LeetCode]575. Distribute Candies
Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these原创 2017-09-24 22:49:47 · 208 阅读 · 0 评论 -
[LeetCode] 682. Baseball Game
Description描述的篇幅太大了,戳→https://leetcode.com/problems/baseball-game/description/我的解决方法import java.util.*; class Solution { public int calPoints(String[] ops) { int sum = 0; int[] scor原创 2017-09-28 22:40:26 · 1318 阅读 · 0 评论 -
[LeetCode] 690. Employee Importance
Description见https://leetcode.com/problems/employee-importance/description/我的代码(AC)/* // Employee info class Employee { // It's the unique id of each node; // unique id of this employee publ原创 2017-09-30 10:46:00 · 329 阅读 · 0 评论