This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl Solution { | |
pub fn word_break(s: String, word_dict: Vec<String>) -> Vec<String> { | |
fn helper<'a>( | |
answer: &mut Vec<String>, | |
current: &mut Vec<&'a str>, | |
str: &str, | |
dict: &'a [String], | |
) { | |
if str.is_empty() { | |
answer.push(current.join(" ")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Process | Where-Object {($_.Name -eq 'dwm' -and $_.PagedMemorySize64 -gt 2147483648) -or ($_.Name -eq 'YourPhoneServer' -and $_.PagedMemorySize64 -gt 1073741824)} | ForEach-Object {$_.Kill()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run: main | |
./main | |
a.o: a.c | |
gcc $^ -c -o $@ | |
b.o: b.c | |
gcc $^ -c -o $@ | |
foo.a: a.o b.o |
OlderNewer