Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LSG_BackTrack ¶
type LSG_BackTrack struct { }
*
- @author ljfirst
- @version V1.0
- @date 2023/7/10 02:13
- @author-Email ljfirst@mail.ustc.edu.cn
- @blogURL https://blog.csdn.net/ljfirst
- @description *
func (*LSG_BackTrack) GetAttribute ¶
func (m *LSG_BackTrack) GetAttribute() *C.Attribute
func (*LSG_BackTrack) Method ¶
func (m *LSG_BackTrack) Method()
type LSG_Dynamic ¶
type LSG_Dynamic struct {
Sum int
}
*
- @author ljfirst
- @version V1.0
- @date 2023/7/10 02:11
- @author-Email ljfirst@mail.ustc.edu.cn
- @blogURL https://blog.csdn.net/ljfirst
- @description 打家劫舍
- 在一条直线上,有n个房屋,每个房屋中有数量不等的财宝,有一个盗 贼希望从房屋中盗取财宝,由于房屋中有报警器,
- 如果同时从相邻的两个房屋中盗取财宝就会触发报警器。问在不触发报警器的前提下,最多可获取多少财宝?
- 例如 [5,2,6,3,1,7],则选择5,6,7 *
func (*LSG_Dynamic) GetAttribute ¶
func (m *LSG_Dynamic) GetAttribute() *C.Attribute
func (*LSG_Dynamic) Method ¶
func (m *LSG_Dynamic) Method(array []int)
Click to show internal directories.
Click to hide internal directories.