
leetcode
little_zozo
这个作者很懒,什么都没留下…
展开
-
leetcode - Lemonade Change
问题描述At a lemonade stand, each lemonade costs $5.Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bills).Each customer will only buy one lemonade and pay with either a $5, $10, or $20 bill. You must p原创 2020-06-02 21:22:14 · 234 阅读 · 0 评论 -
leetcode - Goat Latin (24ms)
问题描述**A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only.We would like to convert the sentence to “Goat Latin” (a made-up language similar to Pig Latin.)The rules of Goat Latin are as原创 2020-06-02 02:53:39 · 234 阅读 · 0 评论 -
leetcode -Two Sum
问题描述Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same element twice.example:Given nums = [2, 7, 11, 15]原创 2020-06-01 04:42:10 · 206 阅读 · 0 评论 -
leetcode 之 Add Two Numbers(链表)
问题描述:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.You may assume the two numbers原创 2020-06-01 04:19:35 · 157 阅读 · 0 评论