Description Give you a number S of length n,you can choose a position and remove the number on it.After that,you will get a new number. More formally, ...
分类:
其他好文 时间:
2018-09-01 20:23:35
阅读次数:
143
题目链接 https://leetcode.com/problems/kth smallest element in a bst/description/ 题目描述 Given a binary search tree, write a function kthSmallest to find th ...
分类:
其他好文 时间:
2018-08-28 14:26:01
阅读次数:
154
[抄题]: You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element f ...
分类:
其他好文 时间:
2018-08-24 10:48:20
阅读次数:
194
[抄题]: Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and ...
分类:
其他好文 时间:
2018-08-21 22:40:44
阅读次数:
313
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. + + + | Id | Ema ...
分类:
数据库 时间:
2018-08-17 01:23:31
阅读次数:
169
题面 背景 输入 输出 翻译(渣自翻) 给定K个包含K个数字的表,要求将其能产生的\( k^{k} \)个值中最小的K个输出出来 题解 k路归并问题的经典问题 可以转化为二路归并问题求解 考虑A[],B[]两个有序数组 使用堆,记录一些二元组\( (x,y) \),x表示值,y表示对应的b的下标,因 ...
分类:
其他好文 时间:
2018-08-15 22:47:41
阅读次数:
179
230. Kth Smallest Element in a BST // dfs inroder traversal recursively , record the first k nodes , return the kth node Solution { List result = new ... ...
分类:
其他好文 时间:
2018-08-09 19:28:13
阅读次数:
137
https://pintia.cn/problem-sets/994805342720868352/problems/994805343463260160 Given N integers, you are supposed to find the smallest positive integer ...
分类:
其他好文 时间:
2018-08-05 00:43:16
阅读次数:
261
题目描述 Find the smallest possible sum of the digits in the decimal notation of a positive multiple of K.Constraints2≤K≤105K is an integer. 输入 Input is g ...
分类:
其他好文 时间:
2018-08-04 20:38:42
阅读次数:
184
set verify off column file_name format a50 word_wrapped column smallest format 999,990 heading "Smallest|Size|Poss." column currsize format 999,990 he ...
分类:
数据库 时间:
2018-08-03 00:53:57
阅读次数:
238