摘要:
https://leetcode.com/problems/target-sum/#/description You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2
阅读全文
posted @ 2017-07-12 23:03
Premiumlab
阅读(198)
推荐(0)
摘要:
https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Graphs/Word%20Ladder%20Example%20Problem.ipynb BFS. W
阅读全文
posted @ 2017-07-12 18:13
Premiumlab
阅读(441)
推荐(0)
摘要:
https://leetcode.com/problems/word-ladder/#/description Given two words (beginWord and endWord), and a dictionary's word list, find the length of shor
阅读全文
posted @ 2017-07-12 17:00
Premiumlab
阅读(188)
推荐(0)
摘要:
Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number m
阅读全文
posted @ 2017-07-12 14:42
Premiumlab
阅读(128)
推荐(0)
摘要:
https://leetcode.com/problems/increasing-triplet-subsequence/#/description Given an unsorted array return whether an increasing subsequence of length
阅读全文
posted @ 2017-07-12 14:01
Premiumlab
阅读(109)
推荐(0)
摘要:
https://leetcode.com/problems/combination-sum-iv/#/description Given an integer array with all positive numbers and no duplicates, find the number of
阅读全文
posted @ 2017-07-12 13:35
Premiumlab
阅读(122)
推荐(0)
摘要:
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3
阅读全文
posted @ 2017-07-12 13:20
Premiumlab
阅读(132)
推荐(0)