码迷,mamicode.com
首页 >  
搜索关键字:面向对象 c++ 面试    ( 45239个结果
LeetCode: Same Tree [100]
【题目】 Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 【题意】 判断了两个二叉树是否相等 【思路】 递归...
分类:其他好文   时间:2014-06-02 11:03:03    阅读次数:205
LeetCode: Symmetric Tree [101]
【题目】 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / 2 2 / \ / 3 4 4 3 But the following is not: 1 / 2 2 \ 3 3 No...
分类:其他好文   时间:2014-06-02 10:56:14    阅读次数:237
LeetCode: Recover Binary Search Tree [099]
【题目】 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution? confused what "{1,#,2,3}" ...
分类:其他好文   时间:2014-06-02 10:38:17    阅读次数:246
javascript对象创建及原型继承的研究
今天总结了下javascript关于原型继承和对象创建方面的东西,因为javascript的原型继承在使用传统面向对象语言开发的同学看来比较怪异,原型继承确实比传统OOP语言的继承理解和运用起来困难一些,当然个人觉得传统OOP的继承相对比较简单,因为中规中矩。下面逐个的用示例说明javascript...
分类:编程语言   时间:2014-06-02 07:14:27    阅读次数:281
漫谈:初遇面向对象
首先介绍一下,我是信息工程学院出来的,专业主攻硬件方向,什么模电数电、信号系统和单片机原理这样的,接触到编程门槛的是C语言的学习。上.NET的第一堂课就有说到,面向过程和面向对象语言的区别和优劣势,当时只是当做科普听听就是。然后经过一个星期的和C一模一样的语法基础,到了面向对象的相遇。 老实说,以....
分类:其他好文   时间:2014-06-02 06:15:55    阅读次数:462
【leetcode】 Sudoku Solver
问题: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. ...
分类:其他好文   时间:2014-06-02 05:25:23    阅读次数:295
hibernate 检索方式
概述 Hibernate 提供了以下几种检索对象的方式 导航对象图检索方式: 根据已经加载的对象导航到其他对象 OID 检索方式: 按照对象的 OID 来检索对象HQL 检索方式: 使用面向对象的 HQL 查询语言QBC 检索方式: 使用 QBC(Query By Criteria) API 来检索对象. 这种 API 封装了基于字符串形式的查询语句, 提供了更加面向对象的查...
分类:系统相关   时间:2014-06-02 02:34:18    阅读次数:404
使用ADO.NET对SQL Server数据库进行访问
在上一篇博客中我们给大家简单介绍了一下VB.NET语言的一些情况,至于理论知识的学习我们可以利用VB的知识体系为基础,再将面向对象程序设计语言的知识进行融合便可进行编程实战。          如果我们需要访问一个企业关系数据库(比如SQL Server或者Oracle),并且需要包含由复杂关系构成的表中的数据,如何去实现?我们可以利用ADO.NET内置功能提取并操作数据,就想插入、更新和删除S...
分类:数据库   时间:2014-06-02 02:33:46    阅读次数:823
【leetcode】Valid Sudoku
问题: 在Sudoku Solver 中说道,会有一些提示解,这里就是验证下给定的提示解是否合法,即已经填加的数是否满足要求的三个条件。 bool isValidSudoku(vector > &board) { const int M = 9;//9 * 9 const int hash_len = 60;//'0' = 48 + 10 const char do...
分类:其他好文   时间:2014-06-02 02:31:45    阅读次数:279
【leetcode】N-queens
问题: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens...
分类:其他好文   时间:2014-06-01 18:08:28    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!