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.codehackersblog.stack; | |
import java.util.Scanner; | |
/** | |
* | |
* @author Psycho_Coder | |
*/ | |
public class JStackArray implements StackInterface { |
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.codehackersblog.stack; | |
/** | |
* | |
* @author PsychoCoder | |
*/ | |
public interface StackInterface { | |
/** | |
* |
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
_____ _ _____ ____ ____ _____ _ _____ | |
/ __// \ /\/ __// ___\/ ___\ /__ __\/ \ /|/ __/ | |
| | _| | ||| \ | \| \ / \ | |_||| \ | |
| |_//| \_/|| /_ \___ |\___ | | | | | ||| /_ | |
\____\____/\____\____/\____/ \_/ \_/ \|\____\ | |
_ _ _ ____ _____ ____ | |
/ \ /|/ \ /\/ \__/|/ _ \/ __// __\ | |
| |\ ||| | ||| |\/||| | //| \ | \/| | |
| | \||| \_/|| | ||| |_\| /_ | / |
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
import random | |
title = ''' | |
_____ _ _____ ____ ____ _____ _ _____ | |
/ __// \ /\/ __// ___\/ ___\ /__ __\/ \ /|/ __/ | |
| | _| | ||| \ | \| \ / \ | |_||| \ | |
| |_//| \_/|| /_ \___ |\___ | | | | | ||| /_ | |
\____\\____/\____\\____/\____/ \_/ \_/ \|\____\ | |
_ _ _ ____ _____ ____ |
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.codehackersblog.test; | |
import java.util.Iterator; | |
import com.codehackersblog.Bag.Bag; | |
/** | |
* | |
* @author psychocoder | |
*/ |
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
import java.awt.Color; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.imageio.ImageIO; | |
public class Img2Ascii { |
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 dragon; | |
import java.awt.AlphaComposite; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.GraphicsConfiguration; | |
import java.awt.GraphicsDevice; | |
import java.awt.GraphicsEnvironment; |
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 dragon; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.GraphicsConfiguration; | |
import java.awt.GraphicsDevice; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.image.BufferedImage; | |
import java.io.File; |
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> | |
#include<string.h> | |
/* Following function is used by the library qsort() function to sort an array of chars */ | |
int compare (const void * a, const void * b); | |
/* this function recursively prints all repeated permutations of the given string.*/ | |
void LRecurse (char *str, char* data, int last, int index) | |
{ |
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 <iostream> | |
#include <cstring> | |
void swap(char* src, char* dst) | |
{ | |
char ch = *dst; | |
*dst = *src; | |
*src = ch; | |
} |