To master any programming languages, you need to definitely solve/practice the below-listed problems. These problems range from easy to advanced difficulty level. I have collected these questions from various websites.

For solutions refer this - https://www.faceprep.in/c-programming-questions/

Easy

  • A character is a vowel or consonant
  • A character is an alphabet or not
  • Ascii values ​​of a character
  • Uppercase, Lowercase or special character
  • A number is positive or negative
  • A number is even or odd
  • Area of ​​a circle
  • LCM of number numbers
  • GCD of two numbers
  • Greatest of two numbers
  • Greatest of three numbers
  • Number of digits in an integer
  • Sum of digits of a number
  • Sum of N natural numbers
  • Sum of numbers in a given range
  • Reverse a given number
  • Factorial of a number
  • Fibonacci series up to n
  • Leap year or not
  • Prime number or not
  • Palindrome or not
  • Armstrong number or not
  • Strong number or not
  • Perfect number or not
  • Friendly pair or not (amicable or not)
  • Automorphic number or not
  • Harshad number or not
  • Abundant number or not
  • Power of a number
  • Factors of a number
  • Add two fractions
  • Basic string operations
  • Length of the string without using strlen() function
  • Toggle each character in a string
  • Count the number of vowels
  • Remove vowels from a string
  • String is a palindrome or not
  • Sorting a string in alphabetical order
  • Removing brackets from an algebraic expression
  • Remove characters in a string except alphabets
  • Remove spaces from a string
  • Basic array operations (Insert, delete and search an element)
  • Smallest and largest element in an array
  • Sum of elements in an array
  • Check if two arrays are the same or not
  • Finding the array type
  • Sum of positive square elements in an array
  • Second smallest element in an array
  • Sorting the elements of an array
  • Reversing an array
  • Longest palindrome in an array
  • Count distinct elements of an array
  • Matrix operations (Addition, subtraction and multiplication)
  • Transpose of a matrix
  • Upper triangular matrix or not
  • Lower triangular matrix or not
  • The maximum element in a row
  • The maximum element in a column
  • Sum of each row and column of a matrix

Medium

  • Prime numbers in a given range
  • Armstrong numbers between two intervals
  • Can a number be expressed as a sum of two prime numbers?
  • Replace all 0’s with 1 in a given integer
  • Binary to decimal conversion
  • Decimal to binary conversion
  • Decimal to octal conversion
  • Octal to decimal conversion
  • Binary to octal conversion
  • Octal to binary conversion
  • Maximum number of handshakes
  • Quadrants in which coordinates lie
  • Convert digit/number to words
  • Number of days in a given month of a given year
  • Permutations in which n people can occupy r seats in a theatre
  • Number of times digit 3 occurs in each and every number from 0 to n
  • Number of integers which has exactly 9 divisors
  • Roots of a quadratic equation
  • Count possible decodings of a given digit sequence
  • Count the sum of numbers in a string
  • Capitalize the first and last letter of each word of a string
  • Frequency of characters in a string
  • Non-repeating characters in a string
  • Check if two strings are Anagram or not
  • Patterns of 0(1+)0 in the given string
  • Replace substring in a string
  • Count common subsequence in two strings
  • Reverse a string
  • Check if two strings match where one string contains wildcard characters
  • Non-repeating elements of an array
  • Repeating elements in an array
  • Remove duplicate elements in an array
  • Minimum scalar product of two vectors
  • Maximum scalar product of two vectors
  • Can the numbers of an array be made equal?
  • Missing elements of a range
  • Triplets with a given sum
  • Number of even and odd elements in an array
  • Frequency of each element of an array
  • Symmetric pairs in an array
  • Maximum product subarray in a given array
  • Arrays are disjoint or not
  • Array is a subset of another array or not
  • Can all numbers of an array be made equal
  • Minimum sum of absolute difference of given array
  • Sorting elements of an array by frequency
  • Sort an array according to the order defined by another array

Advanced:

  • Replace each element of the array by its rank in the array
  • Equilibrium index of an array
  • Array rotation – Left and right
  • Block swap algorithm for array rotation
  • Juggling algorithm for array rotation
  • Circular rotation of an array by K positions
  • Convert an array into a zig-zag fashion
  • Merge two sorted arrays
  • Longest subarray having an average greater than or equal to k
  • Rearrange positive and negative numbers in an array
  • Sum of all odd frequency elements in an array
  • Median of two sorted arrays
  • 0-1 Knapsack problem
  • Saddle point coordinates of a given matrix
  • Sum of elements in the zig-zag sequence of a matrix
  • Sum of boundary elements of a matrix
  • Matrix printing in a spiral form
  • Rotate the matrix by K times
  • Matrix rotation by 90 degrees clockwise and anticlockwise
  • Maximum size of square submatrix with all 1's in a binary matrix

Pattern printing programs

  • Solid and hollow rectangle star pattern
  • Pyramid pattern using stars
  • Pyramid pattern using numbers
  • Palindromic pyramid pattern printing
  • Diamond pattern printing using stars
  • Diamond pattern printing using numbers
  • Floyd's triangle
  • Pascal triangle

Must practice programming questions in all languages的更多相关文章

  1. 10 Questions To Make Programming Interviews Less Expensive--reference

    Conducting Interview is not cheap and costs both time and money to a company. It take a lot of time ...

  2. Programming Interview Questions Websites All In One

    Programming Interview Questions Websites All In One 编程面试刷题网站 http://highscalability.com/ https://tri ...

  3. What is probabilistic programming? | 中文翻译

    What is probabilistic programming? | 中文翻译 Probabilistic languages can free developers from the compl ...

  4. How do I learn machine learning?

    https://www.quora.com/How-do-I-learn-machine-learning-1?redirected_qid=6578644   How Can I Learn X? ...

  5. What are some good books/papers for learning deep learning?

    What's the most effective way to get started with deep learning?       29 Answers     Yoshua Bengio, ...

  6. quora 的东西就是不一样

    Coding is just a part of process of problem solving, You should need to understand the underlying pr ...

  7. ACM会议列表与介绍(2014/05/06)

    Conferences ACM SEACM Southeast Regional Conference ACM Southeast Regional Conference the oldest, co ...

  8. Windows平台CUDA开发之前的准备工作

    CUDA是NVIDIA的GPU开发工具,眼下在大规模并行计算领域有着广泛应用. windows平台上面的CUDA开发之前.最好去NVIDIA官网查看说明,然后下载对应的driver. ToolKits ...

  9. MongoDB:The Definitive Guide CHAPTER 2 Getting Started

    MongoDB is very powerful, but it is still easy to get started with. In this chapter we’ll introduce ...

随机推荐

  1. 名字top500字典 各种格式及python脚本

    原文件名字top500 链接: https://pan.baidu.com/s/1cv0jPYb1-EBceoZz3QNvgg 密码: bat5 中文名字 链接: https://pan.baidu. ...

  2. laravel的ORM模型的find(),findOrFail(),first(),firstOrFail(),get(),list(),toArray()之间的区别

    find($id)需要一个id并返回一个模型.如果不存在匹配的模型,则返回null. findOrFail($id)需要一个id并返回一个模型.如果不存在匹配的模型,则会引发错误, 它会抛出一个err ...

  3. 使HTML5支持RTSP流 微信直播RTSP流 微信播放RTSP直播流(HTML5播放rtsp,web播放rtsp,微信支持rtsp)

    一.大家都知道HTML5的VIDEO可以播放视频,但是H5不支持RTSP播放,所以需要中间件! 二.我们经理长年的努力,开发了HTML5支持RTSP的中间件,使HTML5支持RTSP直播! 三.不卡顿 ...

  4. Java中级开发工程师知识点归纳

    (一)Java 1.接口和抽象类的区别 ①抽象类里可以有构造方法,而接口内不能有构造方法. ②抽象类中可以有普通成员变量,而接口中不能有普通成员变量. ③抽象类中可以包含非抽象的普通方法,而接口中所有 ...

  5. C++类的组合例子

    Line类调用Point类的两个对象p1,p2作为其数据成员,计算线段长度 组合类构造函数定义的一般形式为: 类名::类名(形参表):内嵌对象1(形参表),内嵌对象2(形参表)... {类的初始化} ...

  6. java8与函数编程资料

    Functional programming Java 8 idioms Java SE 8's new Streams API Spring 技术布道师 Josh Long 来华:用 Show 代码 ...

  7. String.format()的使用

    参考文章: https://www.cnblogs.com/Dhouse/p/7776780.html 其中System.out.printf()的用法可参考:https://blog.csdn.ne ...

  8. apache2.4+php7.3.2+mysql5.7

    一.下载php7和apache2.4 1 首先下载php7的windows压缩包,到这里下载http://windows.php.net/download/ 我选择的是php7的这个版本,由于它是vc ...

  9. webview之如何设计一个优雅健壮的Android WebView?(下)(转)

    转载:https://iluhcm.com/2018/02/27/design-an-elegant-and-powerful-android-webview-part-two/ (这篇文章写得有点晚 ...

  10. 微软 workflow 工作流总结

    1.状态机工作流 (1)状态机工作流从state1 流转到 state2 到stateN (2) state中有执行状态和退出状态 (3) 在进入下一个步骤(state1 到 state2)前,首先会 ...