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
// Type the following into your cmd | |
setx PROMPT $p$s$s$c$s$d$s$f$s:$_$c$$$f-$g$s |
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
{"lastUpload":"2017-09-14T14:17:12.462Z","extensionVersion":"v2.8.3"} |
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
package com.demo.advjava; | |
public class DLList { | |
Node head; | |
class Node { | |
int data; | |
Node prev, next; |
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
#include<stdio.h> | |
#include<stdlib.h> | |
struct nde { | |
int data; | |
struct nde *link; | |
}; | |
typedef struct nde* Node; |
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
package com.demo.advjava; | |
public class CircularLinkedList { | |
Node head; | |
class Node { | |
int data; | |
Node next; |
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
package com.demo.advjava; | |
public class NQueensTesting { | |
int boardSize = 8; | |
int[][] board = new int[boardSize][boardSize]; | |
public void populateBoard() { | |
int i, j; | |
for (i = 0; i < boardSize; i++) |
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
package com.demo.advjava; | |
import java.awt.AWTException; | |
import java.awt.Robot; | |
import java.awt.event.KeyEvent; | |
import java.io.IOException; | |
public class NotepadFun { | |
public static void main(String[] args) throws IOException, InterruptedException, AWTException { | |
Runtime.getRuntime().exec("gedit"); |
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
package com.demo.advjava; | |
public class GraphImplementationAdjMat { | |
int[][] graph; | |
public GraphImplementationAdjMat(int vertices) { | |
graph = new int[vertices][vertices]; | |
} |
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
package com.demo.advjava; | |
public class StarsPattern { | |
public static void main(String[] args) { | |
printStars90(10); | |
printStarsRev(10); | |
// printStarsRev(10); | |
printStars(10); | |
} |
OlderNewer