- 博客(671)
- 资源 (5)
- 收藏
- 关注
原创 解决Conda无法连接网络的问题
解决Conda无法连接网络的问题今天在实验过程中突然发现,conda无法创建虚拟环境,甚至conda install packages 也无法使用,经过检测发现是conda自身url的问题。具体报错如下:WARNING: The conda.compat module is deprecated and will be removed in a future release.Collecting package metadata: failedCondaHTTPError: HTTP .
2021-02-23 11:16:17 7506 1
原创 基于移动终端的大学生心理健康交互管理系统的研究与设计
最近在做心理健康方向APP的开发工作,将一些调研和研究结果与大家分享一下。摘要:近年来随着科技的不断发展和进步,移动智能设备逐渐融入到了我们的日常生活中。为了应对大学生在心理健康管理方面的大量需求,提出了一种基于移动端设备的大学生心理健康交互管理系统,该系统基于Android平台进行开发,通过网络传输与后台进行数据交互和信息管理,系统根据年轻大学生对常见的心理问题设计了不同的交互方式,提升了用户体验。此外,系统还考虑到了数据传输稳定性以及通信阻塞等方面的问题,并提出了一种分段数据传输算法,在测试中该算法
2021-01-21 15:16:51 2559
原创 leetcode fast power
public class Solution { /** * @param a: A 32bit integer * @param b: A 32bit integer * @param n: A 32bit integer * @return: An integer */ public int fastPower(int a, i...
2018-07-08 16:09:35 882 3
原创 深度学习-一些问题得总结
1. 常用的网络结构中,feature_size / kernel_size 的值过小,会导致BN的统计值不稳定,外加上ReLU对信息的一些破坏,很容易倒置kernel学不到任何的东西,发生退化。...
2018-06-15 08:12:52 542
原创 75. Find Peak Element
c++ codeclass Solution {public: /* * @param A: An integers array. * @return: return any of peek position. */ int findPeak(vector<int>& nums) { // write your c...
2018-05-30 09:13:18 385
原创 Edit Distance
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitted on a word:Insert a characterDelete a characterRe...
2018-04-19 07:54:24 625
原创 LeetCode Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.For example, given the following matrix:使用动态规划的方式可以非常好的进行处理javapublic class Solution {...
2018-04-17 10:49:19 401
原创 Climbing Stairs II (使用滚动数组进行优化)
You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?javapublic class Solution { /**...
2018-04-17 09:28:48 284
原创 LeetCode House Robber i问题求解
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent house...
2018-04-17 08:25:50 317
原创 LeetCode 407. Trapping Rain Water II
Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volume of water it is able to trap after raining.Note:Both m and n are less than...
2018-04-10 20:32:39 248
原创 LeetCode 42. Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example,Given [0,1,0,2,1,0,1,3,2,1,2,1], retur...
2018-04-10 19:26:10 327
原创 LeeCode 42. Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example, Given [0,1,0,2,1,0,1,3,2,1,2,1], ret...
2018-04-04 09:39:14 292
原创 Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically nei...
2018-04-03 22:14:55 226
原创 LeetCode 211 Add and Search Word - Data structure design
Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regular expression string containing only letters a-...
2018-04-03 21:55:20 307
原创 k Sum II
Your title here...Given n unique integers, number k (1<=k<=n) and target.Find all possible k integers where their sum is target.Have you met this question in a real interview? YesExampleGiven [1...
2018-04-01 17:39:48 242
原创 Implement Trie
Implement a trie with insert, search, and startsWith methods.trie树实现javaclass TrieNode { TrieNode[] children; boolean hasWord; public TrieNode() { children = new TrieNode[26]; ...
2018-03-29 09:03:44 233
原创 Meeting Rooms
线扫描求解Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all meetings.Have you met this question in a real...
2018-03-26 11:00:45 277
原创 Number of Airplanes in the Sky
线扫描问题Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? NoticeIf landing and flying happens at the same time, we consider landing should...
2018-03-26 10:32:37 427
原创 Find Peak Element II
There is an integer matrix which has the following features:The numbers in adjacent positions are different.The matrix has n rows and m columns.For all i < m, A[0][i] < A[1][i] && A[n - ...
2018-03-25 17:31:03 512
转载 公布代码的大牛
序号姓名链接1南京大学,周志华主页, LMADA实验室主页2香港理工大学,张磊主页3深圳大学,杨猛主页4哈尔滨工业大学深圳研究生院,徐勇主页5University of Exeter,Yiming Ying个人主页 ,代码主页6浙江大学,蔡登个人主页 ,代码主页7中科院自动化所,向世明个人主页8MA YI个人主页9中科院自动化所 Shiguang Shan (山世光)个人主页 代码主页10深圳大...
2018-03-22 15:28:56 2517 1
原创 Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't one, return 0 instead.For example, given the array...
2018-03-20 09:29:22 271
原创 leetcode 2. Add Two Numbers
2. Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two nu...
2018-03-17 16:29:43 193
原创 Leetcode 24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant ...
2018-03-17 12:15:05 167
原创 Leetcode 92. Reverse Linked List II
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5->NULL.Note:Given m,...
2018-03-17 08:52:48 183
转载 GBDT算法解析
在网上看到一篇对从代码层面理解gbdt比较好的文章,转载记录一下: GBDT(Gradient Boosting Decision Tree) 又叫 MART(Multiple Additive Regression Tree),是一种迭代的决策树算法,该算法由多棵决策树组成,所有树的结论累加起来做最终答案。它在被提出之初就和SVM一起被认为是泛化能力(generaliz...
2018-03-08 10:03:09 961
原创 阿里巴巴(电面一)
阿里巴巴(电面一)在之前的一天约定时间进行电话面试,第二天面试官非常准时的打来电话。因为需要进行在线的写代码,所以在教室里进行的电面。首先自我介绍,然后介绍项目,面试官根据项目提出了一些问题。主要包括推荐系统的异常值的处理、svd的表示、相似度的传递,大概使用了20分钟左右。接下来讲了所做的反作弊的项目,此时面试官提出的问题比较尖锐,比如随机森林的过程(不是讲大概的流程,是以伪代码的形式写出一步步...
2018-03-06 15:52:02 742 1
原创 Binary Tree Preorder Traversal python
二叉树的前序遍历(非递归)(小米云计算一面)java/** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val = v...
2018-02-19 11:34:53 490
原创 Copy Books
Given n books and the ith book has A[i] pages. You are given k people to copy the n books.n books list in a row and each person can claim a continous range of the n books. For example one copier can c...
2018-02-18 15:55:18 606
原创 经典二分法
Find any position of a target number in a sorted array. Return -1 if target does not exist.java实现public class Solution { /* * @param nums: An integer array sorted in ascending order * @p...
2018-02-14 17:04:40 337
原创 滴滴大数据面经
地点:西二旗文思海辉2月11日面试完百度之后,看到手机的未接电话,感觉应该是面试邀约,但是没有接到,打回去后对方又一直不接,于是秉承着不要脸的精神一直打了5个电话,对方终于接通。接通后简单的谈了一些项目中的问题,又问了问所学的课程,可能是点面试听到了地铁站的声音,面试官就没有在继续问下去,说可以约一个面试的时间,当时脑子起泡,直接说可以明天(腊月27面试),面试官说:“好!”。说完后,我就感觉我是...
2018-02-14 11:34:39 5279
转载 linux面试常用命令
完整链接:http://linux.chinaitlab.com/special/linuxcom/Index.html显示目录和文件的命令 Ls:用于查看所有文件夹的命令。 Dir:用于显示指定文件夹和目录的命令 Tree: 以树状图列出目录内容 Du:显示目录或文件大小 修改目录,文件权限和属主及数组命令 Chmod:用于改变指定文件的权限命令。 Chown:用于改变...
2018-02-11 09:36:56 418
原创 百度抽样算法面试题(部分)
1. 给你一个长度为N的链表。N很大,但你不知道N有多大。你的任务是从这N个元素中随机取出k个元素。你只能遍历这个链表一次。你的算法必须保证取出的元素恰好有k个,且它们是完全随机的(出现概率均等)。解:先选中前k个, 从第k+1个元素到最后一个元素为止, 以k/i (i=k+1, k+2,...,N) 的概率选中第i个元素,并且随机替换掉一个原先选中的元素, 这样遍历一次得到k个元素, 可以保证...
2018-02-10 15:16:30 576
原创 主机和docker之间互传文件
主机和容器之间传输文件的话需要用到容器的ID全称。获取方法如下:1.先拿到容器的短ID或者指定的name。2.然后根据这两项的任意一项拿到ID全称。有了这个长长的ID的话,本机和容器之间的文件传输就简单了。docker cp 本地文件路径 ID全称:容器路径1进入容器之后就能够看到刚才上传进来的文件了。如果是容器传
2018-01-15 11:05:51 734
原创 strStr II
Implement strStr function in O(n + m) time.strStr return the first index of the target string in a source string. The length of the target string is m and the length of the source string is n.If
2018-01-14 09:05:06 269
原创 Expression Expand
Given an expression s includes numbers, letters and brackets. Number represents the number of repetitions inside the brackets(can be a string or another expression).Please expand expression to be a
2018-01-14 08:21:39 306
原创 Flatten Nested List Iterator
Given a nested list of integers, implement an iterator to flatten it.Each element is either an integer, or a list -- whose elements may also be integers or other lists. NoticeYou don't nee
2018-01-13 16:16:15 239
原创 Zigzag Iterator
Given two 1d vectors, implement an iterator to return their elements alternately.Have you met this question in a real interview? YesExampleGiven two 1d vectors:v1 = [1, 2]v2
2018-01-13 09:47:39 241
原创 High Five
There are two properties in the node student id and scores, to ensure that each student will have at least 5 points, find the average of 5 highest scores for each person.Have you met this ques
2018-01-13 09:04:26 486
原创 Top k Largest Numbers II
Implement a data structure, provide two interfaces:add(number). Add a new number in the data structure.topk(). Return the top k largest numbers in this data structure. k is given when we create
2018-01-12 10:53:20 374
原创 Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list.Analyze and describe its complexity.Have you met this question in a real interview? YesExampleGiven lists:[ 2
2018-01-12 08:05:53 255
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人