Skip to content

Commit

Permalink
more links
Browse files Browse the repository at this point in the history
  • Loading branch information
bephrem1 committed Mar 18, 2020
1 parent 7016297 commit 7f0606a
Show file tree
Hide file tree
Showing 161 changed files with 1,438 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Arrays, Primitives, Strings/3sum/3sum.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) visit us at:
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int getSum(int a, int b) {

Expand Down
9 changes: 9 additions & 0 deletions Arrays, Primitives, Strings/ChangingBase/ChangingBase.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

public class Solution {
public String changeBase(String numAsString, int b1, int b2) {
boolean isNegative = numAsString.startsWith("-");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int[] plusOne(int[] digits) {
/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

public class Solution {
private String intToString(int num) {
boolean isNegative = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int longestPalindrome(String s) {
int longestPalindromeLength = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int longestPalindrome(String s) {
int matchings = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public String longestPalindrome(String s) {
PalindromeFinder pf = new PalindromeFinder(s);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public String longestPalindrome(String s) {
PalindromeFinder pf = new PalindromeFinder(s);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public void nextPermutation(int[] nums) {
// Grab the index of the 2nd to last element in the array
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public boolean isPalindrome(int x) {
if (x < 0) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
'''
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
'''

import math

class Solution(object):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public List<String> findAndReplacePattern(String[] words, String pattern) {
List<String> matches = new ArrayList<>();
Expand Down
9 changes: 9 additions & 0 deletions Arrays, Primitives, Strings/RotateImage/LayerByLayer.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public void rotate(int[][] matrix) {
int size = matrix.length - 1; // this is really the last index
Expand Down
9 changes: 9 additions & 0 deletions Arrays, Primitives, Strings/RotateImage/MatrixTranspose.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public void rotate(int[][] matrix) {
flipVertically(matrix);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public static int secondLargest(int arr[]) {
int firstLargest = Integer.MIN_VALUE;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public List<Integer> spiralOrder(int[][] matrix) {
List<Integer> spiralSequence = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int maxProfit(int[] prices) {
if (prices.length == 0) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int maxProfit(int[] prices) {
if (prices.length == 0) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int coinChange(int[] coins, int amount) {
// We use this to fill the dp table with default values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int coinChange(int[] coins, int amount) {
if (amount < 1) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int change(int amount, int[] coins) {
int[][] dp = new int[coins.length + 1][amount + 1];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int climbStairs(int n) {
/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int climbStairs(int n) {
int memo[] = new int[n + 1];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int climbStairs(int n) {
return climbStairsHelper(n);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int numTrees(int n) {
/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

public class Solution {
private static final int GAP_COST = 1;
private static final Map<String, Integer> alignmentCosts = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
'''
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
'''

class Solution(object):
def numDecodings(self, s):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int numDecodings(String s) {
int[] dp = new int[s.length()];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int levenshteinDistance(String s1, String s2) {
int[][] opt = new int[s1.length()][s2.length()];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
This repository is no longer actively maintained. To find all solutions
to this problem (and practice coding more problems) at:
~~~~~~~~~~~~~~~~~~~~~~~~~
https://backtobackswe.com
~~~~~~~~~~~~~~~~~~~~~~~~~
*/

class Solution {
public int eggDrop(int totalEggs, int totalFloors) {
/*
Expand Down
Loading

0 comments on commit 7f0606a

Please sign in to comment.