Skip to content

Problem sets from the college text: "Computer Science An Interdisciplinary Approach by Robert Sedgewick; Kevin Wayne"

Notifications You must be signed in to change notification settings

khenderson20/CS_Princeton_Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS_Princeton_Programs

Website: https://introcs.cs.princeton.edu/java/home/

Problem sets from the college text: "Computer Science An Interdisciplinary Approach by Robert Sedgewick; Kevin Wayne"

https://redshelf-images.s3-external-1.amazonaws.com/thumbnail/9780134076485.png

All problem sets were taken from this text, will add more to README when I have some down time...

DivisorPattern.java

Enter an integer:25
* * * * * * * * * * * * * * * * * * * * * * * * * 1
* *   *   *   *   *   *   *   *   *   *   *   *   2
*   *     *     *     *     *     *     *     *   3
* *   *       *       *       *       *       *   4
*       *         *         *         *         * 5
* * *     *           *           *           *   6
*           *             *             *         7
* *   *       *               *               *   8
*   *           *                 *               9
* *     *         *                   *           10
*                   *                     *       11
* * * *   *           *                       *   12
*                       *                         13
* *         *             *                       14
*   *   *                   *                     15
* *   *       *               *                   16
*                               *                 17
* * *     *     *                 *               18
*                                   *             19
* *   * *         *                   *           20
*   *       *                           *         21
* *                 *                     *       22
*                                           *     23
* * * *   *   *       *                       *   24
*       *                                       * 25
PowersOfTwo.java

Enter an integer (n) to compute 2^n powers:30
 i      power
--------------------
 0          1
 1          2
 2          4
 3          8
 4         16
 5         32
 6         64
 7        128
 8        256
 9        512
10       1024
11       2048
12       4096
13       8192
14      16384
15      32768
16      65536
17     131072
18     262144
19     524288
20    1048576
21    2097152
22    4194304
23    8388608
24   16777216
25   33554432
26   67108864
27  134217728
28  268435456
29  536870912
30 1073741824
more to come... 

About

Problem sets from the college text: "Computer Science An Interdisciplinary Approach by Robert Sedgewick; Kevin Wayne"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages