Algorithm problems
算法题相关
Jacky_HHH
这个作者很懒,什么都没留下…
展开
-
LeetCode 786: K-th Smallest Prime Fraction
一:题目描述1.英文描述:A sorted list A contains 1, plus some number of primes. Then, for every p < q in the list, we consider the fraction p/q.What is the K-th smallest fraction considered? Return your ...原创 2020-04-01 09:50:43 · 208 阅读 · 0 评论 -
leetcode29 :Divide Two Integers
一:题目描述英文描述:Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividing dividend by divisor.The integer d...原创 2020-03-20 22:34:42 · 96 阅读 · 0 评论 -
Leetcode 3 : C++ Longest Substring Without Repeating Characters
题目描述英文:Given a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb”Output: 3Explanation: The answer is “abc”, with the length of 3.Example 2...原创 2020-03-01 18:20:11 · 91 阅读 · 0 评论 -
Leetcode2 两数相加C++ / Python
题目描述英文:Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x), next(NULL) {}};2 -> 4 -> 3 + 5 -> 6 -> 47 -> 0 -> 8中文:...原创 2020-02-28 18:04:09 · 174 阅读 · 0 评论