shahriar-ratul / problem-solving

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1 How is a bubble sort algorithm implemented?

2 How is a merge sort algorithm implemented?

3 How do you count the occurrence of a given character in a string?

4. How do you print the first non-repeated character from a string?

5 How do you convert a given String into int like the atoi()?

6 How do you implement a bucket sort algorithm?

7 How do you implement a counting sort algorithm?

8 How do you remove duplicates from an array in place?

9 How do you reverse an array in place in Java?

10 How are duplicates removed from an array without using any library?

11 How is a radix sort algorithm implemented?

12 How do you swap two numbers without using the third variable?

13 How do you check if two rectangles overlap with each other?

14 How do you design a vending machine?

15 How do you find the missing number in a given integer array of 1 to 100?

16 How do you find the duplicate number on a given integer array?

17 How do you find duplicate numbers in an array if it contains multiple duplicates?

18 How is an iterative quicksort algorithm implemented? (solution)

19 How do you find the largest and smallest number in an unsorted integer array? (solution)

20 How do you reverse a linked list in place? (solution)

21 How to add an element at the middle of the linked list? (solution)

22 How do you sort a linked list in Java? (solution)

23 How do you find all pairs of an integer array whose sum is equal to a given number? (solution)

24 How do you implement an insertion sort algorithm? (solution)

25 How are duplicates removed from a given array in Java? (solution)

26 how to remove the duplicate character from String? (solution)

27 How to find the maximum occurring character in given String? (solution)

28 How is an integer array sorted in place using the quicksort algorithm? (solution)

29 How do you reverse a given string in place? (solution)

30 How do you print duplicate characters from a string? (solution)

31 How do you check if two strings are anagrams of each other? (solution)Auto-Open Markdown PreviewAuto-Open Markdown Preview

32 How do you find all the permutations of a string? (solution)

33 How can a given string be reversed using recursion? (solution)

34 How do you check if a given string is a palindrome? (solution)

35 How do you find the length of the longest substring without repeating characters? (solution)

36 Given string str, How do you find the longest palindromic substring in str? (solution)

37 How do you check if a string contains only digits? (solution)

38 How to remove Nth Node from the end of a linked list? (solution)

39 How to merge two sorted linked list? (solution)

40 How to convert a sorted list to a binary search tree? (solution)

41 How do you find duplicate characters in a given string? (solution)

42 How do you count the number of vowels and consonants in a given string? (solution)

43 How do you reverse words in a given sentence without using any library method? (solution)

44 How do you check if two strings are a rotation of each other? (solution)

45 How to convert a byte array to String? (solution)

46 How do you remove a given character from String? (solution)

47 How do you find the middle element of a singly linked list in one pass? (solution)

48 How do you check if a given linked list contains a cycle? How do you find the starting node of the cycle? (solution)

49 How do you reverse a linked list? (solution)

50 How do you reverse a singly linked list without recursion? (solution)

51 How are duplicate nodes removed in an unsorted linked list? (solution)

52 How do you find the length of a singly linked list? (solution)

53 How do you find the third node from the end in a singly linked list? (solution)

54 How do you find the sum of two linked lists using Stack? (solution)

55 What is the difference between array and linked list? (answer)

56 How to remove duplicates from a sorted linked list? (solution)

57 How to find the node at which the intersection of two singly linked lists begins. (solution)

58 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. (solution)

59 How to check if a given linked list is a palindrome? (solution)

60 How to remove all elements from a linked list of integers which matches with given value? (solution)

61 How is a binary search tree implemented? (solution)

62 How do you perform preorder traversal in a given binary tree? (solution)

63 How do you traverse a given binary tree in preorder without recursion? (solution)

64 How do you perform an inorder traversal in a given binary tree? (solution)

65 How do you print all nodes of a given binary tree using inorder traversal without recursion? (solution)

66 How do you implement a postorder traversal algorithm? (solution)

67 How do you traverse a binary tree in postorder traversal without recursion? (solution)

68 How are all leaves of a binary search tree printed? (solution)

69 How do you count a number of leaf nodes in a given binary tree? (solution)

70 How do you perform a binary search in a given array? (solution)

71 How to Swap two numbers without using the third variable? (solution)

72 How to check if two rectangles overlap with each other? (solution)

73 How to design a Vending Machine? (solution)

74 How to implement an LRU Cache in your favorite programming language? (solution)

75 How to check if a given number is a Palindrome? (solution)

76 How to check if a given number is an Armstrong number? (solution)

77 How to find all prime factors of a given number? (solution)

78 How to check if a given number is positive or negative in Java? (solution)

79 How to find the largest prime factor of a given integral number? (solution)

80 How to print all prime numbers up to a given number? (solution)

81 How to print Floyd’s triangle? (solution)

82 How to print Pascal’s triangle? (solution)

83 How to calculate the square root of a given number? (solution)

84 How to check if the given number is a prime number? (solution)

85 How to add two numbers without using the plus operator in Java? (solution)

86 How to check if a given number is even/odd without using the Arithmetic operator? (solution)

87 How to print a given Pyramid structure? (solution)

88 How to find the highest repeating world from a given file in Java? (solution)

89 How to reverse a given Integer in Java? (solution)

90 How to convert a decimal number to binary in Java? (solution)

91 How to check if a given year is a leap year in Java? (solution)

92 Can you implement a Binary search Algorithm without recursion? (solution)

93 Difference between a stable and unstable sorting algorithm? (answer)

94 What is Depth First Search Algorithm for a binary tree? (solution)

95 How is an iterative quicksort algorithm implemented? (solution)

96 How do you implement an insertion sort algorithm? (solution)

97 How is a merge sort algorithm implemented? (solution)

98 What is the difference between Comparison and Non-Comparison Sorting Algorithms? (answer)

99 How do implement Sieve of Eratosthenes Algorithms for Prime Number? (solution)

About


Languages

Language:PHP 100.0%