码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
IDL语言简明教程
有段时间没有看SICP了……那本书真的给了我很多启发。 考试过后一定要再读SICP。 依然按SICP对语言的分析方式来。这次,加上自己的理解。 在数学中,函数是两个集合之间的二元关系,它与第一个集合的每个元素正好关联第二个集合的一个元素。典型的例子是从整数到整数,或从实数到实数的函数。 In mat ...
分类:编程语言   时间:2021-05-24 07:44:23    阅读次数:0
【每日一题】872. 叶子相似的树
https://leetcode-cn.com/problems/leaf-similar-trees/ class Solution { public boolean leafSimilar(TreeNode root1, TreeNode root2) { List<Integer> list1 ...
分类:其他好文   时间:2021-05-24 04:05:29    阅读次数:0
0906. Super Palindromes (H)
Super Palindromes (H) 题目 Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given tw ...
分类:其他好文   时间:2021-05-24 02:27:55    阅读次数:0
【每日一题】1723. 完成所有工作的最短时间
https://leetcode-cn.com/problems/find-minimum-time-to-finish-all-jobs/ 不会做,蹭个积分就走~ class Solution { /** * 最小的 工人最大用时 */ private int minId = Integer.MA ...
分类:其他好文   时间:2021-05-24 01:38:37    阅读次数:0
java冒泡排序算法
package test; public class BubbleSort { public void bubble(Integer[] array,int from,int end) { for(int k=1;k<end-from+1;k++) { for(int i=end-from;i>=k ...
分类:编程语言   时间:2021-05-24 00:31:25    阅读次数:0
Delphi UniCode转汉字(\u 格式)、汉字转UniCode(\u 格式)
Delphi UniCode转汉字(\u 格式)、汉字转UniCode(\u 格式) 1、UniCode转汉字 function UnicodeToChinese(sStr: string): string; var i: Integer; index: Integer; temp, top, la ...
分类:Windows程序   时间:2021-05-24 00:03:23    阅读次数:0
数组去重 concat() 连接两个或多个数组 join() 将数组转换为字符串 reverse() 反转数组 sort() 排序
// var arr2 = [1,2,3,2,2,1,3,4,2,5]; // // 数组去重 // for(var i=0;i<arr2.length;i++){ // // console.log(arr2[i]); // // 获取当前元素后的元素 // for(var j=i+1;j<arr ...
分类:编程语言   时间:2021-05-23 23:42:15    阅读次数:0
每日LeetCode - 7. 整数反转(C语言和Python 3)
C语言 使用long类型: #include "math.h" int reverse(int x){ int max = pow(2,31)-1; int min = pow(2,31)*-1; long n=0; while (x!=0){ n = n*10 + x%10; x = x/10; ...
分类:编程语言   时间:2021-05-23 23:09:40    阅读次数:0
1822. Sign of the Product of an Array
There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x is equal to 0. You are given an integer array nums. Let  ...
分类:其他好文   时间:2021-05-23 23:06:06    阅读次数:0
[每日一题]leetcode 7. 整数反转
class Solution { public: int reverse(int x) { // cout << 1111 << endl; long long ret = 0; long long y = x; int f = 0; if(y < 0) f = 1, y = -y; // cout ...
分类:其他好文   时间:2021-05-23 23:04:46    阅读次数:0
19410条   上一页 1 ... 6 7 8 9 10 ... 1941 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!