JAVA, Python, C++ and C programs for students. Here you will also find solutions to boards papers of ISC Computer Science Practical and CBSE Computer Science. ISC and ICSE JAVA PROGRAMS
Tuesday, February 14, 2023
Python Program Divisibility with 5
Friday, February 3, 2023
INCOME TAX CALCULATOR : New Tax Regime FY 2023-24 Onwards
INCOME TAX CALCULATOR - NEW REGIME
CALCULATE YOUR INCOME TAX UNDER NEW REGIME HERE:
Enter your gross salary in ₹
Enter your total income from other sources (Savings Interest, Dividend, Interest on FDs) in ₹
Enter your total Professional Tax (P.Tax) in ₹
Income Tax Slabs & Rates 2023-24
The Finance Minister introduced new tax regime in Union Budget, 2020 wherein there is an option for individuals and HUF (Hindu Undivided Family) to pay taxes at lower rates without claiming deductions under various sections. The following Income Tax slab rates are notified in new tax regime:
Income Tax Slab Tax Rates As Per New Regime ₹0 - ₹3,00,000 Nil ₹3,00,000 - ₹6,00,000 5% ₹6,00,001 - ₹9,00,000 ₹15000 + 10% of total income exceeding ₹5,00,000 ₹9,00,001 - ₹12,00,000 ₹45000 + 15% of total income exceeding ₹7,50,000 ₹12,00,001 - ₹15,00,000 ₹90000 + 20% of total income exceeding ₹12,50,000 Above ₹15,00,000 ₹140000 + 30% of total income exceeding ₹15,00,000 Above rates does not include Surcharge and Cess.4% Health & Education Cess is applicable on the income tax and applicable surcharge.
Monday, January 30, 2023
Banking ICSE Interest Calculator
Wednesday, January 25, 2023
Leet Code Rotate Image
Leet Code Rotate Image
You are given an n x n
2D matrix
representing an image, rotate the image by 90 degrees (clockwise).
Example 1:

Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [[7,4,1],[8,5,2],[9,6,3]]
Example 2:

Input: matrix = [[5,1,9,11],[2,4,8,10],[13,3,6,7],[15,14,12,16]] Output: [[15,13,2,5],[14,3,4,1],[12,6,8,9],[16,7,10,11]]
Constraints:
n == matrix.length == matrix[i].length
1 <= n <= 20
-1000 <= matrix[i][j] <= 1000
Leet Code Longest Substring Without Repeating Characters
Given a string s
, find the length of the longest
Example 1:
Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3.
Example 2:
Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1.
Example 3:
Input: s = "pwwkew" Output: 3 Explanation: The answer is "wke", with the length of 3. Notice that the answer must be a substring, "pwke" is a subsequence and not a substring.
Constraints:
0 <= s.length <= 5 * 104
s
consists of English letters, digits, symbols and spaces.
Monday, January 23, 2023
Leet Code ZigZag Conversion
The string "PAYPALISHIRING"
is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N A P L S I I G Y I R
And then read line by line: "PAHNAPLSIIGYIR"
Write the code that will take a string and make this conversion given a number of rows:
string convert(string s, int numRows);
Example 1:
Input: s = "PAYPALISHIRING", numRows = 3 Output: "PAHNAPLSIIGYIR"
Example 2:
Input: s = "PAYPALISHIRING", numRows = 4 Output: "PINALSIGYAHRPI" Explanation: P I N A L S I G Y A H R P I
Example 3:
Input: s = "A", numRows = 1 Output: "A"
Constraints:
1 <= s.length <= 1000
s
consists of English letters (lower-case and upper-case),','
and'.'
.1 <= numRows <= 1000