Skip to main content

Posts

Featured Post

Welcome to Mission Hack

Welcome to Mission Hack!!! I am very glad you're here. The purpose of this mission is whoever interested in coding and know some basics of coding is to help them to learn to code from basics to advanced. Cheers keep Coding.
Recent posts

GitHub tutorial for beginners

Steps for pushing your code to GitHub repository Step 1: Create a GitHub Account Step 2: Create a New repository Step 3: Download and install gitbash  Step 4: Open your working directory Step 5: Open command prompt in your working directory step 6: type git for confirming successful installation of gitbash step 7: type git init step 8: type git add . or git add -A for adding all files or git add filename.txt for adding a single file at a time step 9: type git commit -m "Your message"   step 10: type git remote add origin https://github.com/username/repo-name.git step 11: git push -u origin master Once after successfully pushing your code to GitHub repository, you can use following commands Step 1: Open command prompt in your working directory Step 2: type git add -A Step 3: type git commit -m "Your commit message" Step 4: type git push  Cheers keep coding

Numbers

Programming Questions on Numbers 1) Given a number find the sum of all digits in a number     Input: n = 1234 output: 10     Explanation: 1+2+3+4 = 10 2) Given a number check given number is palindrome or not      Input: n = 12321     output: Palindrome      Input: n = 123         output: not Palindrome 3) Given a number increase each digit by 1 if the digit is 9 make it 0     Input: n = 1798      output: 2809     Explanation:  1 is increased by 1 becomes 2 and the same for the rest of the digits. 4) Given a number find the prime sum     Input: n = 2345       output: 10     Explanation: In the given digits 2,3 and 5 are prime digits so find the sum all prime numbers. 5) Find the biggest of 3 numbers     Input: a=10, b=20, c=15 output: Biggest is 20 6) Find the highest frequency of digit in a given number     Input: n = 1998    output: 9     Explanation: In 1998 , most repeated digit is 9 7) Find a repeated digit in a given number     Input: 2020       output

Array - Enti ra idhi!

What is an Array? In computer science, an array data structure, or simply an array, is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key. An array is stored such that the position of each element can be computed from its index tuple by a mathematical formula.[1][2][3] The simplest type of data structure is a linear array, also called a one-dimensional array. Programming Questions on Arrays 1)Given an array find the sum of array.        Input array is {1,2,3,4,5,-4} output: 11 2)Find the missing number in a given array.        Input array is {7,3,4,5,2} output: 6 3)Find the first missing positive number in a given array.        Test case 1: input{-1,-2,0,1,2,4} output: 3        Test case 2: input{-1,-2,0,1,2,3} output: 4 4)Find the maximum and minimum element in a given array.     Input {99,0,101,-2,2,47,57,35,10} output: min = -2  max = 101 5)Find the Equilibrium index of an array.

Are you String Lover?

Most asked on strings in coding interviews. A string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. 1)Check the given string is a palindrome or not Ex:- input: pop        output:true 2)Check the given two strings is an Anagram or not An  anagram  of a  string  is another  string  that contains the same characters, only the order of characters can be different. For example, “abcd” and “dabc” are an  anagram  of each other. 3)Check the given string is balanced or not Input String will contain "a-z", "( )","[ ]" and "{ }" .The brackets must close in the correct order. Ex: input: abc(){[]}      output: valid         input: (zyx)[{)}]    output: invalid 4)Print the most repeated character in a given string Ex: input: Apple       output: p        input: Google     output: o 5)Print the occurrence of each character in a given string Ex:input: Apple        output: A-1,p-2

Competitive Programming

What is Competitive Programming ?. Competitive Programming(CP) is the art of solving the problems(maths, logical, etc..) using any programming languages and providing the solution for all different types of inputs. For example, your code may work for only a few inputs(Test cases) but this type of code is not accepted completely, thinking of edge cases and coding accordingly will help you in finding the 100% correct solution. Why Competitive Programming?. CP is fun, helps you in improving coding, problem-solving skills, think out of the box, good command in coding, it will also help you in cracking the coding interviews with ease and many more. How to start Competitive Programming?. First of all, you need to be good at minimum one programming language and start solving the basic coding questions and increase the difficulty level from time to time, see how others solved the same problem and try to find an efficient solution. There are so many online platforms you can ge

NCET CodingClub Programming Questions

Programming Questions asked for NCET CodingClub Monsters Hunt CodingClub Facebook Page:  Click Here 1)Find the nth number in the series Series: 1 5 13 25 41 61 85 113 Simple Input and Output Input: 5 Output: 41 2)Monsters hate zeros help them in finding the correct digits.Prove that "a+b+c=d" where a,b,c, and d are Integers. Condition: Remove all the zeros if present in a,b,c, and d Simple Input and Output: Test Case 1: Input : 101 102 103 306 Output: Valid Test Case 2: Input : 1010 1002 0103 2115 Output: Invalid 3)Print the Pattern For solutions  Click Here Cheers keep coding. 

Programming Questions

Lets, Get Started with programming Starting with basic programming questions Check given number is prime or not (Ex: input=3, output = Prime Number) Print prime number between a range Check given number or string is palindrome or not  Find the sum of all elements in a given array Find the sum of all elements which are in odd positions(index) in a given array Print alphabets from A-Z or a-z using while or for loop

Programming Resources

Here you go, list of websites for absolute beginners for learning programming online C -  Reading Tutorial  ,  Video Tutorial   C++ -  Reading Tutorial  ,  Video Tutorial   Java -  Reading Tutorial  ,  Video Tutorial   Python -  Reading Tutorial  ,  Video Tutorial   JavaScript -  Reading Tutorial  ,  Video Tutorial   Cheers keep Coding

Why this blog?

You may have a question of why I should check this blog?. This blog mainly focuses on learning coding from different resources and some most asked coding interview questions. In the upcoming posts, I will share the best resources for coding. Cheers keep Coding.