commit d6685394d4975bbc29528490dd2ce179f82ef813 parent ea03a9e2e460fe9b4654b0385b803d7b4fc4e6a1 Author: Andrew Laack <andrew@laack.co> Date: Wed, 11 Jun 2025 21:44:35 -0500 Removed all binarys (oops) and updated gitignore. Diffstat:
| A | .gitignore | | | 1 | + |
| D | add-two-numbers/a.out | | | 0 | |
| D | contains-duplicate/a.out | | | 0 | |
| D | count-primes/a.out | | | 0 | |
| D | counting-bits/a.out | | | 0 | |
| D | customer-who-visited-but-did-not-make-any-transactions/customer-who-visited-without-transaction.sql | | | 10 | ---------- |
| D | guess_number/a.out | | | 0 | |
| D | implement-queue/a.out | | | 0 | |
| D | integer-to-roman/a.out | | | 0 | |
| D | kth-largest-element/a.out | | | 0 | |
| D | length-of-last-word/a.out | | | 0 | |
| D | longest-common-prefix/a.out | | | 0 | |
| D | longest-substring-without-repeating-characters/longest-substring.dart | | | 37 | ------------------------------------- |
| D | majority-element/a.out | | | 0 | |
| D | maximum-subarray/a.out | | | 0 | |
| D | median-of-sorted-arrays/a.out | | | 0 | |
| D | most-water/a.out | | | 0 | |
| D | palindrome-number/a.out | | | 0 | |
| D | remove-element/a.out | | | 0 | |
| D | remove-nth-node/a.out | | | 0 | |
| D | reverse-integer/a.out | | | 0 | |
| D | roman-to-integer/a.out | | | 0 | |
| D | single-number/a.out | | | 0 | |
| D | sort-an-array/a.out | | | 0 | |
| D | sort-list/a.out | | | 0 | |
| D | water-bottles/a.out | | | 0 |
26 files changed, 1 insertion(+), 47 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +*.out diff --git a/add-two-numbers/a.out b/add-two-numbers/a.out Binary files differ. diff --git a/contains-duplicate/a.out b/contains-duplicate/a.out Binary files differ. diff --git a/count-primes/a.out b/count-primes/a.out Binary files differ. diff --git a/counting-bits/a.out b/counting-bits/a.out Binary files differ. diff --git a/customer-who-visited-but-did-not-make-any-transactions/customer-who-visited-without-transaction.sql b/customer-who-visited-but-did-not-make-any-transactions/customer-who-visited-without-transaction.sql @@ -1,10 +0,0 @@ ---Given a list of customer visits and purchases ---return all customers who did not make any purchases ---at a given visit and how many times each did that. - -SELECT Visits.customer_id, COUNT(Visits.visit_id) as count_no_trans -FROM Visits -LEFT JOIN Transactions -ON Transactions.visit_id = Visits.visit_id -WHERE Transactions.transaction_id is NULL -GROUP BY Visits.customer_id diff --git a/guess_number/a.out b/guess_number/a.out Binary files differ. diff --git a/implement-queue/a.out b/implement-queue/a.out Binary files differ. diff --git a/integer-to-roman/a.out b/integer-to-roman/a.out Binary files differ. diff --git a/kth-largest-element/a.out b/kth-largest-element/a.out Binary files differ. diff --git a/length-of-last-word/a.out b/length-of-last-word/a.out Binary files differ. diff --git a/longest-common-prefix/a.out b/longest-common-prefix/a.out Binary files differ. diff --git a/longest-substring-without-repeating-characters/longest-substring.dart b/longest-substring-without-repeating-characters/longest-substring.dart @@ -1,37 +0,0 @@ -import 'dart:io'; - - -//Longest substring without repeating characters -//Runtime: 805ms Beats: 10.32% -//Memory: 173.7MB Beats: 23.87% - -void main(){ - Solution sol = new Solution(); - stdout.write("Input your string to find longest substring without repeating characters: "); - String input = stdin.readLineSync()!; - print(sol.lengthOfLongestSubstring(input)); -} -class Solution { - int lengthOfLongestSubstring(String s) { - int output = 0; - String current = ""; - for(int i = 0 ; i < s.length ; ++i){ - current = s[i]; - for(int x = i + 1; x < s.length ; ++x){ - if(current.contains(s[x])){ - if(current.length > output){ - output = current.length; - } - break; - } - else{ - current += s[x]; - } - } - if(current.length > output){ - output = current.length; - } - } - return output; - } -} diff --git a/majority-element/a.out b/majority-element/a.out Binary files differ. diff --git a/maximum-subarray/a.out b/maximum-subarray/a.out Binary files differ. diff --git a/median-of-sorted-arrays/a.out b/median-of-sorted-arrays/a.out Binary files differ. diff --git a/most-water/a.out b/most-water/a.out Binary files differ. diff --git a/palindrome-number/a.out b/palindrome-number/a.out Binary files differ. diff --git a/remove-element/a.out b/remove-element/a.out Binary files differ. diff --git a/remove-nth-node/a.out b/remove-nth-node/a.out Binary files differ. diff --git a/reverse-integer/a.out b/reverse-integer/a.out Binary files differ. diff --git a/roman-to-integer/a.out b/roman-to-integer/a.out Binary files differ. diff --git a/single-number/a.out b/single-number/a.out Binary files differ. diff --git a/sort-an-array/a.out b/sort-an-array/a.out Binary files differ. diff --git a/sort-list/a.out b/sort-list/a.out Binary files differ. diff --git a/water-bottles/a.out b/water-bottles/a.out Binary files differ.