Skip to content

Commit c52c14a

Browse files
Merge pull request kunal-kushwaha#87 from sayantani11/assignments
Assignment questions added
2 parents 9de269d + 1dbf782 commit c52c14a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

assignments/arrays.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
18. [Add to Array-Form of Integer](https://leetcode.com/problems/add-to-array-form-of-integer/)
2424
19. [Maximum Population Year](https://leetcode.com/problems/maximum-population-year/)
2525
20. [Determine Whether Matrix Can Be Obtained By Rotation](https://leetcode.com/problems/determine-whether-matrix-can-be-obtained-by-rotation/)
26+
21. [Two Sum](https://leetcode.com/problems/two-sum/)
27+
22. [Find N Unique Integers Sum up to Zero](https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero/)
2628

2729

2830
### Medium

assignments/conditionals-loops.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@
5151
23. Perfect Number In Java
5252
24. Check Leap Year Or Not
5353
25. Sum Of A Digits Of Number
54+
26. Kunal is allowed to go out with his friends only on the even days of a given month. Write a program to check if he can go out in the month of August.

assignments/functions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ Also,
3535

3636
10. Write a function to find if a number if palindrome or not. Take number as parameter.
3737

38-
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignments into functions.
38+
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignemts into functions.
39+
40+
12. Write a function to check if a given triplet is a pythogorian triplet or not. (A pythogorian triplet is when the sum of the square of two number is equal to the square of the third number).
41+
42+
13. Write a function that returns all prime numbers between two given numbers.
43+
44+
14. Write a function that returns the sum of first n natural numbers.

0 commit comments

Comments
 (0)