Skip to content

Instantly share code, notes, and snippets.

@ShivangiM
ShivangiM / TicTacToe.java
Created September 11, 2023 08:29
Play Tic Tack Toe with running this Java program.
import java.util.Scanner;
public class TicTacToe {
private char[][] board;
private char currentPlayer;
public TicTacToe() {
board = new char[3][3];
currentPlayer = 'X';
initializeBoard();
@ShivangiM
ShivangiM / NumberPrinter.java
Last active September 11, 2023 08:11
CracklePop Number Printer. Of number 1 to 10, If the number is divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, print CracklePop.
public class NumberPrinter {
public static void main(String[] args) {
NumberPrinter printer = new NumberPrinter();
printer.printNumbers(1, 100);
}
public void printNumbers(int start, int end) {
for (int number = start; number <= end; number++) {
String result = generateOutput(number);
System.out.println(result);
@ShivangiM
ShivangiM / Pallindrom.ipynb
Created June 9, 2018 12:21
Visualizing_PallindromNumbers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShivangiM
ShivangiM / gist:e5339dc2585c4c80441269a50878fee2
Created October 20, 2016 19:22 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation: