본문 바로가기

Louie De Janeiru

검색하기
Louie De Janeiru
프로필사진 Louiey

  • 분류 전체보기 (95)
    • Android (0)
    • Arduino (3)
    • Drone (1)
      • SkyRover (1)
    • Linux (21)
    • Raspberrypi (8)
    • Utils (34)
    • Python (2)
    • mbed (2)
    • StCubeMx (5)
    • C# (10)
    • BLE (1)
    • STM32MP1 (0)
    • Flutter (8)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
  • c
  • flutter
  • peaks
  • ListView.build
  • TCPIP
  • Server
  • flutter tcpip server
  • AlertDialog
  • showDialog
  • Properties.Settings.Default
  • flutter button
  • debugShowCheckedModeBanner
  • ubuntu 19 한글 입력
  • dart:io
  • flutter tcpip client
  • array
  • Listview filtering
  • debug banner
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록array (1)

Louie De Janeiru

Find peaks from array in C

#include int getPeaksFromArray(int* nums, int len, int *peaks) { int pi = 0; for (int i = 0; i nums[i - 1] && nums[i] > nums[i + 1])/* elements in the middle */ ) { peaks[pi++] = nums[i]; } } return pi; } int main() { int arr[] = { 1, 3, 20, 4, 9, 10, 16, ..

Utils 2020. 3. 5. 17:08
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바