打赏

相关文章

LeetCode--Reverse Integer

Reverse Integer## [更多技术博客 http://vilins.top/](http://vilins.top/)题目Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321Example 2:Input: -123 Output: -321Example 3:Input: 120 Output: 21Note: Assume we are deal…

算法分析与设计第三周练习(图论)

## [更多技术博客 http://vilins.top/](http://vilins.top/) 目录 Evaluate Division Reconstruct Itinerary 总结 Evaluate Division 1. 题目 Equations are given in the format A / B k, where A and B are variables represented as strings, and k is a real numbe…

LeetCode--String to Integer (atoi)

String to Integer (atoi)## [更多技术博客 http://vilins.top/](http://vilins.top/)1 题目Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is fo…

算法设计与分析(五)

Is Graph Bipartite? 更多技术博客 http://vilins.top/ 1. 题目 Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it’s set of nodes into two independent subsets A and B such that every…

LeetCode--Keys and Rooms

Keys and Rooms 更多技术博客 http://vilins.top/ 题目 There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, …, N-1, and each room may have some keys to access the next room. Formally, each room i has a list of keys rooms…

算法设计与分析(七)

贪心算法 更多技术博客 http://vilins.top/ 题目 这次我们选择两题贪心算法作为练习,这两道题目是有关系的,一个是比较基础的贪心,另一个是难一点的贪心。 Jump Game Given an array of non-negative integers, you are initially posit…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部