The following repository contains solutions written for practice problem in the Mastering Algorithm and Data Structure and Big Tech (FAANG) Question.
The solutions are written in JavaScript and Python.
For a given string return the reversed outcome.
Determine whether a given string is a palindrome or not
For a given integer, return the reversed out put
Given an array of integers, return the indicies of two numbers that add up to the given target.
For a given string, find the character with the most frequency.
For a program console log numbers from 1 to n, but for multiples of three show "fizz" and five print "buzz". For number that is a multiple of three and five show "fizzbuzz".
Given an array and chunk size, divide the array into a subarray where each array is length of the given size
Given an array of positive integer where each integer represents of a value on a chart. Find two lines which together Return the area of water it would hold.
Given two strings, determine whether the two strings are anagram from one another.
For a given string, capitalize the first letter of the string
Write a function that accepts positive number N and the function should console log a step shape with N levels using # char
Write a function that takes in a string and returns the number of vowels in the string.
Similar to problem 13, but instead return the indiviudal number of the vowel counts
vowels('Hi There!)
i -> 1
e -> 2
Given a string, find the length of the longest substring without repeating characters.
nonrepeat("abccabb") -> 3
Suppose that you are developing a To Do List. Answer the following questions centering the following topics.
- Functional Requirements
- Non-functioal Requirements
- Capacity Estimation
- Data Model
- API Design
- System Design
Suppose that you are developing a TinyURL - a system that allows users to shorten a regular URL. Answer the following questions regarding system designs.
- Functional Requirements
- Non-functioal Requirements
- Capacity Estimation
- Data Model
- API Design
- System Design
For a given array, sort it by using the bubble sort algorithm and return the sorted array.
For a given array, sort it by using Selection Sort algorithm and return the sorted array.
For a given array, sort it in increasing order and remove the duplicates from the element.
Write a function that print outs the n-th entry in the fibonacci series. The fibonacci series is an ordering of numbers where each number is the sum of the preceeding two.
Given two sorted array nums1 and nums2 of unequal length and return the median of the two sorted array.
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
Given an integer x, return true if x is a palindrome, and false otherwise.
Input: x = 121
Output: true
Explanation: 121 reads as 121 from left to right and from right to left.
Given an integer, convert it to a Roman numeral.
For a given roman numeral, convert it to integer
Input: s = "III"
Output: 3
Input: s = "LVIII"
Output: 58
Explanation: L = 50, V= 5, III = 3.
For a given array, find the three array and partition it.
Given two intergers dividend and divisior, divide two integers without using any multiplication, divisions, or mod.
Implement pow(x,n) which calculates x raised to the power of n (i.e. x^n)
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. NOTE:You must not use any built-in BigInteger library or convert the inputs to integers directly.
Given a positive integer x. Your task is to check, if it is even or odd (Any number that gives zero as remainder when divided by 2 is an even number). Note: Return "Even" if the number is even; otherwise, return "Odd".
A pratice problem to develop an API on python with the following conditions
python3 -m uvicorn main:app --reload
- GET a random care