摘要:
这几天决定强化一下数据库的知识,就准备弄个MySQL,在官网下了最新的5.7.9版本的Zip,添加环境变量后控制台提示没有报告任何错误,如图查看日志后发现是因为没有data文件夹造成的,貌似5.7.9版本解压后原本就没有data文件夹。两种解决方法,第一种比较简单,下载低版本,比如5.6的MySQL... 阅读全文
摘要:
1.引入文件C语言引入文件的方式是#includeOC是#import2.实例化对象在Java C++等语言中,实例化对象一般为:类名 对象名 = new 对象。OC中是:[类名 方法名]/[对象名 方法名]。如:[[类名 alloc] init]-alloc用来给对象分配内存空间,init进行初始... 阅读全文
摘要:
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wikipedia: ... 阅读全文
摘要:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ... 阅读全文
摘要:
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur... 阅读全文
摘要:
Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["1->... 阅读全文
摘要:
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ... 阅读全文
摘要:
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l... 阅读全文