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
public class Permutation { | |
boolean permutation(String s, String t) { | |
if (s.length() != t.length()) { | |
return false; | |
} | |
//memo 저장 공간 | |
int[] marking = new int[128]; | |
//첫 번째 문자열을 memo +1 | |
char[] s_array = s.toCharArray(); | |
for (char c : s_array) { |
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
let | |
config = { | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = haskellPackagesNew: haskellPackagesOld: rec { | |
datetime = pkgs.haskell.lib.dontCheck haskellPackagesOld.datetime; | |
}; | |
}; | |
}; | |
}; |
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
{ | |
allowUnfree = true; | |
packageOverrides = super: let self = super.pkgs; in { | |
dotnetPackages = super.dotnetPackages // { | |
FSharpAutoComplete = super.dotnetPackages.FSharpAutoComplete.overrideDerivation (old : { | |
meta.platforms = super.stdenv.lib.platforms.linux ++ super.stdenv.lib.platforms.darwin; | |
}); | |
}; | |
}; | |
} |
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
with import <nixpkgs> {}; | |
runCommand "dot-emacs" { | |
# buildInputs could be here, but it doesn't do what you thought it would | |
} '' | |
mkdir -p $out | |
echo "Hello World" > $out/emacs.cfg | |
'' |
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
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.services.jupyter; | |
in | |
{ |
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
with (import <nixpkgs> {}).pkgsi686Linux; | |
stdenv.mkDerivation rec { | |
name = "scyther-${version}"; | |
version = "1.1.3"; | |
src = pkgs.fetchFromGitHub { | |
owner = "cascremers"; | |
repo = "scyther"; | |
rev = "v${version}"; | |
sha256 = "0rb4ha5bnjxnwj4f3hciq7kyj96fhw14hqbwl5kr9cdw8q62mx0h"; |