- 博客(4)
- 收藏
- 关注
原创 A1097 Deduplication on a Linked List
静态链表实现 取巧+思路清晰 但是时间复杂度比较高 可以优化insertGiven a singly linked listLwith integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each valueK, only the first node of which the value or absolute ...
2022-05-04 12:39:27 468
转载 java为什么要分为service层,dao层,controller层?
什么是三层架构?三层架构是指:视图层View、业务逻辑层Service、数据访问层DAO。他们分别完成不同的功能。View层:用于接收用户提交请求的代码Service层:系统的业务逻辑主要在这里完成DAO层:直接操作数据库的代码为了更好的降低各层之间的 耦合度(系统的复杂度,在三层架构程序设计中,采用面向抽象变成。即上层对下层的调用,是通过接口实现的。而下层对上层的真正服务提供者,是下层接口的实现类。服务标准(接口)是相同的,服务提供者(实现类)可以更换。这就实现了层间解耦合。(
2022-04-15 16:22:33 1079 1
原创 1163 Dijkstra Sequence
Dijkstra's algorithm is one of the very famous greedy algorithms.It is used for solving the single source shortest path problem which gives the shortest paths from one particular source vertex to all the other vertices of the given graph. It was conceiv..
2022-04-15 16:10:31 136
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人