摘要: Snorkel使用SQLAlchemy作为数据管理工具,在本地会生成一个.db文件,现有操作与.db文件中已有的记录重复,违反了数据库主键不能重复的性质 解决方式: You can load a labeled dev set json file by replacing the following 阅读全文
posted @ 2020-03-10 07:35 La_Campanella 阅读(257) 评论(0) 推荐(0) 编辑
摘要: npm start 遇到问题 Attempting to bind to HOST environment variable: x86_64-apple-darwin13.4.0 If this was unintentional, check that you haven't mistakenly 阅读全文
posted @ 2020-03-10 07:31 La_Campanella 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Check if a given binary tree is completed. A complete binary tree is one in which every level of the binary tree is completely filled except possibly 阅读全文
posted @ 2020-01-03 04:06 La_Campanella 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Given a matrix of size N x M. For each row the elements are sorted in ascending order, and for each column the elements are also sorted in ascending o 阅读全文
posted @ 2020-01-03 04:05 La_Campanella 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Get the list of list of keys in a given binary tree layer by layer. Each layer is represented by a list of keys and the keys are traversed from left t 阅读全文
posted @ 2020-01-02 04:07 La_Campanella 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Find the K smallest numbers in an unsorted integer array A. The returned numbers should be in ascending order. Assumptions A is not null K is >= 0 and 阅读全文
posted @ 2020-01-02 03:42 La_Campanella 阅读(122) 评论(0) 推荐(0) 编辑
摘要: class Solution { public int lengthLongestPath(String input) { String [] arr=input.split("\n"); int [] lens= new int[arr.length]; int max=0; for(String 阅读全文
posted @ 2019-12-05 09:53 La_Campanella 阅读(89) 评论(0) 推荐(0) 编辑
摘要: searching in rotated sorted array, is kinda the same as searching in a common array, the only difference is that, you need to concern which part is yo 阅读全文
posted @ 2019-12-05 07:19 La_Campanella 阅读(156) 评论(0) 推荐(0) 编辑
摘要: need to use scratch to find the pattern class Solution { public void rotate(int[][] matrix) { int n=matrix.length; for (int i=0; i<n/2; i++) for (int 阅读全文
posted @ 2019-12-04 09:14 La_Campanella 阅读(70) 评论(0) 推荐(0) 编辑
摘要: A classic BFS problem, that is, we use a Queue to store temporary solution and record the size of the current Queue. For each node in this BFS tree, w 阅读全文
posted @ 2019-12-04 07:09 La_Campanella 阅读(293) 评论(0) 推荐(0) 编辑