摘要: 1.题目描述 英文版: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement i 阅读全文
posted @ 2020-02-19 00:14 limaodeng 阅读(133) 评论(0) 推荐(0)
摘要: 1.题目描述 英文版: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the su 阅读全文
posted @ 2020-02-18 00:54 limaodeng 阅读(133) 评论(0) 推荐(0)
摘要: 1.题目描述 英文版: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which 阅读全文
posted @ 2020-02-16 23:55 limaodeng 阅读(115) 评论(0) 推荐(0)
摘要: 1.题目描述 英文版: Given n non negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that 阅读全文
posted @ 2020-02-16 19:49 limaodeng 阅读(125) 评论(0) 推荐(0)
摘要: 1.题目描述 英文版: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time c 阅读全文
posted @ 2020-02-16 02:29 limaodeng 阅读(157) 评论(0) 推荐(0)
摘要: ##1.题目描述 ####英文版: 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 i 阅读全文
posted @ 2020-02-16 01:21 limaodeng 阅读(182) 评论(0) 推荐(0)
摘要: ##一、前提 二分查找要求线性表必须采用顺序存储结构,而且表中元素按关键字有序排列。 ##二、算法步骤 置查找区间初值,left为0,right为表长-1。 当left小于等于right时,循环执行以下操作: 1)middle取值为low和high的中间值; 2)将给定值target与中间位置记录的 阅读全文
posted @ 2020-01-01 17:24 limaodeng 阅读(416) 评论(0) 推荐(0)
摘要: 1、float类型数字在计算机中用4个字节(32位)存储。 遵循IEEE-754格式标准: 一个浮点数由3部分组成:符号位s(1位)和、指数e(8位)、底数m(23位) 2、格式SEEE EEEE EMMM MMMM MMMM MMMM MMMM MMMM S:符号位E:指数,十进制指数加上127后 阅读全文
posted @ 2019-09-22 18:13 limaodeng 阅读(8575) 评论(0) 推荐(0)