0% found this document useful (0 votes)
8 views5 pages

ArrayString CheatSheet Explorin

The document is a cheat sheet for coding assessments focusing on arrays and strings, providing a comprehensive list of algorithms and problems to solve. It includes various topics such as array manipulation, sorting algorithms, and string operations, aimed at enhancing coding skills for exams like TCS NQT. The document emphasizes the importance of consistency and commitment in the preparation journey.

Uploaded by

ajaysaini9399
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

ArrayString CheatSheet Explorin

The document is a cheat sheet for coding assessments focusing on arrays and strings, providing a comprehensive list of algorithms and problems to solve. It includes various topics such as array manipulation, sorting algorithms, and string operations, aimed at enhancing coding skills for exams like TCS NQT. The document emphasizes the importance of consistency and commitment in the preparation journey.

Uploaded by

ajaysaini9399
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Explorin Academy

Cheat Sheet - Arrays & Strings | Part 1

Time to level up your preparation and tackle coding assessments with ease using our Array and
String Master sheet – the key to unlocking success in coding challenges in exams like TCS
NQT.

Arrays:

01. Mean

02. Product of array elements

03. Sign of the Product of an Array

04. Second Largest

05. Find the smallest and second smallest element in an array

06. Average Salary Excluding the Minimum and Maximum Salary

07. Immediate Smaller Element

08. Largest Number At Least Twice of Others

09. Kids With the Greatest Number of Candies

10. Leaders in an array

11. Find Greatest Common Divisor of Array

12. Sieve of Eratosthenes

13. Difference Between Element Sum and Digit Sum of an Array

14. Add to Array-Form of Integer

15. Single Number

16. Palindromic Array

17. Average Value of Even Numbers That Are Divisible by Three

18. Find N Unique Integers Sum up to Zero

19. Alternate positive and negative numbers

20. Move all negative elements to end


21. Reverse an Array

22. Rotate Array

23. Block swap algorithm for array rotation

24. Insertion Sort

25. Selection Sort

26. Bubble Sort

27. Quick Sort

28. Merge Sorted Array

29. Merge Sort

30. Find duplicates in an array

31. Check if array is sorted

32. Find the median

33. Kth smallest element

34. k largest elements

35. Maximum Sum With Exactly K Elements

36. Maximum Product of Three Numbers

37. Squares of a Sorted Array

38. Majority Element

39. Element Appearing More Than 25% In Sorted Array

40. Rope Cutting

41. Chocolate Distribution Problem

42. Sort Colors

43. Check if two arrays are equal or not

44. Remove Duplicates from unsorted array

45. Replace Each Element Of Array With Its Corresponding Rank

46. Sort a K-Increasing-Decreasing Array


47. Minimize the sum of product

48. Search an Element in an array

49. Implement Upper Bound

50. Implement Lower Bound

51. Search Insert Position

52. Find Smallest Letter Greater Than Target

53. Ceil The Floor

54. Find First and Last Position of Element in Sorted Array

55. Number of occurrence

56. Sqrt(x)

57. Array Subset of another array

58. Find Peak Element

59. Smallest subarray with sum greater than x

60. Max Sum Subarray of size K

61. Best Time to Buy and Sell Stock

62. Kadane's Algorithm

63. Two Sum

64. 4Sum

65. Equal Sum

66. Find the Pivot Integer

67. Find Pair Given Difference

68. Remove Element

69. Remove duplicate elements from sorted Array

70. Intersection of two arrays

71. Matrix Diagonal Sum

72. Given an array of pairs, find all symmetric pairs in it


73. Modify the Matrix

74. Counting Rock Samples

75. Addition of two square matrices

76. Count Negative Numbers in a Sorted Matrix

77. Help a Thief!!!

Strings:

01. Palindrome String

02. Anagram

03. Convert String to LowerCase

04. Remove character

05. Remove all characters other than alphabets

06. Reverse a String

07. Count Alphabets

08. Non Repeating Character

09. Encrypt the string - 1

10. Remove all duplicates from a given string

11. Lexicographically next string

12. Isomorphic Strings

13. Rotate String

14. Sort Characters By Frequency

15. Program to print ASCII Value of a character

16. Remove vowels from string

17. Remove Spaces

18. Palindrome Sentence

19. Reverse Words in a String


20. Count vowels, consonants, and spaces

21. Capitalize the first and last character of each word in a string

22. Convert characters of a string to opposite case

23. Program to find Smallest and Largest Word in a String

24. Sort a String

25. Count number of words

26. Display longest name

27. Reversing the vowels

28. Reversing the equation

29. Arya's Long String

30. Sum of numbers in string

31. Largest Odd Number in String

32. Divisible by 7

33. Remove brackets from an algebraic string containing + and - operators

34. Remove Outermost Parentheses

35. Maximum Nesting Depth of the Parentheses

36. Longest Common Prefix

37. Roman to Integer

38. String to Integer (atoi)

39. Product is even or odd?

40. Odd to Even

41. Largest number with given sum

42. Check if two strings are k-anagrams or not

43. Smallest window containing 0, 1 and 2

Consistency breeds success; stay committed to your journey.


Dare to Dream, Champion!

You might also like