• Home
  • About
  • Interview Problems
  • Search

Interview Problems

Tutorials and best practices of the various Javascript Problems

  • Array Previous Less February 15, 2023 Array Previous Less
  • Buble Sort February 14, 2023 Bubble Sort
  • Array Maximal Adjacent Difference February 13, 2023 Array Maximal Adjacent Difference
  • Default Argument February 12, 2023 Default Argument
  • Sorting Array of Objects and Arrays February 11, 2023 Sorting Array of Objects and Arrays
  • Sorting with Comparator function v2 February 10, 2023 Sorting with Comparator function -v2
  • Sorting with Comparator function February 09, 2023 Sorting with Comparator Function
  • Array Max Consecutive Sum February 08, 2023 Array Max Consecutive Sum
  • Remove Duplicates November 15, 2022 Remove Duplicates
  • Min Max v2 November 14, 2022 Min Max v2
  • Remove Duplicates v2 November 13, 2022 Remove Duplicates v2
  • Remove Duplicates v3 November 12, 2022 Remove Duplicates v3
  • Min Max November 01, 2022 Min Max
  • Array Conversion March 16, 2022 Array Conversion
  • Array Change March 15, 2022 Array Change
  • Are Similar March 14, 2022 Are SimilarTwo arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays.
  • Are Equally Strong March 13, 2022 Are Equally StrongCall two arms equally strong if the heaviest weights they each are able to lift are equal.Call two people equally strong if their strongest arms are equally strong (the strongest arm can be both the right and the left), and so are their weakest arms.Given your and your friend’s arms’ lifting capabilities find out if you two are equally strong.
  • Alternating Sum March 12, 2022 Alternating SumYou are given an array of positive integers - the weights of the people. Return an array of two integers, where the first element is the total weight of team 1, and the second element is the total weight of team 2 after the division is complete.
  • Alphabetic SubSequence March 11, 2022 Alphabetic SubSequenceCheck whether the given string is a subsequence of the plaintext alphabet.
  • Alphabetic Shift March 10, 2022 Alphabetic ShiftGiven a string, replace each its character by the next one in the English alphabet (z would be replaced by a).
  • Almost Increasing Sequence March 09, 2022 Almost Increasing SequenceGiven a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element from the array.
  • Border v2 March 08, 2022 Border v2
  • Border March 07, 2022 Border
  • Add March 06, 2022 Add
  • fibonacci Recursive v2 January 26, 2022 Fibonacci Recursive v2
  • Fibonacci Iterative v2 January 25, 2022 Fibonacci Iterative v2
  • Spiral Matrix v-1 January 24, 2022 Spiral Matrix v-1Write a function that accepts an integer N and returns a NxN spiral matrix.’
  • Find Vowel-v2 January 23, 2022 Find Vowel-v2We write a function that returns the number of vowels used in a string. Vowels are characters ‘a’ ,’e’, ‘i’, ‘o’ and ‘u’
  • Add Key and Value January 22, 2022 Add Key and Value
  • Reverse String-v8 January 21, 2022 Reverse String-v8
  • Reverse String-v7 January 20, 2022 Reverse String-v7
  • Pyramid v2 January 19, 2022 Pyramid v2
  • HasOddNumber January 18, 2022 HasOddNumber
  • Maching Braces January 17, 2022 Maching Braces
  • Reverse String-v6 January 16, 2022 Reverse String-v6
  • Has A Zero January 15, 2022 Has A Zero
  • HasEvenNumber January 14, 2022 HasEvenNumber
  • Has Only Odd Number January 13, 2022 Has Only Odd Number
  • Has Only Even Number January 12, 2022 Has Only EvenNumber
  • HasNoDuplicates January 11, 2022 Has No Duplicates
  • Has Certain Key January 10, 2022 Has Certain KeyIn nested objects if all of the keys have same key it returns true if some of them do not have it returns false;
  • Has Certain Value January 09, 2022 Has Certain ValueWrite a function called hasCertainValue which accepts an array of objects and a key, and a value, and returns true if every single object in the array contains that value for the specific key. Otherwise it should return false.
  • Special Multiply January 08, 2022 Special MultiplySpecial Multiply is a form of code where we have one function and we check if they are not arrays, strings or objects plain numbers and we return a callback function where we multiply the parameters;
  • Extract Value January 07, 2022 Vowel CountExtracting value from nested arrays and key to find which array are left behind.
  • Vowel Count January 06, 2022 Vowel CountVowel Count is counting the vowels (a,e,i,o,u) from string.
  • Guessing Game January 05, 2022 Guessing GameGuessing Game is a game where you guess if the number from first function is the guess from the second one and if your guess is bigger you return “Your guess is too high!” else “Your guess is too low!”
  • Find Vowel-v1 January 04, 2022 Find Vowel-v1We write a function that returns the number of vowels used in a string. Vowels are characters ‘a’ ,’e’, ‘i’, ‘o’ and ‘u’
  • Sentence Capitalization-v1 December 29, 2021 Sentence Capitalization v1
  • Sentence Capitalization-v2 December 28, 2021 Sentence Capitalization v2
  • The Steps Question December 26, 2021 The Steps Question
  • Anagram December 25, 2021 Anagram
  • Anagram v2 December 25, 2021 Anagram v2
  • Array Chunk v2 December 24, 2021 Array Chunk v2
  • Array Chunk December 16, 2021 Array Chunk
  • FizzBuzz December 15, 2021 FizzBuzz
  • FizzBuzz-v2 December 15, 2021 FizzBuzz v2
  • Max Char December 14, 2021 Max Char
  • Integer Reversal December 13, 2021 Integer Reversal
  • Palindrom-v6 December 12, 2021 Palindrom v6
  • Palindrom-v2 December 11, 2021 Palindrom v2
  • String Reversal v4 December 10, 2021 String Reversal v4
  • Max Non Overlapping Segments December 08, 2021 From Codility Max Non Overlapping Segments”
  • Min ABS SUM December 07, 2021 From Codility
  • Numbers December 05, 2021 From Codility
  • Div Count December 03, 2021 Div Count
  • Cars Passing December 02, 2021 Cars Passing
  • Max Profit November 29, 2021 Max Profit
  • Maximum Sub Array November 28, 2021 Maximum Sub Array
  • Dominator November 27, 2021 Dominator
  • MaximumSliceProblem November 26, 2021 Maximum Slice Problem
  • Brackets November 17, 2021 Brackets
  • Sieve of Eratosthenes October 24, 2021 Sieve of Eratosthenes
  • Memoized Fibonacci October 23, 2021 Memoized Fibonacci
  • Find Factorial Recursive October 10, 2021 Find Factorial Recursive
  • Fibonacci Iterative October 09, 2021 Fibonacci Iterative
  • Find Factorial Recurative October 09, 2021 Fibonacci Iterative Recursive
  • Fibonacci-v2 August 04, 2021 Fibonacci v2In mathematics, the Fibonacci numbers, commonly denoted Fn, form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. ___
  • ArrayConvertion July 18, 2021 ArrayConvertion
  • Palindrom-v5 July 17, 2021 Palindrom v5
  • Palindrom-v4 July 16, 2021 Palindrom v4
  • CountLetters May 18, 2021 CountLetters
  • isPrime-v2 May 16, 2021 isPrime-v2
  • isPrime May 15, 2021 isPrime
  • AreSimilar May 07, 2021 Are SimilarYou are given an array of integers. On each move you are allowed to increase exactly one of its element by one. Find the minimal number of moves required to obtain a strictly increasing sequence from the input.___
  • AreSimilar May 06, 2021 AreSimilarTwo arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays. ___
  • AreEquallyStrong May 05, 2021 AreEquallyStrongCall two arms equally strong if the heaviest weights they each are able to lift are equal.
  • AlternatingSum May 04, 2021 Alternating SumAn alternating sum is a sequence of arithmetic operations in which each addition. is followed by a subtraction, and viceversa, applied to a sequence of numerical entities___
  • AlphabeticSubSequence May 03, 2021 AlphabeticSubSequenceGiven two strings, find if first string is a subsequence of second___
  • Factorial v2 April 19, 2021 Factorial v2
  • BinarySearch April 18, 2021 BinarySearchIn computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array.___
  • Two Sum February 02, 2021 Two SumGiven an array of integers nums and an integer target , return indices of the two numbers such that they add up to target .
  • Fibonacci January 08, 2021 FibonacciIn mathematics, the Fibonacci numbers, commonly denoted Fn, form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. ___
  • Pyramid January 06, 2021 Pyramid
  • Second Value January 02, 2021 Second ValueSecond Value is when we return the middle value and unique values.
  • Reverse String v5 December 11, 2020 Reverse String v5
  • Unique Values-v3 November 30, 2020 Unique Values-v3
  • Unique Properties October 16, 2020 Unique Properties
  • Unique Values-v2 October 16, 2020 Unique Values-v2
  • Unique Values-v2 October 16, 2020 Unique Values-v2
  • Reverse Array in Place October 15, 2020 Reverse Array in Place
  • Array Sum October 14, 2020 Array Sum
  • Reversed String-v3 October 13, 2020 Reversed String
  • Unique Values October 12, 2020 Unique Values
  • Caeser Cipher October 09, 2020 Caeser Cipher
  • Capitalize Letter October 09, 2020 Capitalize Letter
  • Palindrom-v3 October 08, 2020 Palindrom v3
  • Longest Words October 07, 2020 Longest Words
  • Harmless Ransom Note October 06, 2020 Harmless Ransom Note
  • Harmless Ransom Note October 06, 2020 Harmless Ransom Note
  • Rock Paper Scissors December 30, 2019 Rock Paper Scissors
  • Dice Game December 30, 2019 Dice Game
  • The Steps Question December 29, 2019 The Steps Question
  • Reverse String-v2 December 29, 2019 Reverse String v2
  • Background Color Generator December 29, 2019 Background Color Generator
  • Alphabetic Shift December 22, 2019 Alphabetic Shift
  • Almost Increasing Sequence December 22, 2019 Almost Increasing Sequence
  • All Longest Strings December 22, 2019 All Longest Strings
  • Adjecent Element Product December 22, 2019 Adjecent Element Product Given an array of integers, find the pair of adjacent elements that has the largest product and return that product.
  • Absolute Values Sum Minization December 22, 2019 Absolute Values Sum MinizationGiven a sorted array of integers a, find an integer x from a such that the value of abc(a[0] - x) + abs(a[1] - x) + … + abc(a[a.length - 1] - x)is the smallest possible (here abc denotes the absolute value).If there are several possible answers output the smallest one.
  • Add Two Digits December 22, 2019 Add Two Digitis
  • Truncate String October 06, 2019 Truncate String
  • String Repeater October 06, 2019 String Repeater
  • Palindrom October 06, 2019 Palindrom
  • Adding array of numbers September 29, 2019 Adding array of numbers
  • Factorial September 29, 2019 Factorial Calculator
  • Triple Add September 22, 2019 Triple Add
  • String Reversal September 22, 2019 String Reversal
  • How to solve problems September 22, 2019 How to solve problems
  • Introduction March 01, 2017 Programming in General
© 2024 Emir Mustafoski. Powered by Jekyll using the So Simple Theme.