Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0720553

Browse files
mais um projeto para praticar dynamic programming
1 parent 935029d commit 0720553

File tree

10 files changed

+584
-28
lines changed

10 files changed

+584
-28
lines changed

‎AnotherProjectAboutDynamicProgramming/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎AnotherProjectAboutDynamicProgramming/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎AnotherProjectAboutDynamicProgramming/.idea/workspace.xml

Lines changed: 376 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<option name="createStubs" value="true" />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
8+
</content>
9+
<orderEntry type="inheritedJdk" />
10+
<orderEntry type="sourceFolder" forTests="false" />
11+
</component>
12+
</module>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
https://discuss.codechef.com/questions/84754/help-me-master-dynamic-programming
2+
3+
* Interessante
4+
https://www.codechef.com/wiki/tutorial-dynamic-programming
5+
6+
7+
https://cs.stackexchange.com/questions/645/deciding-on-sub-problems-for-dynamic-programming?rq=1
8+
9+
https://discuss.codechef.com/questions/59051/mastering-dp
10+
11+
http://codeforces.com/blog/entry/3150
12+
13+
Lista de algoritmos e links para estudo interessante
14+
http://codeforces.com/blog/entry/23054
15+
16+
Tutorial
17+
https://codevillage.wordpress.com/2016/09/04/mastering-dynamic-programming/
18+
https://codevillage.wordpress.com/2016/09/06/mastering-dynamic-programming-2/
19+
20+
https://cs.stackexchange.com/questions/645/deciding-on-sub-problems-for-dynamic-programming?rq=1
21+
22+
23+
Maximum difference between two elements such that larger element appears after the smaller number
24+
https://www.geeksforgeeks.org/maximum-difference-between-two-elements/
25+
26+
Maximum profit by buying and selling a share at most twice
27+
https://www.geeksforgeeks.org/maximum-profit-by-buying-and-selling-a-share-at-most-twice/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
https://www.geeksforgeeks.org/combinatorial-game-theory-set-2-game-nim/
2+
https://www.geeksforgeeks.org/introduction-to-combinatorial-game-theory/
3+
http://massivealgorithms.blogspot.com.br/2015/01/hackerrank-vertical-rooks.html
4+
http://massivealgorithms.blogspot.com.br/2015/01/hackerrank-vertical-rooks.html
5+
6+
7+
Pesquisar
8+
Northcott's variant of the Nim
9+
10+
Gambling formula
11+
https://en.wikipedia.org/wiki/Kelly_criterion
12+
https://en.wikipedia.org/wiki/Gambling_and_information_theory
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package problems.hackerrank;
2+
3+
4+
/**
5+
* https://www.hackerrank.com/contests/w28/challenges/the-great-xor
6+
* */
7+
public class GreatXor {
8+
9+
public static void main(String[] args) {
10+
11+
}
12+
13+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package problems.hackerrank;
2+
3+
import java.io.*;
4+
import java.util.StringTokenizer;
5+
6+
/**
7+
* https://www.hackerrank.com/challenges/vertical-rooks/problem
8+
* */
9+
10+
public class VerticalRooks {
11+
12+
private static final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
13+
private static final PrintWriter writer = new PrintWriter(new OutputStreamWriter(System.out), true);
14+
15+
16+
public static void solver() throws IOException {
17+
18+
int cases = Integer.parseInt(reader.readLine());
19+
20+
while(cases > 0) {
21+
int sizeTable = Integer.parseInt(reader.readLine());
22+
int [] playerA = new int[sizeTable];
23+
int [] playerB = new int[sizeTable];
24+
for(int i=0; i<sizeTable; i++)
25+
playerA[i] = Integer.parseInt(reader.readLine());
26+
27+
28+
for(int i=0; i<sizeTable; i++)
29+
playerB[i] = Integer.parseInt(reader.readLine());
30+
}
31+
32+
33+
34+
35+
}
36+
37+
public static void main(String[] args) {
38+
39+
}
40+
41+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package xplore.stockprofitproblem;
2+
3+
/**
4+
* https://www.geeksforgeeks.org/stock-buy-sell/
5+
* */
6+
7+
public class StockMaximizeProfit {
8+
9+
public static void main(String[] args) {
10+
11+
}
12+
}

‎week0fC0d3/WeekOfCode36/.idea/workspace.xml

Lines changed: 77 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /