Usman Ali's repositories
Longest-Common-Prefix-LeetCode-Python
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: strs = ["flower","flow","flight"] Output: "fl" Example 2: Input: strs = ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input strings.
Array-Filters-Project-Javscript
This project involved the use of using the HTML5 dataset property to select items from the project's store. This was only the second time I used it and I have a better understanding of how I can use JavaScript to retrieve data from HTML elements.
JavaScript-FlashCard-Project
This is the Flash card project based on arrays
JavaScript-Simple-Counter-Project
It really is a beginner's program. The idea was to click on either one of two buttons which registered the count of the on page element.
Palindrome-Number-Leet-Code-Python
Given an integer x, return true if x is a palindrome, and false otherwise. Example 1: Input: x = 121 Output: true Explanation: 121 reads as 121 from left to right and from right to left. Example 2: Input: x = -121 Output: false Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.
Pass-the-Message-Project-Javascript
This project challenges you to select the input element's value from the DOM. When you click on the “Send” button you'll see the message inputted in the box in the “Last Message Delivered” Section. For me this project was fairly easy.
Random-Quotes-JavaScript-Project
This is simple Project using html and JavaScript where On click random quotes will generate.
Add-Binary-LeetCode-Python
Given two binary strings a and b, return their sum as a binary string.
Climbing-Stairs-LeetCode-Python
You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Duplicate-Emails-LeetCode
Write an SQL query to report all the duplicate emails. Return the result table in any order.
hello-world-function
Write a function createHelloWorld. It should return a new function that always returns "Hello World".
LeetCode-Combine-Two-Tables
Write an SQL query to report the first name, last name, city, and state of each person in the Person table. If the address of a personId is not present in the Address table, report null instead.
LeetCode-Delete-Duplicate-Emails
Write an SQL query to delete all the duplicate emails, keeping only one unique email with the smallest id. Note that you are supposed to write a DELETE statement and not a SELECT one. After running your script, the answer shown is the Person table.
LeetCode-Employees-Earning-More-Than-Their-Managers
Write an SQL query to find the employees who earn more than their managers. Return the result table in any order.
Length-of-Last-Word-LeetCode-Python
Given a string s consisting of words and spaces, return the length of the last word in the string. A word is a maximal substring consisting of non-space characters only.
Merge-Sorted-Array-LeetCode-Python
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively.
Plus-One-LeetCode-Python
You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit of the integer. The digits are ordered from most significant to least significant in left-to-right order. The large integer does not contain any leading 0's. Increment the large integer by one and return the resulting array of digits.