Must practice programming questions in all languages
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的更多相关文章
- 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 ...
- Programming Interview Questions Websites All In One
Programming Interview Questions Websites All In One 编程面试刷题网站 http://highscalability.com/ https://tri ...
- What is probabilistic programming? | 中文翻译
What is probabilistic programming? | 中文翻译 Probabilistic languages can free developers from the compl ...
- 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? ...
- 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, ...
- quora 的东西就是不一样
Coding is just a part of process of problem solving, You should need to understand the underlying pr ...
- ACM会议列表与介绍(2014/05/06)
Conferences ACM SEACM Southeast Regional Conference ACM Southeast Regional Conference the oldest, co ...
- Windows平台CUDA开发之前的准备工作
CUDA是NVIDIA的GPU开发工具,眼下在大规模并行计算领域有着广泛应用. windows平台上面的CUDA开发之前.最好去NVIDIA官网查看说明,然后下载对应的driver. ToolKits ...
- 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 ...
随机推荐
- cordova原生页面切换效果插件的使用:com.telerik.plugins.nativepagetransitions
1. 添加插件:cordova plugin add com.telerik.plugins.nativepagetransitions2. 使用方法: 在index.html中添加: <met ...
- zeebe 集成elasticsearch exporter
zeebe 目前还在一直的开发中,同时一些变动还是挺大的,比如simple monitor 的以前是不需要配置HazelcastExporter的 估计是为了进行集群功能处理,新添加的,以前写的配置基 ...
- DNS实战--2
构建企业级DNS服务压测,服务的功能测试,这些在生产中都要考虑到 1.硬件选型dns对网卡和cpu消耗大下面配置可以达到单台服务器每秒3万请求,0延时CPU:12c以上配置内存:16GB网络:千兆 2 ...
- C 语言经典例子
1. 题目:有1.2.3.4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 程序分析:可填在百位.十位.个位的数字都是1.2.3.4.组成所有的排列后再去 掉不满足条件的排列. #inc ...
- Spring Boot - AOP(面向切面)-切入点表达式
切入点指示符用来指示切入点表达式目的,在 Spring AOP 中目前只有执行方法这一个连接点,Spring AOP 支持的 AspectJ 切入点指示符,切入点表达式可以使用 &&. ...
- HashMap解读
个人理解,欢迎提出问题
- NGUI外包开发总结一下今天的收获
先总结一下今天的收获:在一个脚本类中对其成员变量进行初始化时,什么时候在Awake()中,什么时候在Start()中是有讲究的. 1)当成员变量会被外部脚本引用时,尤其是该成员变量是一个自己定义的非脚 ...
- 运用scrollPic插件的实例
html页面部分 <!doctype html> <html lang="en"> <head> <meta charset=" ...
- docker创建image
=========================================================================在已有image基础上创建一个image======= ...
- 工控随笔_11_西门子_WinCC的VBS脚本_02_运算符
VBS脚本做为编程语言,提供了很多的运算符,通过这些运算符,可以实现不同的操作.运算符具有不同的类型 不同的运算符之间具有运算优先级. 一.运算符的分类 大体分为以下几类: 1.赋值运算符 2.算术运 ...