[−][src]Struct pegitan::Solution
Implementations
impl Solution
[src]
pub fn single_number(nums: Vec<i32>) -> i32
[src]
impl Solution
[src]
pub fn max_product(nums: Vec<i32>) -> i32
[src]
impl Solution
[src]
pub fn max_area_5425(
h: i32,
w: i32,
horizontal_cuts: Vec<i32>,
vertical_cuts: Vec<i32>
) -> i32
[src]
h: i32,
w: i32,
horizontal_cuts: Vec<i32>,
vertical_cuts: Vec<i32>
) -> i32
impl Solution
[src]
impl Solution
[src]
pub fn remove_outer_parentheses(s: String) -> String
[src]
impl Solution
[src]
pub fn divisor_game(n: i32) -> bool
[src]
pub fn divisor_game_recursive(n: i32) -> bool
[src]
impl Solution
[src]
pub fn max_area_naive(height: Vec<i32>) -> i32
[src]
pub fn max_area_single_pass(height: Vec<i32>) -> i32
[src]
pub fn max_area(height: Vec<i32>) -> i32
[src]
impl Solution
[src]
pub fn defang_i_paddr<T>(address: T) -> String where
T: Into<String>,
[src]
T: Into<String>,
impl Solution
[src]
pub fn roman_to_int<T>(_: T) -> i32 where
T: Into<String>,
[src]
T: Into<String>,
impl Solution
[src]
impl Solution
[src]
impl Solution
[src]
pub fn remove_element(_nums: &mut Vec<i32>, _val: i32) -> i32
[src]
pub fn remove_element_two_pointer(nums: &mut Vec<i32>, val: i32) -> i32
[src]
impl Solution
[src]
pub fn coin_change_brute_force(coins: Vec<i32>, amount: i32) -> i32
[src]
pub fn coin_change_brute_force_recursion(
coin_idx: usize,
coins: &Vec<i32>,
amount: i32
) -> i32
[src]
coin_idx: usize,
coins: &Vec<i32>,
amount: i32
) -> i32
pub fn coin_change(coins: Vec<i32>, amount: i32) -> i32
[src]
impl Solution
[src]
pub fn integer_break(n: i32) -> i32
[src]
pub fn integer_break_recursive(_: i32) -> i32
[src]
impl Solution
[src]
pub fn is_subsequence<T>(s: T, t: T) -> bool where
T: Into<String>,
[src]
T: Into<String>,
impl Solution
[src]
pub fn can_partition_naive(nums: Vec<i32>) -> bool
[src]
pub fn can_partition_whats_left(nums: Vec<i32>) -> bool
[src]
pub fn can_partition_sort_and_try(nums: Vec<i32>) -> bool
[src]
pub fn can_partition_odd_even_counter(nums: Vec<i32>) -> bool
[src]
pub fn can_partition_dp_top_down(
nums: &Vec<i32>,
start_from: usize,
whats_left: i32,
goal_amount: i32
) -> bool
[src]
nums: &Vec<i32>,
start_from: usize,
whats_left: i32,
goal_amount: i32
) -> bool
pub fn can_partition(nums: Vec<i32>) -> bool
[src]
impl Solution
[src]
pub fn longest_palindrome<T>(s: T) -> String where
T: Into<String>,
[src]
T: Into<String>,
impl Solution
[src]
impl Solution
[src]
impl Solution
[src]
pub fn simplify_path<T>(path: T) -> String where
T: Into<String>,
[src]
T: Into<String>,
impl Solution
[src]
impl Solution
[src]
pub fn is_palindrome(input_value: i32) -> bool
[src]
impl Solution
[src]
pub fn total_fruit(_: Vec<i32>) -> i32
[src]
impl Solution
[src]
impl Solution
[src]
Auto Trait Implementations
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,