• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

xxxqqq

  • 博客园
  • 联系
  • 订阅
  • 管理
上一页 1 2 3 下一页

2017年5月10日

Coin Change

摘要: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee 阅读全文

posted @ 2017-05-10 15:09 xxxqqq 阅读(218) 评论(0) 推荐(0)

Backpack VI

摘要: Given an integer array nums with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer ta 阅读全文

posted @ 2017-05-10 15:05 xxxqqq 阅读(143) 评论(0) 推荐(0)

Add Digits

摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example Given num = 38. The process is like: 3 + 阅读全文

posted @ 2017-05-10 15:02 xxxqqq 阅读(237) 评论(0) 推荐(0)

Maximum Average Subarray

摘要: Given an array with positive and negative numbers, find the maximum average subarray which length should be greater or equal to given length k. Exampl 阅读全文

posted @ 2017-05-10 14:58 xxxqqq 阅读(288) 评论(0) 推荐(0)

Binary Tree Maximum Node

摘要: Find the maximum node in a binary tree, return the node. Example Given a binary tree: 1 / \ -5 2 / \ / \ 0 3 -4 -5 return the node with value 3. 1 pub 阅读全文

posted @ 2017-05-10 14:56 xxxqqq 阅读(181) 评论(0) 推荐(0)

Convert BST to Greater Tree

摘要: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all 阅读全文

posted @ 2017-05-10 14:54 xxxqqq 阅读(175) 评论(0) 推荐(0)

Guess Number Game

摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文

posted @ 2017-05-10 14:45 xxxqqq 阅读(1116) 评论(0) 推荐(0)

String Permutation

摘要: Given two strings, write a method to decide if one is a permutation of the other. Example abcd is a permutation of bcad, but abbe is not a permutation 阅读全文

posted @ 2017-05-10 14:39 xxxqqq 阅读(177) 评论(0) 推荐(0)

Binary Tree Path Sum

摘要: Given a binary tree, find all paths that sum of the nodes in the path equals to a given number target. A valid path is from root node to any of the le 阅读全文

posted @ 2017-05-10 14:36 xxxqqq 阅读(154) 评论(0) 推荐(0)

Convert Binary Search Tree to Doubly Linked List

摘要: Convert a binary search tree to doubly linked list with in-order traversal. Example Given a binary search tree: 4 / \ 2 5 / \ 1 3 return 1<->2<->3<->4 阅读全文

posted @ 2017-05-10 14:35 xxxqqq 阅读(190) 评论(0) 推荐(0)

上一页 1 2 3 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3