Skip to content

Instantly share code, notes, and snippets.

View drewdev02's full-sized avatar
🎯
Focusing

Andrew Rodriguez drewdev02

🎯
Focusing
  • Havana
View GitHub Profile
package com.thealgorithms.searches;
class PerfectBinarySearch {
static int binarySearch(int[] arr, int target) {
int low = 0;
int high = arr.length - 1;
while (low <= high) {
int mid = (low + high) / 2;
@drewdev02
drewdev02 / File.java
Created March 10, 2023 23:42
Create txt
package Entity;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.thedeanda.lorem.LoremIpsum;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import java.io.BufferedWriter;
package src;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.WriterException;
import com.google.zxing.qrcode.QRCodeWriter;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;