摘要: A binary tree is univalued if every node in the tree has the same value. Return if and only if the given tree is univalued. Example 1: Example 2: Note 阅读全文
posted @ 2019-01-04 09:25 Angel_Kitty 阅读(466) 评论(0) 推荐(0) 编辑
摘要: In a array of size , there are unique elements, and exactly one of these elements is repeated N times. Return the element repeated times. Example 1: E 阅读全文
posted @ 2019-01-04 09:23 Angel_Kitty 阅读(413) 评论(0) 推荐(0) 编辑
摘要: Given a binary matrix , we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means th 阅读全文
posted @ 2019-01-04 09:22 Angel_Kitty 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 实验二、语法设计——基于LL(1)文法的预测分析表法 一、实验目的 通过实验教学,加深学生对所学的关于编译的理论知识的理解,增强学生对所学知识的综合应用能力,并通过实践达到对所学的知识进行验证。通过对基于LL(1)文法的预测分析表法DFA模拟程序实验,使学生掌握确定的自上而下的语法分析的实现技术,及 阅读全文
posted @ 2019-01-04 09:17 Angel_Kitty 阅读(10837) 评论(1) 推荐(12) 编辑
摘要: 实验一、简单的词法设计——DFA模拟程序 一、实验目的 通过实验教学,加深学生对所学的关于编译的理论知识的理解,增强学生对所学知识的综合应用能力,并通过实践达到对所学的知识进行验证。通过对 模拟程序实验,使学生掌握词法分析的实现技术,及具体实现方法。通过本实验加深对词法分析程序的功能及实现方法的理解 阅读全文
posted @ 2019-01-04 08:35 Angel_Kitty 阅读(5405) 评论(0) 推荐(5) 编辑