pub struct Solution;
Implementations§
Source§impl Solution
impl Solution
pub fn divisor_game(n: i32) -> bool
pub fn divisor_game_recursive(n: i32) -> bool
Source§impl Solution
impl Solution
pub fn integer_break(n: i32) -> i32
pub fn integer_break_recursive(_: i32) -> i32
Source§impl Solution
impl Solution
pub fn can_partition_naive(nums: Vec<i32>) -> bool
pub fn can_partition_whats_left(nums: Vec<i32>) -> bool
pub fn can_partition_sort_and_try(nums: Vec<i32>) -> bool
pub fn can_partition_odd_even_counter(nums: Vec<i32>) -> bool
pub fn can_partition_dp_top_down( nums: &Vec<i32>, start_from: usize, whats_left: i32, goal_amount: i32, ) -> bool
pub fn can_partition(nums: Vec<i32>) -> bool
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more