This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
n = 10 | |
space = n-1 | |
for i in range(n): | |
for j in range(space+1): | |
sys.stdout.write(" ") | |
for k in range(i): | |
sys.stdout.write("* ") | |
space -= 1 | |
sys.stdout.write("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include<stdlib.h> | |
/* | |
Sample Input: 5 | |
Sample Output: | |
1 2 3 4 5 | |
17 18 19 20 6 | |
26 27 28 21 7 | |
14 24 23 22 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdlib.h> | |
int compare(const void * a, const void * b) { | |
return (*(int*)a- *(int*)b); | |
} | |
int main() { | |
int n,k=21; | |
scanf("%d",&n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="style.css"> | |
<title>Document</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sep 16 15:08:05 akhil-Aspire-A515-51G rsyslogd: [origin software="rsyslogd" swVersion="8.32.0" x-pid="1067" x-info="http://www.rsyslog.com"] rsyslogd was HUPed | |
Sep 16 15:09:07 akhil-Aspire-A515-51G wpa_supplicant[1090]: wlp3s0: WPA: Group rekeying completed with e4:ca:12:ad:fa:86 [GTK=TKIP] | |
Sep 16 15:09:37 akhil-Aspire-A515-51G chromium-browser.desktop[3524]: [1:18:0916/150937.772306:ERROR:data_channel.cc(44)] Accepting maxRetransmits = -1 for backwards compatibility | |
Sep 16 15:09:37 akhil-Aspire-A515-51G chromium-browser.desktop[3524]: [1:18:0916/150937.772439:ERROR:data_channel.cc(49)] Accepting maxRetransmitTime = -1 for backwards compatibility | |
Sep 16 15:09:43 akhil-Aspire-A515-51G chromium-browser.desktop[3524]: [1:1:0916/150943.865937:ERROR:render_media_log.cc(27)] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"MediaSource endOfStream before demuxer initialization completes (before HAVE_METADATA) is treated as an error. This may also occur as consequence of other MediaSource errors before HAVE_METADATA."} | |
S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sapient.util; | |
public class MyMath { | |
public static boolean isPalindromeNumber(int n) { | |
String s = String.valueOf(n); | |
StringBuilder sb = new StringBuilder(s); | |
int n1 = Integer.parseInt(sb.reverse().toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sapient.service; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
public class Main { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.sapient</groupId> | |
<artifactId>jpa-project</artifactId> | |
<version>0.0.1-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package p1; | |
import p1.exceptions.EquationIncomplete; | |
import p1.exceptions.InvalidOperand; | |
import p1.exceptions.InvalidOperator; | |
import p1.runtimepoly.ArithmeticFactory; | |
import p1.runtimepoly.TrigonometricOp; | |
import p1.runtimepoly.ScientificOp; | |
public class ExpressionEvaluator extends Evaluator { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sapient.aop; | |
import org.aspectj.lang.JoinPoint; | |
import org.aspectj.lang.annotation.After; | |
import org.aspectj.lang.annotation.AfterReturning; | |
import org.aspectj.lang.annotation.AfterThrowing; | |
import lombok.extern.slf4j.Slf4j; | |
@Slf4j |